daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Sep 24th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (strcmp(cmd, "/lideri", true) == 0)
  2. {
  3. new string2[1000];
  4. format(string2, sizeof(string2), "");
  5. foreach(Player, i)
  6. {
  7. if (PlayerInfo[i][pLeader] >= 1)
  8. {
  9. new admtext[256];
  10. new atext[20];
  11. new ime[MAX_PLAYER_NAME];
  12. GetPlayerName(i,ime,sizeof(ime));
  13. if(PlayerInfo[i][pLeader] == 1) { admtext = "[ID:1]  Policija"; }
  14. else if(PlayerInfo[i][pLeader] == 2) { admtext = "[ID:2]  SAJ"; }
  15. else if(PlayerInfo[i][pLeader] == 3) { admtext = "[ID:3]  Vojska(neaktivna)"; }
  16. else if(PlayerInfo[i][pLeader] == 4) { admtext = "[ID:4]  Bolnicari"; }
  17. else if(PlayerInfo[i][pLeader] == 5) { admtext = "[ID:5]  Los Surenos"; }
  18. else if(PlayerInfo[i][pLeader] == 6) { admtext = "[ID:6]  La Familia Sinatra"; }
  19. else if(PlayerInfo[i][pLeader] == 7) { admtext = "[ID:7]  Ministarstvo"; }
  20. else if(PlayerInfo[i][pLeader] == 8) { admtext = "[ID:8]  Hitman"; }
  21. else if(PlayerInfo[i][pLeader] == 9) { admtext = "[ID:9]  Novinari"; }
  22. else if(PlayerInfo[i][pLeader] == 10) { admtext = "[ID:9]  TAXI"; }
  23. else if(PlayerInfo[i][pLeader] == 11) { admtext = "[ID:11] Licenceri(neaktivna)"; }
  24. else if(PlayerInfo[i][pLeader] == 12) { admtext = "[ID:12] Parking Servis"; }
  25. else if(PlayerInfo[i][pLeader] == 13) { admtext = "[ID:13] La Cosa Nostra"; }
  26. else if(PlayerInfo[i][pLeader] == 14) { admtext = "[ID:14] Triada"; }
  27. else if(PlayerInfo[i][pLeader] == 15) { admtext = "[ID:15] Groove Street Families"; }
  28. else if(PlayerInfo[i][pLeader] == 16) { admtext = "[ID:16] Ballas"; }
  29. else if(PlayerInfo[i][pLeader] == 17) { admtext = "[ID:17] Mara Salvatucha 13"; }
  30. else if(PlayerInfo[i][pLeader] == 18) { admtext = "[ID:18] Privatna Organizacija 1"; }
  31. else if(PlayerInfo[i][pLeader] == 19) { admtext = "[ID:19] Privatna Organizacija 2"; }
  32. else if(PlayerInfo[i][pLeader] == 20) { admtext = "[ID:20] Jamaican-British Yardies"; }
  33. else if(PlayerInfo[i][pLeader] == 21) { admtext = "[ID:21] Saobracajna Policija"; }
  34. format(atext, sizeof(atext), "ID:| %d ", i);
  35. strcat(string2, atext);
  36. strcat(string2, "|");
  37. strcat(string2, ime);
  38. strcat(string2, " | ");
  39. format(admtext, sizeof(admtext), " Lider: {ffffff}%s |", admtext);
  40. strcat(string2, admtext);
  41. strcat(string2, "\n");
  42. }
  43. }
  44. if(strlen(string2) == 0) return SCM(playerid, ZUTA, "SERVER: Nijedan lider nije online!");
  45. ShowPlayerDialog(playerid, 13003, DIALOG_STYLE_MSGBOX, "Lideri Online", string2, "Uredu", "");
  46. return 1;
  47. }
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