19.09.2012, 05:44
Hello guys i have made a register / login system and now if i input the password in the login window falsely for 2 times the class selection window appears so if someone press on spawn he gets spawned so what i did is create a variable to check if the player is logged in or not and i put it under OnPlayerRequestSpawn
It doesn't work the player can still spawn if he clicks Spawn!
thanks in advance guys.
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(IsLogged[playerid] == 0)
{
SendClientMessage(playerid, -1, "{FF5500}>{C3C3C3} You Can't Spawn Now");
}
else return 0;
return 1;
}
thanks in advance guys.