02.04.2012, 11:54
I don`t understand this
Do you mean like if player has 5000 and dies to reset money to 0?And and do not give with - ?
Quote:
I want it where the player who dies doesn't get there money reset to $0 if they have $200,000. I want it so it takes away $7500 max. |
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(GetPlayerMoney(playerid) <= 7500) { GivePlayerMoney(killerid, 7500); SetPlayerMoney(playerid, 0); } else { GivePlayerMoney(killerid, 7500); new mrand =random(10000); GivePlayerMoney(playerid,-mrand); } return 1; }