auto refund
#3

I think he means something like when you get unfair death you get your money back..

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    //======[TAX]======//
   
    new string[128],
        wantedlevel = GetPlayerWantedLevel(playerid),
        moneyamount = GetPlayerMoney(playerid);
       
    if(moneyamount < 0) { moneyamount = moneyamount*-1; }
    if(-50000 < moneyamount < -1) { moneyamount = 0; }

    new tax; tax = 250+(moneyamount*wantedlevel)/20+random(1000);

    format(string, sizeof(string), "Your total tax was %d$.", tax);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
    GivePlayerMoney(playerid, -tax);
   
    if(wantedlevel == 0 && gTeam[killerid] == TEAM_POLICE || gTeam[killerid] == TEAM_CIA)
    {
        tax = 0;
    }
   
    //=[SETPLAYERWANTEDLEVEL]=//

    SetPlayerWantedLevel(playerid, 0);
   
    return 1;
}
Reply


Messages In This Thread
auto refund - by technofuzz - 24.12.2012, 23:20
Re: auto refund - by [CG]Milito - 24.12.2012, 23:45
Re: auto refund - by jNkk - 25.12.2012, 00:38
Re: auto refund - by jNkk - 25.12.2012, 00:41
Re: auto refund - by technofuzz - 25.12.2012, 08:13
Re: auto refund - by Camorra - 25.12.2012, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)