28.09.2012, 07:15
hey,
How to make when the server restart it saves the players stats? because its only saving when the player disconnects, so if server restart the player stats won't save, i want it to save when server restart
i have more but i won't write them all
How to make when the server restart it saves the players stats? because its only saving when the player disconnects, so if server restart the player stats won't save, i want it to save when server restart
PHP Code:
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",SInfo[playerid][pAdmin]);
INI_Close(File);
}