How to make only logged player saving stats.. :)
#5

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;
}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)