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



place - iBots - 20.05.2014

Ey,i wanna make like when you spawn it puts you in a specific position that i set,now i have put cars there,how to make like when player leaves that area it will make a gate for him,so he cant get back in?


Re: place - iAnonymous - 20.05.2014

Use
pawn Код:
SetPlayerPos
Under OnPlayerSpawn
For more details :
https://sampwiki.blast.hk/wiki/SetPlayerPos


Re: place - iBots - 20.05.2014

can you read what i have asked?i said i did that but how can i make when player leaves that area he cant come back?


Re: place - iAnonymous - 20.05.2014

You will have to mark up a boundary and place a moveable gate there . Now when a player enters a checkpoint he execute a command and then when he moves on the other side the gate will automatically close (use timer)
Now Make the command vanish!

I will shortly send you something similar in a PM so you may get some sort if idea how to do it


Re: place - iBots - 20.05.2014

well,that place has 2 places to exit,and i want to make it without markers,just creates a gate when he leaves,how?


Re: place - Threshold - 20.05.2014

HINT: Use dynamic areas from Incognito's streamer plugin. Then use the callbacks OnPlayerLeaveDynamicArea and create a dynamic object (gate) for that specific player.