09.12.2014, 21:50
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;
}
}
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;
}
}