GetPlayerHealth problem?
#3

Quote:
Originally Posted by Antonio144
Посмотреть сообщение
Health ranges from 0 to 100.0, so if you set your health to 9999.0 its the same as 100.0.
Try setting your health to 99.0.
I've made this
Код:
CMD:gethealth(playerid, params[])
{
	new string[256], Float:shit;
	GetPlayerHealth(playerid, Float:shit);
	format(string, sizeof(string),  "health is %f", shit);
	SendClientMessage(playerid, -1, string);
	return 1;
}
And it shows me "15.0" when the health is set to "9999.0" and "159.0" when it's set to "99999.0". I'm having problems with my anti-health hack due to this and spawn protection.
Reply


Messages In This Thread
GetPlayerHealth problem? - by exclide1 - 04.07.2013, 14:39
Re: GetPlayerHealth problem? - by Antonio144 - 04.07.2013, 14:52
Re: GetPlayerHealth problem? - by exclide1 - 04.07.2013, 14:58
Respuesta: Re: GetPlayerHealth problem? - by Gryphus One - 04.07.2013, 15:24
Re: GetPlayerHealth problem? - by exclide1 - 04.07.2013, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)