SA-MP Forums Archive
[DUDA] Interior - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [DUDA] Interior (/showthread.php?tid=638657)



[DUDA] Interior - Matyaas - 04.08.2017

Hola a todos, hay alguna funciуn que detecte cuando se entra a un interior por medio del defecto del GTA?
es que quiero hacer que al entrar a cualquier interior por defecto se active una X funciуn...




Respuesta: [DUDA] Interior - GraviTyh - 04.08.2017

Depende la funciуn que quieras hacer.. Podrнas hacerlo de esta forma:

pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerInterior(playerid) != 0)
{
SendClientMessage(playerid,-1,"Estas en un interior");
}
return 1;
}