[pomoc] plata

Započeo Obrisan korisnik
2. Apr. 2012. Zaključano
331
pregleda
2
postova
Deleted User
Obrisan korisnik
2. Apr. 2012.
Skripta koju koristim:Rp BM Moja
Detaljan opis problema😛revelik mi dodje Pay Day znaci Pre velik
Dio skripte://ev dole
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
forward PayDay();
public PayDay()
{
new string;
new account,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo > 0)
    {
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
if(GetPVarInt(i, "Posao") != 0)
{
SetPVarInt(i, "Ugovor", GetPVarInt(i, "Ugovor") +1);
}
new tmpintrate;
if (PlayerInfo != 255 && strcmp(playername2, Houses[PlayerInfo], true) == 0)
{
    if(GetPVarInt(i, "DonatorRank")  > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//Houses
}
else
{
    if(GetPVarInt(i, "DonatorRank")  > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo >= 30)
{
Tax += TaxValue;//Should work for every player online
    PlayerInfo -= TaxValue;
    if(GetPVarInt(i, "DonatorRank")  > 0)
{
    new bonus = PlayerInfo / 2;
    PlayerInfo += bonus;
}
new checks = PlayerInfo;
    new ebill = (PlayerInfo/50)+(PlayerInfo*5)/3;
new vodabill = (PlayerInfo/500)+(PlayerInfo*5)/30;
    ConsumingMoney = 1;

    if(PlayerInfo != 255 || PlayerInfo != 255 || PlayerInfo != 255)
    {
for(new d = 0; d < sizeof(Dionice); d++)
{
if(Dionice == 2)
{
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
Dionice += ebill/10;
SaveDionice(d);
}
if(Dionice == 3)
{
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
Dionice += vodabill/10;
SaveDionice(d);
}
}
}
else
{
    ebill = 0;
}
PlayerInfo -= ebill;
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = account+interest + checks;
new nxtlevel = PlayerInfo+1;
new expamount = nxtlevel*levelexp;
if(PlayerInfo >= expamount)
{
format(string, sizeof(string), "{00C0FF}Blue{FFFFFF}Motion | {00FF40}LEVEL UP! {69FF8F}Sada si level {FFFF80}%d", nxtlevel);
SCM(i, WHITE, string);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(i);
PlayerInfo++;
if(GetPVarInt(i, "DonatorRank")  > 0)
{
    PlayerInfo -= expamount;
    new total = PlayerInfo;
    if(total > 0)
    {
        PlayerInfo = total;
    }
    else
    {
        PlayerInfo = 0;
    }
}
else
{
PlayerInfo = 0;
}
PlayerInfo = PlayerInfo+2;
}

format( string, sizeof( string ), "{FFFF80}Isplata: %d$ \n{FFFF80}Porez: %d$ \n{FFFF80}Racun za struju: %d$ \n{FFFF80}Racun za vodu: %d$\n{FFFF80}Banka: %d$\n{FFFF80}Kamatna stopa: 0.%d %\n{FFFF80}Kamata: %d$\n{FFFF80}Novo stanje u Banci: %d $\n{FFFF80}Rent: %d$", checks, TaxValue, ebill, vodabill, account, tmpintrate, interest, PlayerInfo, rent);
        ShowPlayerDialog( i, 250, DIALOG_STYLE_MSGBOX, "{00C0FF}Blue{FFFFFF}Motion PayDay isplata", string, "Uredu", "" );

if(PlayerInfo > 0)
{
new string1[128 ];
format( string1, sizeof( string1 ), "\n{FFFF80}Kredit: -1000$\n{FFFF80}Preostalo rata: %d", PlayerInfo);
new kredito;
format( kredito, sizeof( kredito ), "{FFFF80}Isplata: %d$\n{FFFF80}Porez: %d$\n{FFFF80}Racun za struju: %d$\n{FFFF80}Racun za vodu: %d$\n{FFFF80}Banka: %d$\n{FFFF80}Kamatna stopa: 0.%d %\n{FFFF80}Kamata: %d$\n{FFFF80}Novo stanje u Banci: %d $\n{FFFF80}Rent: %d$ %s", checks, TaxValue, ebill,vodabill, account, tmpintrate, interest, PlayerInfo, rent, string1);
        ShowPlayerDialog( i, 250, DIALOG_STYLE_MSGBOX, "{00C0FF}Blue{FFFFFF}Motion PayDay isplata", kredito, "Uredu", "" );

PlayerInfo += 1;
PlayerInfo -= 1;
PlayerInfo -=  1000;
}
if(PlayerInfo == 0)
{
new kredito;
format(kredito, sizeof(kredito), "  Kredit otplacen. Mozes ici da podignes novi!", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, kredito);
PlayerInfo = 0;
PlayerInfo = -1;
}

rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo += 1;
PlayerInfo = 0;
if(GetPVarInt(i, "DonatorRank")  > 0)
{
    PlayerInfo += 1;
    if(PlayerInfo >= 5)
    {
        PlayerInfo++;
        PlayerInfo = 0;
    }
}
}
else
{
SendClientMessage(i, COLOR_LIGHTRED, "* Nisi igrao dovoljno dugo da bi dobio platu.");
}
}
}
}

return 1;
Deleted User
Obrisan korisnik
2. Apr. 2012.
Bump daj zna li tko ovo da rijesi hitno je POMOCC

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha