07.01.2011, 21:00
I get a textbox saying "Stay within the world boundaries", whenever I press on "spawn".
My player is gplayerlogged and I get this weird textbox.
This is the code before people can press spawn:
That is onplayerrequestspawn ofc.
Any idea?
My player is gplayerlogged and I get this weird textbox.
This is the code before people can press spawn:
Quote:
RegistrationStep[playerid] = 0; TogglePlayerControllable(playerid,1); PlayerInfo[playerid][pRegistered] = 1; gPlayerLogged[playerid] = 1; return 1; } |
Quote:
public OnPlayerRequestSpawn(playerid) { if(gPlayerLogged[playerid] == 1) { return 1; } else { if(SpawnAttempts[playerid] >= MAX_SPAWN_ATTEMPTS) { KickPlayer(playerid,"System","Repeated attempts to spawn without logging in."); return 1; } SendClientMessage(playerid,COLOR_RED,"[INFO:] You must login before you can spawn!"); SpawnAttempts[playerid] ++; return 0; } } |
Any idea?