21.12.2012, 23:10
Well even removed the SetPlayerWantedLevel and it still does this... what the...? My final code:
Код:
public OnPlayerDeath(playerid, killerid, reason) { //================[TAX]================// new string[128]; new wantedlevel; wantedlevel = GetPlayerWantedLevel(playerid); new moneyamount; moneyamount = GetPlayerMoney(playerid); new tax; if(moneyamount < 0) { tax = (wantedlevel*((3/4)*-moneyamount))-random(1000); } if(moneyamount > 0) { tax = (wantedlevel*((3/4)*moneyamount))+random(1000); } format(string, sizeof string, "Your total tax was %d$.", tax); SendClientMessage(playerid, COLOR_ACHIEVEMENT, string); GivePlayerMoney(playerid, -tax); return 1; }