10.01.2011, 01:45
Meh.......
SetPlayerMaxHealth(playerid, Float:maxhealth);
>> returns No specific value I guess...
GetPlayerMaxHealth(playerid, &Float:maxhealth);
>> returns the max health set.
Not tested, may test..
SetPlayerMaxHealth(playerid, Float:maxhealth);
>> returns No specific value I guess...
pawn Code:
new Float:MaxHealth[MAX_PLAYERS];
stock SetPlayerMaxHealth(playerid, Float:maxhealth)
{
new name[24]; GetPlayerName(playerid,name,24);
MaxHealth[playerid] = maxhealth;
printf("%s (%d) Has A New Max Health Which Is %f.",name,playerid,maxhealth);
return 1;
}
>> returns the max health set.
pawn Code:
new Float:MaxHealth[MAX_PLAYERS];
stock GetPlayerMaxHealth(playerid, &Float:maxhealth)
{
new name[24]; GetPlayerName(playerid,name,24);
printf("%s (%d) Max Health Is %f",name,playerid);
return MaxHealth[playerid];
}