[Pomoc] respekti ne rade

Započeo [GU:RP] Ivica, Novembar 18, 2012, 13:37:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:cyber
Detaljan opis problema:kad dode pay imaju svi dovoljno payday poena ne dobije se respekt kako da sredim to...
evo dio public payday
public PayDay()
{
new string[128];
//new payday[512];
new cash;
new account,interest;
new rent = 0;
foreach (Player, i)
{
      if(PlayerInfo[i][pLevel] > 0)
      {
       if(MoneyMessage[i]==1)
    {
        SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
        GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
        SetPlayerInterior(i, 6);
        PlayerInfo[i][pInt] = 6;
              PlayerInfo[i][pJailed] = 1;
              ResetPlayerWeapons(i);
              ResetPlayerWeapons(i);
     WantedPoints[i] = 0;
     PlayerInfo[i][pJailTime] = 240;
     format(string, sizeof(string), "Uhapseni ste na %d sekundi.   Kaucija: Nedostupna", PlayerInfo[i][pJailTime]);
     SendClientMessage(i, COLOR_WHITE, string);
    }
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(i, playername2, sizeof(playername2));
    account = PlayerInfo[i][pAccount];
    new key = PlayerInfo[i][pPhousekey];
    if(key != 255)
    {
     rent = HouseInfo[key][hRent];
     if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
     {
      rent = 0;
     }
     else if(rent > GetPlayerMoney(i))
     {
      PlayerInfo[i][pPhousekey] = 255;
      SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
      rent = 0;
     }
     HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
    }
    new tmpintrate;
    if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
    {
        if(PlayerInfo[i][twixDonatorRank] > 0) { tmpintrate = intrate+4; }
     else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
    }
    else
    {
        if(PlayerInfo[i][twixDonatorRank] > 0) { tmpintrate = 3; }
     else { tmpintrate = 1; }
    }
        if(PlayerInfo[i][pMinute] < 40)
     {
      SCM(i, COLOR_LIGHTRED, "*G-Unit: Niste igrali dovoljno dugo da dobijete plaću!");
      return 1;
     }
        Tax += TaxValue;//Should work for every player online
        PlayerInfo[i][pAccount] -= TaxValue;
     new checks = PlayerInfo[i][pPayCheck] / 5;
     if(PlayerInfo[i][twixDonatorRank] > 0)
     {
         new bonus = PlayerInfo[i][pPayCheck] / 10;
         checks += bonus;
     }
        new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
        account += checks;
        if(PlayerInfo[i][pAccount] > 0)
        {
         PlayerInfo[i][pAccount] -= ebill;
         SBizzInfo[4][sbTill] += ebill;
     }
     else
     {
         ebill = 0;
     }
     interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
     PlayerInfo[i][pAccount] = account+interest;
     PlayerInfo[i][pExp]++;
     new nxlvl = PlayerInfo[i][pLevel]+1;
if(PlayerInfo[i][pExp] >= nxlvl)
{
  format(string, sizeof(string), "[Level up +++] Cestitamo, Presli ste na slijedeci Level: %d",nxlvl);
  SendClientMessage(i,SVETLOPLAVA,string);
    PlayerInfo[i][pLevel]++;
    PlayerInfo[i][pExp] = 0;
}
     new coordsstring[400];
     format(coordsstring, sizeof(coordsstring), "\nLos Santos Banka\n\nPoÅ¡tovani,ovo je bankovno izvijesce za proteklo razdoblje.\n\nPrihodi\n-Stari iznos racuna: $%d\n-Novi iznos uplate place na vas racun: $%d, Dodatci: $0\n\nRashodi\n-Struja: | Voda: 0$ | Smece: 0$ | Plin: 0$ \n-Najamnina: Kuca: -$%d\n-Porez na luksuz: 0\n\n\n_____________________________________\nNovo stanje racuna: %d", account,cash,rent,PlayerInfo[i][pAccount]+cash);
     ShowPlayerDialog(i, 999, DIALOG_STYLE_MSGBOX, "{33BBFF}LS BANKA | Izlistanje racuna", coordsstring, "U redu", "Odustani");
     //new platatext[1024];
     //format(platatext, sizeof(platatext), "{FFFFFF}Los Santos Banka\n\n{FFFFFF}Postovani,ovo je bankovno izvijesce za protekli sat\n\n{FFFFFF}Prihodi\n{FFFFFF}Stari iznos racuna:$%d\n\n{FFFFFF}Rashodi\n{FFFFFF}Struja:0$ | Voda:0$ | Smece:0$\n{FFFFFF}Plin:0$ | {FFFFFF}Najam kuce:$%d\n\n_____________________________________\n{FFFFFF}Novi iznos racuna: %d", account,cash,rent,PlayerInfo[i][pAccount]+cash);
     //ShowPlayerDialog(i, 999, DIALOG_STYLE_MSGBOX, "{33BBFF}LS Banka | Izlistanje racuna", platatext, "U redu", "Izlaz");
     rent = 0;
     PlayerInfo[i][pPayCheck] = 0;
     PlayerInfo[i][pMinute] = 0;
     PlayerInfo[i][pConnectTime] ++;
     PlayerInfo[i][pContractTime]++;
    }
    else
    {
        SendClientMessage(i, COLOR_LIGHTRED, "*G-Unit: Niste igrali dovoljno dugo da biste dobili placu.");
    }
}
SaveAccounts();
Checkprop();
return 1;
}


Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Novembar 18, 2012, 14:03:50 POSLE PODNE od ivica158