Vedrann

Untitled

May 8th, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.23 KB | None | 0 0
  1. new strana2[1000] = "ID (Level Cena)\tVlasnik\n";
  2.  
  3. #define NEKI_DIALOG 999
  4. new nextPageLocation[MAX_PLAYERS];
  5.  
  6. Dialog:adminpanel(playerid, response, listitem, inputtext[])
  7. {
  8.     if(response)
  9.     {
  10.         switch(listitem)
  11.         {
  12.             case 0:
  13.             {
  14.                 if(PlayerInfo[playerid][pKurcinela] < 1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za dalju upotrebu ovog dialoga.");
  15.                 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");
  16.             }
  17.             case 1:
  18.             {
  19.                 if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za dalju upotrebu ovog dialoga.");
  20.                 Dialog_Show(playerid, astaffstats, DIALOG_STYLE_INPUT,"Administrator Panel", ""BELA"Unesite ID/Ime_Prezime igraca kome zelite da pregledate staff stats:", "Dalje", "Izlaz");
  21.             }
  22.             case 2:
  23.             {
  24.                 if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za dalju upotrebu ovog dialoga.");
  25.                 Dialog_Show(playerid, predjlogiadmini, DIALOG_STYLE_INPUT,"Administrator Panel", ""BELA"Unesite text koji zelite da posaljete vlasniku:", "Dalje", "Izlaz");
  26.             }
  27.             case 3:
  28.             {
  29.                 if(PlayerInfo[playerid][pApermsrv] < 1) return SCM(playerid,NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande");
  30.                 spodesavanja(playerid);
  31.             }
  32.             case 4:
  33.             {
  34.                 new str[512];
  35.                 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));
  36.                 Dialog_Show(playerid, statsimovina, DIALOG_STYLE_LIST, "Spisak imovine", str, "Izaberi", "Izlaz");
  37.             }
  38.         }
  39.     }
  40.     return 1;
  41. }
  42. Dialog:statsimovina(playerid, response, listitem, inputtext[])
  43. {
  44.     if(response)
  45.     {
  46.         switch(listitem)
  47.         {
  48.             case 0:
  49.             {
  50.                 new str[1000] = "ID (Level Cena)\tVlasnik\n";
  51.                 new subStr[100];
  52.  
  53.                 nextPageLocation[playerid] = 1;
  54.  
  55.                 foreach(new i : Houses)
  56.                 {
  57.                     format(subString, sizeof(subString), "%d (%d $%d)\t%s\n",i, KucaInfo[i][kLevel], KucaInfo[i][kCena],  KucaInfo[i][kVlasnik]);
  58.                     if (strlen(str) > 950) {
  59.                         format(string2, sizeof(string2), "%s%s", string2, subStr);
  60.                         nextPageLocation[playerid] ++;
  61.                     }
  62.                     else {
  63.                         format(str, sizeof(str), "%s%s", str, subStr);
  64.                     }
  65.                 }
  66.                
  67.                 format(str, sizeof(str), "%sSledeca Strana", str);
  68.  
  69.                 Dialog_Show(playerid, NEKI_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Spisak svih kuca", str, "Izlaz", "");
  70.             }
  71.         }
  72.     }
  73. }
  74. Dialog:NEKI_DIALOG(playerid, response, listitem, inputtext[])
  75. {
  76.     if (response && listitem == nextPageLocation[playerid]){
  77.         Dialog_Show(playerid, NEKI_DIALOG, DIALOG_STYLE_TABLIST_HEADERS, "Spisak svih kuca", string2, "Izlaz", "");
  78.     }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment