Fist damage broke? (rep)
#1

Well, i dont have any defines for my fists, but it does a random damage from 5-50, if you hit them with a two peice it will take like 50hp. i dont know what to do, ive tried making it so
Код:
	new Float:HP = GetPlayerHealth(playerid, HP);
	if(weaponid == 0)
	{
	    SetPlayerHealth(playerid, HP-3.0);
	}
but it just instantly kills them when i do that.
Reply
#2

You're doing it all wrong. GetPlayerHealth in itself only returns 0 or 1 depending on whether the player is connected. So you will get -2 health which will of course kill the player instantly. Check the documentation on the wiki.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)