15.04.2010, 14:40
Hi!![Cheesy](images/smilies/biggrin.png)
I want that when the someone kills anyone he gets all the money from that guy.
How do i do it?
![Cheesy](images/smilies/biggrin.png)
I want that when the someone kills anyone he gets all the money from that guy.
How do i do it?
new Float:money;
GetPlayerMoney(playerid,money);
GivePlayerMoney(killerid,money);
public OnPlayerDeath(playerid,killerid,reason)
{
GivePlayerMoney(killerid,GetPlayerMoney(playerid));
return 1;
}