Hellrocker

Untitled

Mar 22nd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. cmd(acmds)
  2. {
  3. new cmdlists[5][256];
  4. strcat(cmdlists[0], "\r\nLevel 1: \r\n");
  5. strcat(cmdlists[1], "\r\nLevel 2: \r\n");
  6. strcat(cmdlists[2], "\r\nLevel 3: \r\n");
  7. strcat(cmdlists[3], "\r\nLevel 4: \r\n");
  8. strcat(cmdlists[4], "\r\nLevel 5: \r\n");
  9.  
  10. new perLine = 0;
  11.  
  12. loop(cmdi = 0, commandsLoaded)
  13. {
  14.  
  15. perLine++;
  16. switch(commandList[cmdi][commandClass]) {
  17. case 0: {
  18. strcat(cmdlists[commandList[cmdi][commandLevel] - 1], "/");
  19. strcat(cmdlists[commandList[cmdi][commandLevel] - 1], commandList[cmdi][commandName]);
  20. strcat(cmdlists[commandList[cmdi][commandLevel] - 1], " ");
  21.  
  22. if(perLine > 6)
  23. {
  24. strcat(cmdlists[commandList[cmdi][commandLevel] - 1], "\r\n");
  25. perLine = 0;
  26. }
  27. }
  28. default:continue;
  29. }
  30. }
  31. new dString[1024];
  32. strcat(dString, cmdlists[0]);
  33. strcat(dString, cmdlists[1]);
  34. strcat(dString, cmdlists[2]);
  35. strcat(dString, cmdlists[3]);
  36. strcat(dString, cmdlists[4]);
  37. showDialog(playerid, 8322, DIALOG_STYLE_MSGBOX, "Admin Commands", dString, "close");
  38. }
  39.  
  40. cmd(cmds)
  41. {
  42. new cmdlists[6][256];
  43. strcat(cmdlists[0], "\r\nGroup 1: \r\n");
  44. strcat(cmdlists[1], "\r\nGroup 2: \r\n");
  45. strcat(cmdlists[2], "\r\nGroup 3: \r\n");
  46. strcat(cmdlists[3], "\r\nGroup 4: \r\n");
  47. strcat(cmdlists[4], "\r\nGroup 5: \r\n");
  48. strcat(cmdlists[5], "\r\nGroup 6: \r\n");
  49. loop(cmdi = 0, commandsLoaded)
  50. {
  51. switch(commandList[cmdi][commandClass]) {
  52. case 1: strcat(cmdlists[0], " /"), strcat(cmdlists[0], commandList[cmdi][commandName]);
  53. case 2: strcat(cmdlists[1], " /"), strcat(cmdlists[1], commandList[cmdi][commandName]);
  54. case 3: strcat(cmdlists[2], " /"), strcat(cmdlists[2], commandList[cmdi][commandName]);
  55. case 4: strcat(cmdlists[3], " /"), strcat(cmdlists[3], commandList[cmdi][commandName]);
  56. case 5: strcat(cmdlists[4], " /"), strcat(cmdlists[4], commandList[cmdi][commandName]);
  57. case 6: strcat(cmdlists[5], " /"), strcat(cmdlists[5], commandList[cmdi][commandName]);
  58. default: continue;
  59. }
  60. }
  61. new dString[1024];
  62. strcat(dString, cmdlists[0]);
  63. strcat(dString, cmdlists[1]);
  64. strcat(dString, cmdlists[2]);
  65. strcat(dString, cmdlists[3]);
  66. strcat(dString, cmdlists[4]);
  67. strcat(dString, cmdlists[5]);
  68. showDialog(playerid, 8322, DIALOG_STYLE_MSGBOX, "Player Commands", dString, "close");
  69.  
  70. //format(dString, 1024, "%s used /cmds.", playerNick[playerid]);
  71. notifyAdminEvent("%s used /cmds.", playerNick[playerid]);
  72. }
Add Comment
Please, Sign In to add comment