SA-MP Forums Archive
Need me exit code.. [+REP] - 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: Need me exit code.. [+REP] (/showthread.php?tid=316847)



Need me exit code.. [+REP] - dundolina - 08.02.2012

Need me exit event code.When a write command to discard all players event. And my other idea is that all players are frozen and then by submitting command they unfrozen all players and can't teleportate again.


Re: Need me exit code.. [+REP] - Twinki1993 - 09.02.2012

Show us the code of how you made the actual event..

Why don't you just simply use

OnPlayerDeath

PHP код:
    if(PlayerInEvent(playerid) <1)
    {
        
SetPlayerPos(playeridx,y,z);
        
TogglePlayerControllable(playerid,0);
        return 
1;
    } 
X,y,z change to like crowd view. ToglePlayerControllable 0 is frozen, and 1 is unfrozen.


PHP код:
    if(PlayerInEvent(playerid) <1
Change this with your variables.