Saving players health data - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Saving players health data (
/showthread.php?tid=562039)
Saving players health data -
Arastair - 06.02.2015
Hello,
In a server that I play in, using commands in fights are forbidden! and I got annoyed too much by players that use commands during a fight, and admins cannot prove it after it happened,
What I'm asking is: Is there anyway to save players health and gun shot stats for the past 5 minutes of him playing?
I mean if playerX loses 50.0 health it will be stored in an specific file (I saw something similar in partyserver)
if so, how can I do it? what function shall I use?
Cheerio
Re: Saving players health data -
nezo2001 - 06.02.2015
I tried to unserstand
Anyway
In your eum
under OnPlayerTakeDamage
PHP код:
new health;
GetPlayerHealth(playerid, health);
PlayerInfo[playerid][pHealth] = health;
This is how i understood when the player loose health it will save the player health in the player file.
Re: Saving players health data -
Arastair - 07.02.2015
Quote:
Originally Posted by nezo2001
I tried to unserstand
Anyway
In your eum
under OnPlayerTakeDamage
PHP код:
new health;
GetPlayerHealth(playerid, health);
PlayerInfo[playerid][pHealth] = health;
This is how i understood when the player loose health it will save the player health in the player file.
|
Ok thanks, I'll try to work with that