24.01.2010, 16:58
How to make when player join server he cant spawn before he dont /login?
I use ladmin
I use ladmin
if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, your color, "Please login before spawning."); ForceClassSelection(playerid); SetPlayerHealth(playerid,0); }
if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, your color, "Please login before spawning."); ForceClassSelection(playerid); SetPlayerHealth(playerid,0); } |
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : error 017: undefined symbol "gPlayerLogged" C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : warning 215: expression has no effect C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : error 001: expected token: ";", but found "]" C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : error 029: invalid expression, assumed zero C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
public OnPlayerRequestSpawn(playerid)
{
// Request Login
if(VERIFY IF PLAYER IS NOT LOGGED HERE (Ex: AccInfo[playerid][Logged] == 0){
SendClientMessage(playerid,COLOR_HERE,"You are not logged! (Use: /login [Password]");
return 0;
}
return 1;
}
if(VERIFY IF PLAYER IS NOT LOGGED HERE (Ex: AccInfo[playerid][Logged] == 0){ |