How to freeze a player
#1

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

OnPlayerConnect..

TogglePlayerControllable(playerid, 0);

OnPlayerLogin ( Bit where successfully logs in ) ..

TogglePlayerControllable(playerid, 1);
Reply
#3

Код:
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.
Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)