26.03.2010, 07:44
Why isnt this working? you can just spawn willy nilly.
Код:
public OnPlayerRequestSpawn(playerid) { if(!IsPlayerNPC(playerid)) return 1; #if defined LOGIN_BEFORE_SPAWN new string[128]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid,sendername,24); format(string,128,"/sAccounts/%s.seifadmin",sendername); if (AccountInfo[playerid][Logged] == 0) { SendClientMessage(playerid,RED,"Your account is registered. You must first login in order to spawn."); printf("%s is trying to spawn but hasn't logged in!", sendername); SendClientMessageToAll(YELLOW, "%s is trying to spawn but hasn't logged in!"); return 0; } #endif return 1; }