Deo skripte:
Dialog:adminpanel(playerid, response, listitem, inputtext[])
{
if(response)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo < 1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za dalju upotrebu ovog dialoga.");
Dialog_Show(playerid, adminpanelstauts, DIALOG_STYLE_INPUT,"Administrator Panel", ""BELA"Unesite ID/Ime_Prezime igraca\n* Ova komanda radi iako je igrac offline!", "Dalje", "Izlaz");
}
case 1:
{
if(PlayerInfo < 5) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za dalju upotrebu ovog dialoga.");
Dialog_Show(playerid, astaffstats, DIALOG_STYLE_INPUT,"Administrator Panel", ""BELA"Unesite ID/Ime_Prezime igraca kome zelite da pregledate staff stats:", "Dalje", "Izlaz");
}
case 2:
{
if(PlayerInfo < 5) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za dalju upotrebu ovog dialoga.");
Dialog_Show(playerid, predjlogiadmini, DIALOG_STYLE_INPUT,"Administrator Panel", ""BELA"Unesite text koji zelite da posaljete vlasniku:", "Dalje", "Izlaz");
}
case 3:
{
if(PlayerInfo < 1) return SCM(playerid,NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande");
spodesavanja(playerid);
}
case 4:
{
new str;
format( str, sizeof( str ), ""BELA"Kuce ("SIVA"%d"BELA")\n"BELA"Firme ("SIVA"%d"BELA")\n"BELA"Stanovi ("SIVA"%d"BELA")\n"BELA"Vikendice ("SIVA"%d"BELA")\n"BELA"Saloni ("SIVA"%d"BELA")\n"BELA"Ulice ("SIVA"%d"BELA")\n"BELA"Rent ("SIVA"%d"BELA")\n"BELA"Poslovna Vozila ("SIVA"%d"BELA")", Iter_Count(Houses), Iter_Count(Firme), Iter_Count(Stan), Iter_Count(Vikendica), Iter_Count(Saloni), Iter_Count(Street), Iter_Count(Rent), Iter_Count(vposlovno));
Dialog_Show(playerid, statsimovina, DIALOG_STYLE_LIST, "Spisak imovine", str, "Izaberi", "Izlaz");
}
}
}
return 1;
}
Dialog:statsimovina(playerid, response, listitem, inputtext[])
{
if(response)
{
switch(listitem)
{
case 0:
{
new subString, string, string2;
foreach(new i : Houses)
{
format(subString, sizeof(subString), "%d (%d $%d)\t%s\n",i, KucaInfo, KucaInfo, KucaInfo);
strcat(string, subString);
}
format(string2, sizeof(string2), "ID (Level Cena)\tVlasnik\n%s", string);
Dialog_Show(playerid, null, DIALOG_STYLE_TABLIST_HEADERS, "Spisak svih kuca", string2, "Izlaz", "");
}