Detaljan opis problema: Kako da napravim da u pay day broji respekte umjesto komande da se sami broje i da se sami lvli prebacuju
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. Kaucija: Nedostupna", PlayerInfo);
SendClientMessage(i, COLOR_WHITE, string);
}
new playername2;
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo;
new tmpintrate;
if (PlayerInfo != 255 && strcmp(playername2, Houses[PlayerInfo], true) == 0)
{
if(GetPVarInt(i, "DonatorRank") > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//Houses
}
else
{
if(GetPVarInt(i, "DonatorRank") > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo >= 5)
{
Tax += TaxValue;//Should work for every player online
PlayerInfo -= TaxValue;
new checks = PlayerInfo / 50;
if(PlayerInfo > 0)
{
new bonus = PlayerInfo / 100;
checks += bonus;
}
new ebill = (PlayerInfo/10000)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
if(respekti == 0) // Ako su iskljuceni
{
PlayerInfo ++; //++ Znaci da dodaje igracima 1
}
else // U suprotnom
{
PlayerInfo += 2; //+= 2 Znaci dodaje igracima 2
}
PlayerInfo = account+interest;
format(coordstring, sizeof(coordstring), " {157DEC}Plata: {FFFFFF}$%d\n {157DEC}Takse: {FFFFFF}-$%d\n", checks, TaxValue);
if(PlayerInfo != 255 || PlayerInfo != 255)
{
format(coordstring1, sizeof(coordstring1), " {157DEC}Racun za struju: {FFFFFF}-$%d\n", ebill);
}
format(coordstring2, sizeof(coordstring2), " {157DEC}Staro Stanje: {FFFFFF}$%d\n", account - checks);
format(coordstring3, sizeof(coordstring3), " {157DEC}Kamata: {FFFFFF}0.%d posto\n",tmpintrate);
format(coordstring4, sizeof(coordstring4), " {157DEC}Kamatni Interes: {FFFFFF}$%d\n", interest);
format(coordstring5, sizeof(coordstring5), " {157DEC}Novo stanje: {FFFFFF}$%d\n", PlayerInfo);
format(coordstring6, sizeof(coordstring6), " {157DEC}Renta: {FFFFFF}-$%d\n", rent);
format(coordstring7, sizeof(coordstring7), " {157DEC}Ukupan Kredit: {FFFFFF}$%d\n", PlayerInfo);
if(PlayerInfo != 0)
{
format(coordstring8, sizeof(coordstring8), " {157DEC}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,coordstring8);
ShowPlayerDialog(i, 667, DIALOG_STYLE_MSGBOX, "{157DEC}Payday | Placa", payday , "Uredu", "Uredu");
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();
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno): //