SA-MP Forums Archive
The killer have to got all the money from the player :(( - 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: The killer have to got all the money from the player :(( (/showthread.php?tid=141807)



The killer have to got all the money from the player :(( - [Ha]Lommo - 15.04.2010

Hi!

I want that when the someone kills anyone he gets all the money from that guy.

How do i do it?



Re: The killer have to got all the money from the player :(( - [MWR]Blood - 15.04.2010

pawn Код:
new Float:money;
GetPlayerMoney(playerid,money);
GivePlayerMoney(killerid,money);
Put it under OnPlayerDeath... untested, idk if it works


Re: The killer have to got all the money from the player :(( - Hiddos - 15.04.2010

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
   GivePlayerMoney(killerid,GetPlayerMoney(playerid));
   return 1;
}



Re: The killer have to got all the money from the player :(( - [Ha]Lommo - 15.04.2010

Really thankyou guys