02.08.2011, 11:00
What and where i have to put in the script to save the money and kills when player disconnect.Example here.?.:
EDIT:They don't save when I stop the server.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(PlayerInEvent[playerid] != 0)
{
EventPlayers --;
}
DestroyVehicle(PlayerCar[playerid]);
OnPlayerDataSave(playerid);
ResetStats(playerid);
return 1;
}