daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. YCMD:admini(playerid, params[], help)
  2. {
  3.     #pragma unused params
  4.     #pragma unused help
  5.     if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UB:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
  6.     new string[1024];
  7.     format(string, sizeof(string), "");
  8.     foreach(Player, i)
  9.     {
  10.         if(PlayerInfo[i][pAdmin] >= 1)
  11.         {
  12.             new atext[20];
  13.             format(atext, sizeof(atext), "{FFFFFF}[ID %d] ", i);
  14.             strcat(string, atext);
  15.             strcat(string, " {F3FF02}");
  16.             strcat(string, GetName(i));
  17.             strcat(string, "{FFFFFF} | ");
  18.             strcat(string, "{F3FF02}Admin Level: {FFFFFF}");
  19.             format(atext, sizeof(atext), "%d", PlayerInfo[i][pAdmin]);
  20.             strcat(string, atext);
  21.             if(AdminDuty[i] == 0)
  22.             {
  23.                 strcat(string, "{FFFFFF} | {F3FF02}Duznost: {F81414}Nije na duznosti!");
  24.             }
  25.             if(AdminDuty[i] == 1)
  26.             {
  27.                 strcat(string, "{FFFFFF} | {F3FF02}Duznost: {6EF83C}Na duznosti!");
  28.             }
  29.             strcat(string, "\n");
  30.         }
  31.     }
  32.     if(strlen(string) == 0) return SendClientMessage(playerid, -1, "[UB:RP] "CRVENA"Nijedan admin nije trenutno online!");
  33.     ShowPlayerDialog(playerid, ONLINE_ADMINI, DIALOG_STYLE_MSGBOX, "Admini Online", string, "Uredu", "");
  34.     return 1;
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top