[pomoc]opet payday

Započeo [CH]°°LøpεȤ°°[4EVER], Decembar 08, 2010, 08:38:11 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

posto nemogu u onoj temi pisat da vas put piram
public PayDay()
{
new string[128];
new account,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pLevel] > 0)
    {
    if(MoneyMessage[i]==1)
{
    SendClientMessage(i, COLOR_LIGHTRED, "Niste platili dug, u zatvor.");
    GameTextForPlayer(i, "~r~Uhapseni!", 2000, 1);
    SetPlayerInterior(i, 6);
    SetPlayerPos(i, 264.6288,77.5742,1001.0391);
            PlayerInfo[i][pJailed] = 1;
            ResetPlayerWeapons(i);
WantedPoints[i] = 0;
PlayerInfo[i][pJailTime] = 240;
format(string, sizeof(string), "Zatvoreni ste na %d sekundi.   Jamcevina: nedostupna", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_LIGHTBLUE, 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, "Izbaceni ste iz kuce.");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
}
new tmpintrate;
if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
}
else
{
    if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 5)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo[i][pAccount] -= TaxValue;
    if(PlayerInfo[i][pDonateRank] > 0)
{
    new bonus = PlayerInfo[i][pPayCheck] / 2;
    PlayerInfo[i][pPayCheck] += bonus;
}
new checks = PlayerInfo[i][pPayCheck];
    new ebill = (PlayerInfo[i][pAccount]/600)*(PlayerInfo[i][pLevel]);//10000
    ConsumingMoney[i] = 1;
    GivePlayerMoney(i, 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][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pAccount] = account+interest;
new playerid;
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "Placa:[$%d] Kamata:[-$%d]\nBanka:[$%d] Interest Rate:[$%d]\nDobivena Kamata:[$%d] Novo Stanje:[$%d]\nIznjamljivanje:[$%d] RENT:[-100]",checks, TaxValue,ebill,account,tmpintrate,interest,PlayerInfo[i][pAccount],rent);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "| PAYDAY: |",coordsstring,"O.K.","Izadji");
format(string, sizeof(string), "~g~Pay_Day");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pDonateRank] > 0)
{
    PlayerInfo[i][pPayDayHad] += 1;
    if(PlayerInfo[i][pPayDayHad] >= 5)//5
    {
        PlayerInfo[i][pExp]++;
        PlayerInfo[i][pPayDayHad] = 0;
    }
}
}
else
{
    SendClientMessage(i, COLOR_LIGHTRED, "* Niste igrali dovoljno dugo da bi dobili placu.");
}
}
}
}
Checkprop();
return 1;
}

to je public payday kak da odredim vrijeme ovoga " Niste igrali dovoljno dugo da bi dobili placu." jel napravio sam payday svakih 30 min al me sada ovo jebe :S...tnx unaprijed

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Tax += TaxValue;//Should work for every player online

lol..



Citat: Derekonja poslato Decembar 08, 2010, 15:19:34 POSLE PODNE
Tax += TaxValue;//Should work for every player online

lol..
:S,ja si kontam da je to za kamatnu stopu :S
Poslednja Izmena: Decembar 08, 2010, 16:23:06 POSLE PODNE od [CH]°°LøpεȤ°°[4EVER]

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....

Dobro ti kontas, searchaj za: pPayday
Aequam memento rebus in arduis servare mentem.

ma ne al to je kopirano od neki tut koji ima bug..



Citat: LuKsA poslato Decembar 08, 2010, 16:24:03 POSLE PODNE
Dobro ti kontas, searchaj za: pPayday
pod public payday?

hahahha warning = demir
CitatLose,Lose,Lose,Lose Prelose 0/10 nema nista tu to je 1 sek rada..... za nas profesionalce i dobre scritpere ....

ja sam najaci scripter na balkan a mozda i u svijet to je za mene stotinka....