16.04.2011, 16:46
Hi whe someone kill me i dont have money but i want when kill somebody to have all money of the player.
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerConnected(killerid)) {
new
val = GetPlayerMoney(playerid);
GivePlayerMoney(killerid, val);
ResetPlayerMoney(playerid);
}
return 1;
}