[Pmoc] PayDay

Započeo Roy, Avgust 03, 2011, 16:12:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Roy

*

Skripta koju koristim: Cyber Edit
Detaljan opis problema: Ne dolazi mi nikako payday svakih sat vremena...
Dio skripte: public PayDay()
{
new string[128];
new account,interest;
new rent = 0;
foreach(Player, i)
{

    if(PlayerInfo[i][pLevel] > 0)
    {
                    new nxtlevel = PlayerInfo[i][pLevel]+1;
                    new expamount = nxtlevel*levelexp;
if (PlayerInfo[i][pExp] >= expamount)
{
format(string, sizeof(string), "~g~LEVEL UP~n~~w~sada si level %d", nxtlevel);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(i);
PlayerInfo[i][pLevel]++;
if(PlayerInfo[i][twixDonatorRank] > 0)
{
    PlayerInfo[i][pExp] -= expamount;
    new total = PlayerInfo[i][pExp];
    if(total > 0)
    {
        PlayerInfo[i][pExp] = total;
    }
    else
    {
        PlayerInfo[i][pExp] = 0;
    }
}
else
{
PlayerInfo[i][pExp] = 0;
}
PlayerInfo[i][gPupgrade] = PlayerInfo[i][gPupgrade]+2;
GameTextForPlayer(i, string, 5000, 1);
}
}
    if(MoneyMessage[i]==1)
{
    SendClientMessage(i, CRVENA, "Nisi uspio platiti dug | Zatvor");
    GameTextForPlayer(i, "~r~Busted!", 2000, 1);
    SetPlayerInterior(i, 6);
    SetPlayerPos(i, 263.7133,81.4963,1001.0391);
            PlayerInfo[i][pJailed] = 1;
            ResetPlayerWeapons(i);
WantedLevel[i] = 0;
PlayerInfo[i][pJailTime] = 240;
format(string, sizeof(string), "Zatvoren si na %d sekundi | Nagodba: -", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_TEXT, 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 > JB_GetPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 255;
SendClientMessage(i, CRVENA, "Upravo ste iseljeni!");
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; }
}
else
{
    if(PlayerInfo[i][twixDonatorRank] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 5)
{
    Tax += TaxValue;
    PlayerInfo[i][pAccount] -= TaxValue;
    if(PlayerInfo[i][twixDonatorRank] > 0)
{
    new bonus = PlayerInfo[i][pPayCheck] / 2;
    PlayerInfo[i][pPayCheck] += bonus;
}
new checks = PlayerInfo[i][pPayCheck];
    new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
    ConsumingMoney[i] = 1;
    JB_GivePlayerMoney(i, checks/5);
    if(PlayerInfo[i][pAccount] > 0)
    {
    PlayerInfo[i][pAccount] -= ebill;
    SBizzInfo[4][sbTill] += ebill;
}
else
{
    ebill = 0;
}
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pAccount] = account+interest;
SendClientMessage(i, CRVENA, "[===============[ PLACA ]===============]");
format(string, sizeof(string), "Plata: %d$   Porez: -%d$", checks/5, TaxValue);
SendClientMessage(i, BELA, string);
if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
{
    format(string, sizeof(string), "Racuni: -%d$", ebill);
SendClientMessage(i, BELA, string);
}
format(string, sizeof(string), "Stanje: %d$", account);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "Kamatna stopa: 0.%d",tmpintrate);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "Stecenih kamata: %d$", interest);
SendClientMessage(i, BELA, string);
SendClientMessage(i, CRVENA, "[======================================]");
format(string, sizeof(string), "Novo stanje: %d$", PlayerInfo[i][pAccount]);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "Rent: -%d$", rent);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "~g~Placa");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pKredit]== 0)
                {
                PlayerInfo[i][pKredit] = 0;
}
                else if (PlayerInfo[i][pKredit]> 0)
                    {
PlayerInfo[i][pKredit] = PlayerInfo[i][pKredit]-500;
JB_GivePlayerMoney(i,500);
SendClientMessage(i, PLAVA, "* Rata kredita -500$.");
                    }
if(PlayerInfo[i][twixDonatorRank] > 0)
{
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pPayDayHad] >= 5)
    {
        PlayerInfo[i][pExp]++;
        PlayerInfo[i][pPayDayHad] = 0;
    }
}
}
else
{
    SendClientMessage(i, BELA, " Nisi dovoljno igrao da dobijes platu.");
}
  }
// }
   //   }
Checkprop();
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://

Citat: Roy poslato Avgust 03, 2011, 16:12:55 POSLE PODNE
Skripta koju koristim: Cyber Edit
Detaljan opis problema: Ne dolazi mi nikako payday svakih sat vremena...
Dio skripte: public PayDay()
{
new string[128];
new account,interest;
new rent = 0;
foreach(Player, i)
{

    if(PlayerInfo[i][pLevel] > 0)
    {
                    new nxtlevel = PlayerInfo[i][pLevel]+1;
                    new expamount = nxtlevel*levelexp;
if (PlayerInfo[i][pExp] >= expamount)
{
format(string, sizeof(string), "~g~LEVEL UP~n~~w~sada si level %d", nxtlevel);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(i);
PlayerInfo[i][pLevel]++;
if(PlayerInfo[i][twixDonatorRank] > 0)
{
    PlayerInfo[i][pExp] -= expamount;
    new total = PlayerInfo[i][pExp];
    if(total > 0)
    {
        PlayerInfo[i][pExp] = total;
    }
    else
    {
        PlayerInfo[i][pExp] = 0;
    }
}
else
{
PlayerInfo[i][pExp] = 0;
}
PlayerInfo[i][gPupgrade] = PlayerInfo[i][gPupgrade]+2;
GameTextForPlayer(i, string, 5000, 1);
}
}
    if(MoneyMessage[i]==1)
{
    SendClientMessage(i, CRVENA, "Nisi uspio platiti dug | Zatvor");
    GameTextForPlayer(i, "~r~Busted!", 2000, 1);
    SetPlayerInterior(i, 6);
    SetPlayerPos(i, 263.7133,81.4963,1001.0391);
            PlayerInfo[i][pJailed] = 1;
            ResetPlayerWeapons(i);
WantedLevel[i] = 0;
PlayerInfo[i][pJailTime] = 240;
format(string, sizeof(string), "Zatvoren si na %d sekundi | Nagodba: -", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_TEXT, 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 > JB_GetPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 255;
SendClientMessage(i, CRVENA, "Upravo ste iseljeni!");
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; }
}
else
{
    if(PlayerInfo[i][twixDonatorRank] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 5)
{
    Tax += TaxValue;
    PlayerInfo[i][pAccount] -= TaxValue;
    if(PlayerInfo[i][twixDonatorRank] > 0)
{
    new bonus = PlayerInfo[i][pPayCheck] / 2;
    PlayerInfo[i][pPayCheck] += bonus;
}
new checks = PlayerInfo[i][pPayCheck];
    new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
    ConsumingMoney[i] = 1;
    JB_GivePlayerMoney(i, checks/5);
    if(PlayerInfo[i][pAccount] > 0)
    {
    PlayerInfo[i][pAccount] -= ebill;
    SBizzInfo[4][sbTill] += ebill;
}
else
{
    ebill = 0;
}
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pAccount] = account+interest;
SendClientMessage(i, CRVENA, "[===============[ PLACA ]===============]");
format(string, sizeof(string), "Plata: %d$   Porez: -%d$", checks/5, TaxValue);
SendClientMessage(i, BELA, string);
if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
{
    format(string, sizeof(string), "Racuni: -%d$", ebill);
SendClientMessage(i, BELA, string);
}
format(string, sizeof(string), "Stanje: %d$", account);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "Kamatna stopa: 0.%d",tmpintrate);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "Stecenih kamata: %d$", interest);
SendClientMessage(i, BELA, string);
SendClientMessage(i, CRVENA, "[======================================]");
format(string, sizeof(string), "Novo stanje: %d$", PlayerInfo[i][pAccount]);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "Rent: -%d$", rent);
SendClientMessage(i, BELA, string);
format(string, sizeof(string), "~g~Placa");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pKredit]== 0)
                {
                PlayerInfo[i][pKredit] = 0;
}
                else if (PlayerInfo[i][pKredit]> 0)
                    {
PlayerInfo[i][pKredit] = PlayerInfo[i][pKredit]-500;
JB_GivePlayerMoney(i,500);
SendClientMessage(i, PLAVA, "* Rata kredita -500$.");
                    }
if(PlayerInfo[i][twixDonatorRank] > 0)
{
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pPayDayHad] >= 5)
    {
        PlayerInfo[i][pExp]++;
        PlayerInfo[i][pPayDayHad] = 0;
    }
}
}
else
{
    SendClientMessage(i, BELA, " Nisi dovoljno igrao da dobijes platu.");
}
  }
// }
   //   }
Checkprop();
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
da ja takodje imam ovaj problem oce nam neko pomoc :D ?