oben:
new NAME;
new loginfreeze[MAX_PLAYERS];
forward NAME();
Nach dem Login:
TogglePlayerControllable(playerid, 0);
loginfreeze[playerid] = 1;
GameTextForPlayer(playerid, "Bitte warten, server lädt...", 10000, 4);
SetTimer("NAME", 10000,0);
ganz unten:
public NAME()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(loginfreeze[i] == 1)
{
TogglePlayerControllable(i, 1);
loginfreeze[i] = 0;
}
}
return 1;
}
Hoffe geht so.. ungetestet.
/edit: wegen gametext^^