Skripta koju koristim: CLRP
Detaljan opis problema: Kako da snizim PayDay da bude ovako:
LvL 1-3: PayDay $70-$100
LvL 4-10: PayDay $100-$220
LvL 10-...: PayDay $220-.....
Dio skripte: public PayDay()
{
new string;
new coordstring;
new coordstring1;
new coordstring2;
new coordstring3;
new coordstring4;
new coordstring5;
new coordstring6;
new coordstring7;
new coordstring8;
new payday;
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);
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(i, gRandomJailSpawns, gRandomJailSpawns, gRandomJailSpawns);
PlayerInfo = 1;
SafeResetPlayerWeapons(i);
SafeResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Uhapseni ste na %d sekundi. Jamcevina: 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;
format(coordstring, sizeof(coordstring), " {00C0FF}Placa: {FFFFFF}$%d\n {00C0FF}Porez: {FFFFFF}-$%d\n", checks, TaxValue);
if(PlayerInfo != 255 || PlayerInfo != 255)
{
format(coordstring1, sizeof(coordstring1), " {00C0FF}Racun za struju: {FFFFFF}-$%d\n", ebill);
}
format(coordstring2, sizeof(coordstring2), " {00C0FF}Staro Stanje: {FFFFFF}$%d\n", account - checks);
format(coordstring3, sizeof(coordstring3), " {00C0FF}Kamata: {FFFFFF}0.%d posto\n",tmpintrate);
format(coordstring4, sizeof(coordstring4), " {00C0FF}Kamatni interes: {FFFFFF}$%d\n", interest);
format(coordstring5, sizeof(coordstring5), " {00C0FF}Novo stanje: {FFFFFF}$%d\n", PlayerInfo);
format(coordstring6, sizeof(coordstring6), " {00C0FF}Cijena Renta: {FFFFFF}-$%d\n", rent);
format(coordstring7, sizeof(coordstring7), " {00C0FF}Ukupan kredit: {FFFFFF}$%d\n", PlayerInfo);
if(PlayerInfo != 0)
{
format(coordstring8, sizeof(coordstring😎, " {00C0FF}Rata: {FFFFFF}%d\n", PlayerInfo);
PlayerInfo -= 500;
PlayerInfo -= 500;
}
format(payday, 512,"%s%s%s%s%s%s%s%s%s",coordstring,coordstring1,coordstring2,coordstring3,coordstring4,coordstring5,coordstring6,coordstring7,coordstring😎;
ShowPlayerDialog(i, 667, DIALOG_STYLE_MSGBOX, "{00C0FF}Payday | Placa", payday , "Uredu", "Uredu");
format(string, sizeof(string), "~y~Placa");
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 placu.");
}
}
}
SaveAccounts();
Checkprop();
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
public split(const strsrc[], strdest[][], delimiter)
{
new i, li;
new aNum;
new len;
while(i <= strlen(strsrc)){
if(strsrc==delimiter || i==strlen(strsrc)){
len = strmid(strdest, strsrc, li, i, 12😎;
strdest = 0;
li = i+1;
aNum++;
}
i++;
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): ///
[Pomoc]Placa
403
pregleda
1
postova
Underboss
Novi Član
240 / 250 XP
🌱Početnik(0)
649
Postovi:
145
Teme:
Pridružio se:Nov. 2011
21. Jan. 2012.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava