Quote:
Originally Posted by arathin
Our /stats command shows a list of things like your money,vip,admin,score,etc and when you kill someone/die I want it to update your users file and /stats can get the updated one.
|
Hm basically create a function called SavePlayer(playerid); and in that function save the players stats as same as OnPlayerDisconnect (or however your saving it) Next in OnPlayerDeath, put SavePlayer(playerid); and then on the /stats command in the first line put SavePlayer(playerid);
That should fix your prob.