Server Sided Health/Armour Functions.
#5

Quote:
Originally Posted by SharpenBlade
View Post
Well, then I think your code could work.
PHP Code:
GetPlayerHealthEx(playerid) return Player[playerid][Health];
GetPlayerArmorEx(playerid) return Player[playerid][Armor];
SetPlayerHealthEx(playeridFloat:HpAmount) return Player[playerid][Health] = HpAmount;
SetPlayerArmorEx(playeridFloat:ArmorAmount) return Player[playerid][Armor] = ArmorAmount
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); 
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)