Skripta koju koristim:cyber
Detaljan opis problema:znaci napravio sam payday poene i sve e sada msm da nisam stavio u public payday da mi gleda da ako nemam dovoljno payday poena da mi ne da placu a da ako imam da mi da placu.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[Pomoc] dobijem placu a pise da nisam dovoljno dugo igrao
395
pregleda
9
postova
Crime Lord
Novi Član
240 / 250 XP
🌱Početnik(0)
836
Postovi:
296
Teme:
Pridružio se:Maj 2010
8. Jun 2012.
Crime Lord
Novi Član
240 / 250 XP
🌱Početnik(0)
836
Postovi:
296
Teme:
Pridružio se:Maj 2010
9. Jun 2012.
evo
public PayDay()
{
new string;
//new payday;
new cash;
new account,interest;
new rent = 0;
foreach (Player, 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;
PlayerInfo = 1;
ResetPlayerWeapons(i);
ResetPlayerWeapons(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 != 255)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 255;
SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 255 && 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 / 5;
if(PlayerInfo > 0)
{
new bonus = PlayerInfo / 10;
checks += bonus;
}
new ebill = (PlayerInfo/10000)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerInfo = account+interest;
new coordsstring;
format(coordsstring, sizeof(coordsstring), "\nBanka San Fiero\n\nPostovani,ovo je bankovno izvijesce za proteklo razdoblje.\n\nPrihodi\n-Stari iznos racuna: $%d\n-Iznos uplate place na vas racun: $%d, Dodatci: $0\n\nRashodi\n-Struja: | Voda: 0$ | Smece: 0$ | Plin: 0$ \n-Najamnina: Kuca: -$%d\n-Porez na luksuz: 0\n\n\n___________________________________\nNovo stanje na vasem racunu iznosi: %d", account,cash,rent,PlayerInfo+cash );
ShowPlayerDialog(i, 999, DIALOG_STYLE_MSGBOX, "{33BBFF}SF BANKA | Izlistanje racuna", coordsstring, "U redu", "Odustani");
rent = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo ++;
if(PlayerInfo > 0)
{
PlayerInfo += 1;
if(PlayerInfo >= 5)
{
PlayerInfo++;
PlayerInfo = 0;
}
}
}
else
{
SendClientMessage(i, COLOR_LIGHTRED, "*G-Unit: Niste igrali dovoljno dugo da biste dobili placu.");
}
}
}
SaveAccounts();
Checkprop();
return 1;
}9. Jun 2012.
Probaj ovako:
public PayDay()
{
new string;
//new payday;
new cash;
new account,interest;
new rent = 0;
foreach (Player, 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;
PlayerInfo = 1;
ResetPlayerWeapons(i);
ResetPlayerWeapons(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 != 255)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 255;
SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 255 && 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 >= 60)
{
Tax += TaxValue;//Should work for every player online
PlayerInfo -= TaxValue;
new checks = PlayerInfo / 5;
if(PlayerInfo > 0)
{
new bonus = PlayerInfo / 10;
checks += bonus;
}
new ebill = (PlayerInfo/10000)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo = account+interest;
new coordsstring;
format(coordsstring, sizeof(coordsstring), "\nBanka San Fiero\n\nPostovani,ovo je bankovno izvijesce za proteklo razdoblje.\n\nPrihodi\n-Stari iznos racuna: $%d\n-Iznos uplate place na vas racun: $%d, Dodatci: $0\n\nRashodi\n-Struja: | Voda: 0$ | Smece: 0$ | Plin: 0$ \n-Najamnina: Kuca: -$%d\n-Porez na luksuz: 0\n\n\n___________________________________\nNovo stanje na vasem racunu iznosi: %d", account,cash,rent,PlayerInfo+cash );
ShowPlayerDialog(i, 999, DIALOG_STYLE_MSGBOX, "{33BBFF}SF BANKA | Izlistanje racuna", coordsstring, "U redu", "Odustani");
rent = 0;
if(PlayerInfo > 0)
}
else
{
SendClientMessage(i, COLOR_LIGHTRED, "*G-Unit: Niste igrali dovoljno dugo da biste dobili placu.");
}
}
}
SaveAccounts();
Checkprop();
return 1;
}Crime Lord
Novi Član
240 / 250 XP
🌱Početnik(0)
836
Postovi:
296
Teme:
Pridružio se:Maj 2010
9. Jun 2012.
public PayDay()
{
new string;
//new payday;
new cash;
new account,interest;
new rent = 0;
foreach (Player, 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;
PlayerInfo = 1;
ResetPlayerWeapons(i);
ResetPlayerWeapons(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 != 255)
{
rent = HouseInfo;
if(strcmp(playername2, HouseInfo, true) == 0)
{
rent = 0;
}
else if(rent > GetPlayerMoney(i))
{
PlayerInfo = 255;
SendClientMessage(i, COLOR_WHITE, "Iseljeni ste.");
rent = 0;
}
HouseInfo = HouseInfo+rent;
}
new tmpintrate;
if (key != 255 && 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 >= 60)
{
Tax += TaxValue;//Should work for every player online
PlayerInfo -= TaxValue;
new checks = PlayerInfo / 5;
if(PlayerInfo > 0)
{
new bonus = PlayerInfo / 10;
checks += bonus;
}
new ebill = (PlayerInfo/10000)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo = account+interest;
new coordsstring;
format(coordsstring, sizeof(coordsstring), "\nBanka San Fiero\n\nPostovani,ovo je bankovno izvijesce za proteklo razdoblje.\n\nPrihodi\n-Stari iznos racuna: $%d\n-Iznos uplate place na vas racun: $%d, Dodatci: $0\n\nRashodi\n-Struja: | Voda: 0$ | Smece: 0$ | Plin: 0$ \n-Najamnina: Kuca: -$%d\n-Porez na luksuz: 0\n\n\n___________________________________\nNovo stanje na vasem racunu iznosi: %d", account,cash,rent,PlayerInfo+cash );
ShowPlayerDialog(i, 999, DIALOG_STYLE_MSGBOX, "{33BBFF}SF BANKA | Izlistanje racuna", coordsstring, "U redu", "Odustani");
rent = 0;
}
else
{
SendClientMessage(i, COLOR_LIGHTRED, "*G-Unit: Niste igrali dovoljno dugo da biste dobili placu.");
}
}
}
SaveAccounts();
Checkprop();
return 1;
}
Sad?
Crime Lord
Novi Član
240 / 250 XP
🌱Početnik(0)
836
Postovi:
296
Teme:
Pridružio se:Maj 2010
Crime Lord
Novi Član
240 / 250 XP
🌱Početnik(0)
836
Postovi:
296
Teme:
Pridružio se:Maj 2010
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava