Saving players health data
#1

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
Reply
#2

I tried to unserstand
Anyway
In your eum
PHP код:
    pHealth 
under OnPlayerTakeDamage
PHP код:
new health;
GetPlayerHealth(playeridhealth);
PlayerInfo[playerid][pHealth] = health
This is how i understood when the player loose health it will save the player health in the player file.
Reply
#3

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
I tried to unserstand
Anyway
In your eum
PHP код:
    pHealth 
under OnPlayerTakeDamage
PHP код:
new health;
GetPlayerHealth(playeridhealth);
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)