Portal SAMP
[Ajuda] ENTRAR EM INTERIOR CONGELANDO - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] ENTRAR EM INTERIOR CONGELANDO (/showthread.php?tid=3606)



ENTRAR EM INTERIOR CONGELANDO - diggao - 10/05/2023

gente quando eu coloco pro jogador ir pro interior ele vai e congela e não tem como andar mais, alguem me ajuda?

if (pickupid == EntrarPickupPizza)
  {
    SetPlayerPos(playerid, 456.2134,-89.0768,999.5547,87.7679);
    SetPlayerInterior(playerid, 4);
    SetCameraBehindPlayer(playerid);
  }
  if (pickupid == SairPickupPizza)
  {
    SetPlayerPos(playerid, 1360.9204,249.5259,19.5669); 
    SetPlayerInterior(playerid, 0);
    SetCameraBehindPlayer(playerid);
  }


RE: ENTRAR EM INTERIOR CONGELANDO - Aranha - 10/05/2023

if (pickupid == EntrarPickupPizza)
{
SetTimerEx("CarregarInterior", 5000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
SetPlayerPos(playerid, 456.2134,-89.0768,999.5547,87.7679);
SetPlayerInterior(playerid, 4);
SetCameraBehindPlayer(playerid);
}
if (pickupid == SairPickupPizza)
{
SetTimerEx("CarregarInterior", 5000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
SetPlayerPos(playerid, 1360.9204,249.5259,19.5669);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
}


forward CarregarInterior(playerid);
public CarregarInterior(playerid)
{

TogglePlayerControllable(playerid, 1);
return 1;
}


RE: ENTRAR EM INTERIOR CONGELANDO - diggao - 10/05/2023

obrigado +rep