17.12.2010, 20:02
Victious, if the spawn will succeed it will send this message at the same time he is spawning.
For BlackWolf, I tried to evade that variable idea.. But here you go.
At the top of your script:
Then, at OnPlayerSpawn:
at OnPlayerConnect:
For BlackWolf, I tried to evade that variable idea.. But here you go.
At the top of your script:
pawn Код:
new IsSpawned[MAX_PLAYERS];
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsSpawned[playerid] == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "You have logged in!");
IsSpawned[playerid] = 1;
return 1;
} else if(IsSpawned[playerid] == 1)
{
return 1;
}
return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
IsLogged[playerid] = 0;
return 1;
}