Server Sided Health/Armour Functions.
#6

Quote:
Originally Posted by SkyFlare
View Post
Do you think this would work?
PHP Code:
GetPlayerHealthEx(playerid, &Float:HpAmount)
{
    
HpAmount Player[playerid][Health];

in theory this would be how i use it

PHP Code:
new Float:healthdying;
GetPlayerHealthEx(playeridhealthdying); 
Well, HpAmount = Player[playerid][Health]; means that you are setting HPAmount value to Player[playerid][Health]. If you want to change Player[playerid][Health] value (you set player health value to the value of HpAmount) use this:
PHP Code:
Player[playerid][Health] = HpAmount
Reply


Messages In This Thread
Server Sided Health/Armour Functions. - by SkyFlare - 01.07.2020, 09:57
Re: Server Sided Health/Armour Functions. - by SharpenBlade - 01.07.2020, 10:05
Re: Server Sided Health/Armour Functions. - by SkyFlare - 01.07.2020, 10:14
Re: Server Sided Health/Armour Functions. - by SharpenBlade - 01.07.2020, 10:24
Re: Server Sided Health/Armour Functions. - by SkyFlare - 01.07.2020, 10:26
Re: Server Sided Health/Armour Functions. - by SharpenBlade - 01.07.2020, 11:32
Re: Server Sided Health/Armour Functions. - by SkyFlare - 01.07.2020, 11:37
Re: Server Sided Health/Armour Functions. - by SharpenBlade - 01.07.2020, 12:40
Re: Server Sided Health/Armour Functions. - by SkyFlare - 01.07.2020, 14:14
Re: Server Sided Health/Armour Functions. - by ShadowMortar - 01.07.2020, 14:23

Forum Jump:


Users browsing this thread: 1 Guest(s)