Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new strana2[1000] = "ID (Level Cena)\tVlasnik\n";
- #define NEKI_DIALOG 999
- new nextPageLocation[MAX_PLAYERS];
- Dialog:adminpanel(playerid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][pKurcinela] < 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[playerid][pAdmin] < 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[playerid][pAdmin] < 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[playerid][pApermsrv] < 1) return SCM(playerid,NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande");
- spodesavanja(playerid);
- }
- case 4:
- {
- new str[512];
- 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 str[1000] = "ID (Level Cena)\tVlasnik\n";
- new subStr[100];
- nextPageLocation[playerid] = 1;
- foreach(new i : Houses)
- {
- format(subString, sizeof(subString), "%d (%d $%d)\t%s\n",i, KucaInfo[i][kLevel], KucaInfo[i][kCena], KucaInfo[i][kVlasnik]);
- if (strlen(str) > 950) {
- format(string2, sizeof(string2), "%s%s", string2, subStr);
- nextPageLocation[playerid] ++;
- }
- else {
- format(str, sizeof(str), "%s%s", str, subStr);
- }
- }
- format(str, sizeof(str), "%sSledeca Strana", str);
- Dialog_Show(playerid, NEKI_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Spisak svih kuca", str, "Izlaz", "");
- }
- }
- }
- }
- Dialog:NEKI_DIALOG(playerid, response, listitem, inputtext[])
- {
- if (response && listitem == nextPageLocation[playerid]){
- Dialog_Show(playerid, NEKI_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Spisak svih kuca", string2, "Izlaz", "");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment