SA-MP Forums Archive
25+ Armour help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: 25+ Armour help. (/showthread.php?tid=419667)



25+ Armour help. - Str4ndb3rg - 01.03.2013

When a player kills another player I want the player to regain 25+ armour. Is it possible?
I want to use it on ''OnPlayerDeath''

I tried
Код:
SetPlayerArmour(killerid, +25);



Respuesta: 25+ Armour help. - hotspicytaco - 01.03.2013

Try this way:

pawn Код:
new Float: Armour;
GetPlayerArmour(killerid, Armour);
SetPlayerArmour(killerid, Armour+25);