12.06.2011, 10:32
Or you can use a custom function, add this to somewhere (maybe the bottom) of your code:
Then instead of having a block of code to do one thing, just call the function above.
(GivePlayerHealth(playerid, amount))
pawn Код:
stock GivePlayerHealth(playerid, Float:amount)
{
static Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health+amount);
}
(GivePlayerHealth(playerid, amount))
![Smiley](images/smilies/smile.png)