Započeo Novica
•13. Mar. 2012.• Zaključano[Pomoc] Dijalog pls
615
pregleda
6
postova
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
497
Postovi:
101
Teme:
Pridružio se:Dec. 2011
13. Mar. 2012.
Skripta koju koristim: BPE
Opis problema: Ajde pls ako moze neko ovo u dijalog da stavi pls pls
Deo skripte:
Slike/Video:///
EDIT: Evo ceo deo je ubacen 🙂
Opis problema: Ajde pls ako moze neko ovo u dijalog da stavi pls pls
Deo skripte:
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, "Nisi uspeo platiti dugove, pritvoreno vreme.");
GameTextForPlayer(i, "~r~Uhapsen!", 2000, 1);
SetPlayerInterior(i, 6);
PlayerInfo = 6;
SetPlayerPos(i, 2518.356,-1541.119,27.5666);
PlayerInfo = 1;
SafeResetPlayerWeapons(i);
SafeResetPlayerMoney(i);
WantedPoints = 0;
PlayerInfo = 240;
format(string, sizeof(string), "Zatvoren si %d sekundi. Kaucija: zabranjena", 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, "You have been evicted.");
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; }
}
else
{
if(PlayerInfo > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo >= 5)
{
Tax += TaxValue;
PlayerInfo -= TaxValue;
new checks = PlayerInfo / 5;
if(PlayerInfo > 0)
{
new bonus = PlayerInfo / 10;
checks += bonus;
}
new vbill = (PlayerInfo/10000)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= vbill;
SBizzInfo += vbill;
}
else
{
vbill = 0;
}
new ebill = (PlayerInfo/10000)*(PlayerInfo);
account += checks;
if(PlayerInfo > 0)
{
PlayerInfo -= ebill;
SBizzInfo += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo/1000)*(tmpintrate);
PlayerInfo++;
PlayerPlayMusic(i);
PlayerInfo = account+interest;
SendClientMessage(i, COLOR_RED, "|___ BANKOVNI STATUS ___|");
format(string, sizeof(string), " Plata: $%d Tax Novac: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_WHITE, string);
if(PlayerInfo != 255 || PlayerInfo != 255)
{
format(string, sizeof(string), " Voda: -$%d", vbill);
SendClientMessage(i, COLOR_GRAD1, string);
}
{
format(string, sizeof(string), " Struja: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), " Balance: $%d", account - checks);
SendClientMessage(i, COLOR_WHITE, string);
format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Interest Gained $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|");
format(string, sizeof(string), " Novi iznos: $%d", PlayerInfo);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), " Najam: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "~y~Plata~n~~w~Vasa plata je legla u Banku");
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_LIGHTRED, "* Nisi igrao dovoljno dugo da bi dobio platu.");
}
}
}
}
SaveAccounts();
Checkprop();
new rand = random(2500); rand += 1245;
Jackpot += rand;
SaveStuff();
format(string, sizeof(string), "Lotarija Novosti: Nas novi Jackpot je povecan ja $%d.", Jackpot);
OOCOff(COLOR_WHITE, string);
return 1;
}Slike/Video:///
EDIT: Evo ceo deo je ubacen 🙂
13. Mar. 2012.
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;
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 != 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}Plata: {FFFFFF}$%d\n {00C0FF}Takse: {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}Renta: {FFFFFF}-$%d\n", rent);
format(coordstring7, sizeof(coordstring7), " {00C0FF}Ukupan Kredit: {FFFFFF}$%d\n", PlayerInfo);
if(PlayerInfo != 0)
{
format(coordstring8, sizeof(coordstring8), " {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,coordstring8);
ShowPlayerDialog(i, 667, DIALOG_STYLE_MSGBOX, "{00C0FF}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();
Checkprop();
return 1;
}Evo ti iz mog GM-a 😉 nadam, da ce radit 😄
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava