How i can do entrance like this?!? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How i can do entrance like this?!? (
/showthread.php?tid=226400)
How i can do entrance like this?!? -
kiss - 15.02.2011
Hi, wanna learn, how to do entrance like, /enter and /exit commands...
And i can lock all entrances...
So, i hope you help me, thanks
Re: How i can do entrance like this?!? -
_Tommy - 15.02.2011
Check where the player stands when he types /enter, and teleport him to the needed position with a new variable set Entered[playerid] = NUM (NUM => index of the place).
When he types exit, check where he is (by looking up for the player's "Entered" index), and set his position back to the /enter position.