Interior - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Interior (
/showthread.php?tid=495762)
Interior -
AhmedMohamed - 18.02.2014
How can i make a command for the player which on interior 1, interior 2 or whatever??
I mean when the player on interior 1 and he typed /out it teleport him to specific place.
Re: Interior -
DexterC - 18.02.2014
pawn Код:
CMD:out(playerid, params[])
{
SetPlayerPos(playerid, x, y, z); Set your coords at x, y & z.
SetPlayerInterior(playerid, 0);
return 1;
}
Re: Interior -
AhmedMohamed - 18.02.2014
I know that it's very easy i mean the interior if the player in interior 1 he can use this command else he can't
Re: Interior -
DexterC - 18.02.2014
Use this to check if the player is in an interior, so that he can use this command.
https://sampwiki.blast.hk/wiki/GetPlayerInterior
Re: Interior -
BigGroter - 18.02.2014
pawn Код:
if(GetPlayerInterior(playerid) == 1)
{
SetPlayerPos(playerid, 0, 0, 0);
}
Re: Interior -
AhmedMohamed - 18.02.2014
BigGroter thanks man REP+