/goto, /get, /getthere
#9

You're setting someone's HP to -20, which is lower than 0, which means you're dead.

Correct usage:
pawn Код:
new Float:hp;

GetPlayerHealth(pID, hp);
SetPlayerHealth(pID, hp -20);
for your /slapall command:

pawn Код:
new Float:hp;

GetPlayerHealth(i, hp);
SetPlayerHealth(i, hp -20);
Reply


Messages In This Thread
/goto, /get, /getthere - by Markx - 19.03.2011, 09:14
Re: /goto, /get, /getthere - by Biesmen - 19.03.2011, 09:18
Re: /goto, /get, /getthere - by Markx - 19.03.2011, 09:22
Re: /goto, /get, /getthere - by PinkFloydLover - 19.03.2011, 09:24
Re: /goto, /get, /getthere - by [L3th4l] - 19.03.2011, 09:24
Re: /goto, /get, /getthere - by Pooh7 - 19.03.2011, 09:27
Re: /goto, /get, /getthere - by Markx - 19.03.2011, 09:31
Re: /goto, /get, /getthere - by Markx - 19.03.2011, 09:46
Re: /goto, /get, /getthere - by Biesmen - 19.03.2011, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)