SA-MP Forums Archive
MONEYZZ - 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: MONEYZZ (/showthread.php?tid=423927)



MONEYZZ - NuggaN - 19.03.2013

I want that if one guy killed the other guy, he should get money. And the amount of money should be minus of the guy who died.

how to do??


Re: MONEYZZ - Glad2BeHere - 19.03.2013

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  GivePlayerMoney(playerid, -1000); //gives the player that died -1000dollars
  GivePlayerMoney(killerid, 1000); //gives the killer 1000 dollars
  return 1;
}