SA-MP Forums Archive
help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (/showthread.php?tid=543726)



help - BlackEvils - 28.10.2014

hi all i need help with this code

SetPlayerHealth(killerid,SetPlayerHealth(killerid) +15);

i want to set every time a player kill another player give + 15 health and + 15 armour how i can make it with out warnings?


Re: help - ReyMysterio - 28.10.2014

Try this:

pawn Код:
new Float: health;
GetPlayerHealth(killerid, health);
SetPlayerHealth(killerid, health+15);



Re: help - DavidBilla - 28.10.2014

pawn Код:
new Float: health,Float:armour;
GetPlayerHealth(killerid,health);
GetPlayerArmour(killerid,armour);
SetPlayerHealth(killerid,health+15);
SetPlayerArmour(killerid,armour+15);



Re: help - BlackEvils - 28.10.2014

thx all for help me