auto refund
#1

Dose anyone know how to remove a auto refund i cant find it anywhere!

add me on skype jason.smith5180
Reply
#2

Auto-Refund? What you mean?
Reply
#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
#4

You could also add :

pawn Код:
SetPlayerHealth(killerid, 0);
To kill the Policeman or Cia whatever who killed unfairly (under tax = 0)
Reply
#5

No when a new charater is created it gives them 1mill and vip
Reply
#6

OnPlayerConnacted.
Add me on skype ill help ya.
Skype: Anthony_Camorra.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)