SA-MP Forums Archive
Teleporting - 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: Teleporting (/showthread.php?tid=526895)



Teleporting - Crystallize - 19.07.2014

Is there any way to add commands into a map and a checkpoint into that map that teleports you into an interior and when player is in interior he can /dance etc?


Re: Teleporting - sammp - 19.07.2014

pawn Код:
SetPlayerInterior(playerid, interiorid);



Re: Teleporting - Crystallize - 19.07.2014

Quote:
Originally Posted by sammp
Посмотреть сообщение
pawn Код:
SetPlayerInterior(playerid, interiorid);
Hm thanks but how can I add the cmds to work only in that interior


Re: Teleporting - [CG]Milito - 19.07.2014

Just use a if clause, Like this

Код:
if(GetPlayerInterior(playerid) == YourInteriorID)
{
    Execute command......Do what you want
}
else
{
    Dont execute command....
}