09.12.2014, 22:08
It's not really a big deal mate.
If the player is logged in. (true/1)
Then execute your saving code.
--
If the player is logged in. (true/1)
Then execute your saving code.
--
Quote:
You can use this in your save function.
if(IsPlayerLoggedIn(playerid)) { SavePlayer(playerid); } or in a loop for example using foreach and a IsPlayerLoggedIn function: foreach(Player, i) { if(IsLoggedIn(i)) { SavePlayer(playerid); continue; } } |
pawn Код:
foreach(new i : Player)
{
if(IsLoggedIn(i))
{
SavePlayer(i);
continue;
}
}