[pomoc]PayDay

Započeo Nemanja King, Avgust 21, 2011, 21:12:05 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:BU
Detaljan opis problema:Kako da ugodim ako nista ne radis da dobijas platu 100 dolara
Dio skripte:
public PayDay()
{

new string[128];
new account,interest;
new rent = 0;
foreach (Player, i)
{
    if(PlayerInfo[i][pLevel] > 0)
    {
    if(MoneyMessage[i]==1)
{
    SendClientMessage(i, COLOR_LIGHTRED, "Niste uspeli da vratite dug, idete u zatvor.");
    GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
    SetPlayerInterior(i, 6);
    PlayerInfo[i][pInt] = 6;
    SetPlayerPos(i, 264.6288,77.5742,1001.0391);
            PlayerInfo[i][pJailed] = 1;
            SafeResetPlayerWeapons(i);
            SafeResetPlayerMoney(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][pAdmin] > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
}
else
{
    if(PlayerInfo[i][pGm] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 5)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo[i][pAccount] -= TaxValue;
new checks = PlayerInfo[i][pPayCheck] / 5;
if(PlayerInfo[i][pGm] > 0 || PlayerInfo[i][pAdmin] > 0)
{
    new bonus = PlayerInfo[i][pPayCheck] / 10;
    checks += bonus;
}
    new ebill = (PlayerInfo[i][pAccount]/100000)*(PlayerInfo[i][pLevel]);
    account += checks;
    if(PlayerInfo[i][pAccount] > 0)
    {
    PlayerInfo[i][pAccount] -= ebill;
                        SBizzInfo[0][sbTill] += ebill;
                    SBizzInfo[0][sbProducts]--;

}
else
{
    ebill = 0;
}
interest = (PlayerInfo[i][pAccount]/10000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerInfo[i][pAccount] = account+interest;
                new plata[1148];
                new mesage1[128];
                new mesage2[128];
                new mesage3[128]
            format(mesage1, sizeof(mesage1), "{FFFF80}Stigla vam je plata na vas bankovni racun\n\n");
format(mesage2, sizeof(mesage2), "{FFFF80}Plata: %d$ {FF0000}Racun za Struju: %d$\n\n{FFFF80}Staro stanje: %d$ {FFFF80}Kamata: 0.%d %\n\n{FF0000}Kamatni interes: %d$",  checks, ebill, account - checks,tmpintrate,interest);
        format(mesage3, sizeof(mesage3), "{FFFF80}Novo stanje : %d $\n\n{FF0000}Rent: -$%d {FFFF80}Takse: -$%d", PlayerInfo[i][pAccount],rent,TaxValue);
            format(plata, 712," %s%s%s%s%s%s",mesage1,mesage2,mesage3);
                ShowPlayerDialog(i, 252, DIALOG_STYLE_MSGBOX, "{FF0000}Plata ", plata, "Uredu", "Izadji" );
}
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;


     if(PlayerInfo[i][pGm] > 0 || PlayerInfo[i][pAdmin] > 0)
{
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pPayDayHad] >= 5)
    {
        PlayerInfo[i][pExp]++;
        PlayerInfo[i][pPayDayHad] = 0;
        SaveAccounts();
    }
}
}
else
{
    SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili platu.");
}
}
}

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

Kontakt
Skype nemanja.lazarevic.567
XFire kingsamp
Mystic World Community
Server Address 176.104.106.8 :5555