08.11.2010, 18:51
You are completely sure you've defined "mustlogin" previously?
If so; try doing:
If so; try doing:
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;}
#else
return 1;
#endif
}