SA-MP Forums Archive
How can I do? - 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: How can I do? (/showthread.php?tid=121667)



How can I do? - Razvann - 17.01.2010

How can I do when Player1 haves 5500$ cash and it's killed by Player2, the cash from Player1 it's added to Player2's money.

Sorry 4 bad English, I'm Romanian.


Re: How can I do? - Backwardsman97 - 17.01.2010

pawn Код:
public OnPlayerDeath(playerid,killerid)
{
  SetPlayerMoney(killerid,GetPlayerMoney(killerid)+GetPlayerMoney(playerid));
  ResetPlayerMoney(playerid);
  return 1;
}



Re: How can I do? - Razvann - 17.01.2010

10x a lot, man!