Doctor script
#3

Quote:
Originally Posted by alinategh
Посмотреть сообщение
You mean add 2 hp to player's health?
new hp = GetPlayerHealth(playerid);
hp += 2;
SetPlayerHealth(playerid, hp);
Have you ever used GetPlayerHealth function?

It's stored to the variable by reference.

pawn Код:
new
    Float: hp
;
GetPlayerHealth( playerid, hp );
SetPlayerHealth( playerid, hp + 2 );
Reply


Messages In This Thread
Doctor script - by GrOobY - 17.09.2013, 13:17
Re: Doctor script - by alinategh - 17.09.2013, 13:26
Re: Doctor script - by Konstantinos - 17.09.2013, 13:28
Re: Doctor script - by alinategh - 17.09.2013, 13:31
Re: Doctor script - by GrOobY - 17.09.2013, 13:38
Re: Doctor script - by alinategh - 17.09.2013, 13:45
Re: Doctor script - by therainycat - 17.09.2013, 13:45
Re: Doctor script - by GrOobY - 17.09.2013, 13:52
Re: Doctor script - by alinategh - 17.09.2013, 14:08
Re: Doctor script - by Konstantinos - 17.09.2013, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)