08.11.2010, 18:48
This function is for registered accounts.So if the account is registered player must login before spawn. Its not working. I can spawn normally without login.
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
#if defined mustlogin
if(ServerInfo[MustLogin] == 1 && PlayerInfo[playerid][Registered] == 1 && PlayerInfo[playerid][LoggedIn] == 0){
SendClientMessage(playerid,COLOR_LRED,"Registered account. Please type /login [password]");
return 0;}
#endif
return 1;
}