22.12.2012, 22:23
Bump?
I still need help with this. Here is the code.
(my wanted level isn't detected)
I still need help with this. Here is the code.
(my wanted level isn't detected)
Код:
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;
}

