sync player hp and armour
#1

So..I want to sync player health and armour. When they aren't synchronized by the SA-MP or whatever.

So I made 2 variables where I stored the player last health and armour.

and when I finish checking I use SetPlayerHealth/Armour...

So basically, when a player change his VW to anoter VW where a Player is AFK (they aren't sync) so I want to do when the player that isn't AFK shoot in player that is AFK to take damage (default the player doesn't take DMG).

So I made this script, in OnPlayerGiveDamage: https://pastebin.com/jgXh60cn
And OnPlayerUpdate: https://pastebin.com/bVwWTBHC

I tested on my server and nothing happend, like before, when they aren't sync , the player AFK still doesn't take dmg.
Reply


Messages In This Thread
sync player hp and armour - by RedGun2015 - 21.02.2018, 13:19
Re: sync player hp and armour - by AstroPoid - 21.02.2018, 15:56
Re: sync player hp and armour - by NaS - 21.02.2018, 20:39
Re: sync player hp and armour - by RedGun2015 - 22.02.2018, 11:06
Re: sync player hp and armour - by NaS - 22.02.2018, 13:52
Re: sync player hp and armour - by RedGun2015 - 23.02.2018, 14:07

Forum Jump:


Users browsing this thread: 1 Guest(s)