SA-MP Forums Archive
How to freeze a player - 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 to freeze a player (/showthread.php?tid=131919)



How to freeze a player - 02manchestera - 05.03.2010

I want to freeze player until the have done /register or /login how do i do it


Re: How to freeze a player - Torran - 05.03.2010

OnPlayerConnect..

TogglePlayerControllable(playerid, 0);

OnPlayerLogin ( Bit where successfully logs in ) ..

TogglePlayerControllable(playerid, 1);


Re: How to freeze a player - 02manchestera - 05.03.2010

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : error 017: undefined symbol "OnPlayerLogin"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : error 017: undefined symbol "where"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : error 017: undefined symbol "successfully"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: How to freeze a player - Torran - 05.03.2010

Quote:
Originally Posted by 02manchestera
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : error 017: undefined symbol "OnPlayerLogin"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : error 017: undefined symbol "where"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : error 017: undefined symbol "successfully"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\SFTDMVFgangzone.pwn(717) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Show line 717


Re: How to freeze a player - Ironboy500 - 05.03.2010

Lol, you can't just copy text he gave you here. Put TogglePlayerControllable under onplayerconnect and watchout for bracket's.