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

-Set IsLogged[playerid] to false under OnPlayerConnect
-Set IsLogged[playerid] to true if the player has passed the login phase successfully.
else set it to false.
-Under OnPlayerDisconnect or whenever SavePlayer(playerid) shall be used, check if IsLogged[playerid] is set to true before executing this function on that specific player.

regards, wolf.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)