Award cash for each 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)
+--- Thread: Award cash for each kill (
/showthread.php?tid=336399)
Award cash for each kill -
Incog_Nito - 22.04.2012
Hi I'd like to award $2,000 for every kill of opposing team members.
How can I achieve this?
Re: Award cash for each kill -
Finn - 22.04.2012
Did you even check SA-MP wiki? I guess not.
https://sampwiki.blast.hk/wiki/OnPlayerDeath
Re: Award cash for each kill -
Incog_Nito - 22.04.2012
Nah actually I didn't think it would be in there.
Apparently I was wrong.
Thanks
Re: Award cash for each kill -
IceCube! - 22.04.2012
Why wouldn't it be there!, EVERYTHING from the SAMP default is there. It may lack some functions from plugins but they are included on the download forums.
Re: Award cash for each kill -
[MG]Dimi - 22.04.2012
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(GetPlayerTeam(playerid) != GetPlayerTeam(killerid))
{
GivePlayerMoney(killerid,2000);
}
return 1;
}
Here.
Re: Award cash for each kill -
Incog_Nito - 22.04.2012
Quote:
Originally Posted by [MG]Dimi
pawn Код:
public OnPlayerDeath(playerid,killerid,reason) { if(GetPlayerTeam(playerid) != GetPlayerTeam(killerid)) { GivePlayerMoney(killerid,2000); } return 1; }
Here.
|
Awesome. Thanks for your help, Dimi.