SA-MP Forums Archive
how i can do 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)
+--- Thread: how i can do this (/showthread.php?tid=611741)



how i can do this - CarRamper - 10.07.2016

hello guys i have a stunt zone on my server and i have set its open and closing time but i want that if the stunt zone become closed if any player is inside it will teleport to it's base


Re: how i can do this - minijackc - 10.07.2016

if i am getting what you're trying to say correct.

You will need an if statement. EG

Quote:

if (stuntTime == NULL) {
SendClientMessage(playerid, 0x00FF00FF, "You have been teleported out of the arena.");
SetPlayerPos(playerid, 0.0, 0.0, 3.0);
}




Re: how i can do this - TaiRinsuru - 10.07.2016

Can you give me the closing time script? I will do it for you