01.01.2015, 04:05
Kurta i know some possible and great functions for your project. 
SetPlayerFakeHealth(playerid,float:hp); // sets the serverside health
TogglePlayerFakeHealth(playerid,bool:value); // enables the FakeHealth and just sync the serverside value
the same with:
Armour - same like health
Position - if someone is on the street and afk, moving him without a resync by coming back into the game
explanation of the fakehealth, what will work too for armour:
the player just need to be synced by the server, if you want to add a system what allows players to get hurt on desktop, they will just change the health by coming back into the game.
with this functions you can show everyone the new health without waiting for a sync.
the same will work if you give someone godmode.
think about if you got 50 HP... you will get a half healthbar.
if i hit you by a deagle you will loose it and get it back by the server.
if the same happens to you at 20 HP, you will die.
(this can happens too by falling while having godmode and get over 100 damage)
all you can do is giving 100.000 HP clientside and show everyone a full healthbar.
with fakehealth you can give 100.000 HP clientside and show serverside 20 HP.
someone hit you with a deagle and the clienthealth will be 99.956 and the healthbar will stay at 20 for everyone.
that will change alot of possibility for everyone who want to make a afk-damage,godmode or spawn-protection(after login with old health) system. a complete serverside health system to prevent clientside-godmode-cheats will be possible too with that.

SetPlayerFakeHealth(playerid,float:hp); // sets the serverside health
TogglePlayerFakeHealth(playerid,bool:value); // enables the FakeHealth and just sync the serverside value
the same with:
Armour - same like health
Position - if someone is on the street and afk, moving him without a resync by coming back into the game
explanation of the fakehealth, what will work too for armour:
the player just need to be synced by the server, if you want to add a system what allows players to get hurt on desktop, they will just change the health by coming back into the game.
with this functions you can show everyone the new health without waiting for a sync.
the same will work if you give someone godmode.
think about if you got 50 HP... you will get a half healthbar.
if i hit you by a deagle you will loose it and get it back by the server.
if the same happens to you at 20 HP, you will die.
(this can happens too by falling while having godmode and get over 100 damage)
all you can do is giving 100.000 HP clientside and show everyone a full healthbar.
with fakehealth you can give 100.000 HP clientside and show serverside 20 HP.
someone hit you with a deagle and the clienthealth will be 99.956 and the healthbar will stay at 20 for everyone.
that will change alot of possibility for everyone who want to make a afk-damage,godmode or spawn-protection(after login with old health) system. a complete serverside health system to prevent clientside-godmode-cheats will be possible too with that.