The killer have to got all the money from the player :((
#1

Hi!

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

How do i do it?
Reply
#2

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

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

Really thankyou guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)