[pomoc]oko payday plate

Započeo N1XTON
2. Feb. 2013. Zaključano
258
pregleda
2
postova
[EX:RP]N1XTON
5
Underboss
2. Feb. 2013.
Da nebude zabune nije N1XTON vec njegov brt

Skripta:GTA RP ( edit)
Detaljan opis problema: dakle kako da stavim kad dodje payday ako igrac ima posao id 25 provjera je da dobije platu za 1000 vecu ?

Dio scripte
:
public PayDay()
{
new string;
new account,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo > 0)
    {
    if(MoneyMessage==1)
{
    SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
    GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
    SetPlayerInterior(i, 6);
    PlayerInfo = 6;
  JBC_SetPlayerPos(i, 264.6288,77.5742,1001.0391);
            PlayerInfo = 1;
            SafeJBC_ResetPlayerWeapons(i);
            SafeJBC_ResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
new key = PlayerInfo;
if(key != 9999)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 9999;
SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
/*new tmpintrate;
if (key != 9999 && strcmp(playername2, HouseInfo, true) == 0)
{
    if(PlayerInfo > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo
}
else
{
    if(PlayerInfo > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}*/
if(PlayerInfo >= 5)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo -= TaxValue;
new checks = PlayerInfo + 100;
if(PlayerInfo > 0)
{
    new bonus = PlayerInfo;
    checks += bonus;
}
    //new ebill = (PlayerInfo/10000)*(PlayerInfo); // maknuto zbog smanjivanja dobijanja para u biz
    //ConsumingMoney = 1;
    //SafeJBC_GivePlayerMoney(i, checks);
    //new ebill = random(30-100);
    account += checks;
    new ebill = (random(70-20));
    if(PlayerInfo > 0)
    {
    PlayerInfo -= ebill;
    SBizzInfo += ebill;
}
else
{
    ebill = 0;
}
//interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = account+interest;
SendClientMessage(i, COLOR_GREEN, "|___ IZJAVA BANKE ___|");
format(string, sizeof(string), "  Plata: $%d  Takse: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_WHITE, string);
if(PlayerInfo != 9999 || PlayerInfo != 9999)
{
    format(string, sizeof(string), "  Racun za struju: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), "  Staro stanje: $%d", account - checks);
SendClientMessage(i, COLOR_WHITE, string);
/*format(string, sizeof(string), "  Kamata: 0.%d posto",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), "  Kamatni interes $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);*/
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Renta: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Ukupan Kredit: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
if(PlayerInfo != 0)
{
SendClientMessage(i, COLOR_GRAD5,"  Rata: $100");
PlayerInfo -= 100;
PlayerInfo -= 100;
}
format(string, sizeof(string), "~y~Plata~n~~w~Plata je stigla na vas racun");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo += 1;
if(FarmerVar == 0)
{
FarmerPickup = 0;
}
if(DrugFarmerVar == 0)
{
DrugFarmerPickup = 0;
}
if(SmugglerWork == 0)
{
PayDaySecure = 0;
}
if(PlayerInfo > 0)
{
    PlayerInfo += 1;
    if(PlayerInfo >= 5)
    {
        PlayerInfo++;
        PlayerInfo = 0;
    }
}
}
else
{
    SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili platu.");
}
}
}
}
SaveAccounts();
Checkprop();
new rand = random(150); rand += 1245;
  Jackpot += rand;
    SaveStuff();
    format(string, sizeof(string), "{00FFEE}LOTTO: Jackpot je povecan na $%d.", Jackpot);
OOCOff(COLOR_WHITE, string);
return 1;
}


Slika video://
Johnâ„¢
5
Godfather
2. Feb. 2013.
Evo:

public PayDay()
{
new string;
new account,interest;
new rent = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo > 0)
    {
    if(MoneyMessage==1)
{
    SendClientMessage(i, COLOR_LIGHTRED, "Niste uspjeli da vratite dug, idete u zatvor.");
    GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
    SetPlayerInterior(i, 6);
    PlayerInfo = 6;
  JBC_SetPlayerPos(i, 264.6288,77.5742,1001.0391);
            PlayerInfo = 1;
            SafeJBC_ResetPlayerWeapons(i);
            SafeJBC_ResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi.  Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
new key = PlayerInfo;
if(key != 9999)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 9999;
SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
/*new tmpintrate;
if (key != 9999 && strcmp(playername2, HouseInfo, true) == 0)
{
    if(PlayerInfo > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo
}
else
{
    if(PlayerInfo > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}*/
if(PlayerInfo >= 5)
{
    Tax += TaxValue;//Should work for every player online
    PlayerInfo -= TaxValue;
new checks = PlayerInfo + 100;
if(PlayerInfo > 0)
{
    new bonus = PlayerInfo;
    checks += bonus;
}
    //new ebill = (PlayerInfo/10000)*(PlayerInfo); // maknuto zbog smanjivanja dobijanja para u biz
    //ConsumingMoney = 1;
    //SafeJBC_GivePlayerMoney(i, checks);
    //new ebill = random(30-100);
    account += checks;
    new ebill = (random(70-20));
    if(PlayerInfo > 0)
    {
    PlayerInfo -= ebill;
    SBizzInfo += ebill;
}
else
{
    ebill = 0;
}

if (PlayerInfo == 25) checks += 1000;

//interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = account+interest;
SendClientMessage(i, COLOR_GREEN, "|___ IZJAVA BANKE ___|");
format(string, sizeof(string), "  Plata: $%d  Takse: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_WHITE, string);
if(PlayerInfo != 9999 || PlayerInfo != 9999)
{
    format(string, sizeof(string), "  Racun za struju: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), "  Staro stanje: $%d", account - checks);
SendClientMessage(i, COLOR_WHITE, string);
/*format(string, sizeof(string), "  Kamata: 0.%d posto",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), "  Kamatni interes $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);*/
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), "  Novo stanje: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Renta: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "  Ukupan Kredit: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
if(PlayerInfo != 0)
{
SendClientMessage(i, COLOR_GRAD5,"  Rata: $100");
PlayerInfo -= 100;
PlayerInfo -= 100;
}
format(string, sizeof(string), "~y~Plata~n~~w~Plata je stigla na vas racun");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo += 1;
if(FarmerVar == 0)
{
FarmerPickup = 0;
}
if(DrugFarmerVar == 0)
{
DrugFarmerPickup = 0;
}
if(SmugglerWork == 0)
{
PayDaySecure = 0;
}
if(PlayerInfo > 0)
{
    PlayerInfo += 1;
    if(PlayerInfo >= 5)
    {
        PlayerInfo++;
        PlayerInfo = 0;
    }
}
}
else
{
    SendClientMessage(i, COLOR_WHITE, "* Niste igrali dovoljno dugo da biste dobili platu.");
}
}
}
}
SaveAccounts();
Checkprop();
new rand = random(150); rand += 1245;
  Jackpot += rand;
    SaveStuff();
    format(string, sizeof(string), "{00FFEE}LOTTO: Jackpot je povecan na $%d.", Jackpot);
OOCOff(COLOR_WHITE, string);
return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha