SA-MP Forums Archive
kill - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: kill (/showthread.php?tid=139488)



kill - shoru93 - 05.04.2010

whats the code for: if i kill someone, then set my health/armour 100
?


Re: kill - Jochemd - 05.04.2010

Oh, that's simple...

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	SetPlayerHealth(killerid,100);
	SetPlayerArmour(killerid,100);
	return 1;
}



Re: kill - scott1 - 05.04.2010

In your
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
put SetPlayerHealth(killerid, 100);
SetPlayerArmour(killerid, 100);

Edit: 20sec too late xD


Re: kill - Steven82 - 05.04.2010

lol scott


[SOLVED] - shoru93 - 05.04.2010

Thank you