Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd(acmds)
- {
- new cmdlists[5][256];
- strcat(cmdlists[0], "\r\nLevel 1: \r\n");
- strcat(cmdlists[1], "\r\nLevel 2: \r\n");
- strcat(cmdlists[2], "\r\nLevel 3: \r\n");
- strcat(cmdlists[3], "\r\nLevel 4: \r\n");
- strcat(cmdlists[4], "\r\nLevel 5: \r\n");
- new perLine = 0;
- loop(cmdi = 0, commandsLoaded)
- {
- perLine++;
- switch(commandList[cmdi][commandClass]) {
- case 0: {
- strcat(cmdlists[commandList[cmdi][commandLevel] - 1], "/");
- strcat(cmdlists[commandList[cmdi][commandLevel] - 1], commandList[cmdi][commandName]);
- strcat(cmdlists[commandList[cmdi][commandLevel] - 1], " ");
- if(perLine > 6)
- {
- strcat(cmdlists[commandList[cmdi][commandLevel] - 1], "\r\n");
- perLine = 0;
- }
- }
- default:continue;
- }
- }
- new dString[1024];
- strcat(dString, cmdlists[0]);
- strcat(dString, cmdlists[1]);
- strcat(dString, cmdlists[2]);
- strcat(dString, cmdlists[3]);
- strcat(dString, cmdlists[4]);
- showDialog(playerid, 8322, DIALOG_STYLE_MSGBOX, "Admin Commands", dString, "close");
- }
- cmd(cmds)
- {
- new cmdlists[6][256];
- strcat(cmdlists[0], "\r\nGroup 1: \r\n");
- strcat(cmdlists[1], "\r\nGroup 2: \r\n");
- strcat(cmdlists[2], "\r\nGroup 3: \r\n");
- strcat(cmdlists[3], "\r\nGroup 4: \r\n");
- strcat(cmdlists[4], "\r\nGroup 5: \r\n");
- strcat(cmdlists[5], "\r\nGroup 6: \r\n");
- loop(cmdi = 0, commandsLoaded)
- {
- switch(commandList[cmdi][commandClass]) {
- case 1: strcat(cmdlists[0], " /"), strcat(cmdlists[0], commandList[cmdi][commandName]);
- case 2: strcat(cmdlists[1], " /"), strcat(cmdlists[1], commandList[cmdi][commandName]);
- case 3: strcat(cmdlists[2], " /"), strcat(cmdlists[2], commandList[cmdi][commandName]);
- case 4: strcat(cmdlists[3], " /"), strcat(cmdlists[3], commandList[cmdi][commandName]);
- case 5: strcat(cmdlists[4], " /"), strcat(cmdlists[4], commandList[cmdi][commandName]);
- case 6: strcat(cmdlists[5], " /"), strcat(cmdlists[5], commandList[cmdi][commandName]);
- default: continue;
- }
- }
- new dString[1024];
- strcat(dString, cmdlists[0]);
- strcat(dString, cmdlists[1]);
- strcat(dString, cmdlists[2]);
- strcat(dString, cmdlists[3]);
- strcat(dString, cmdlists[4]);
- strcat(dString, cmdlists[5]);
- showDialog(playerid, 8322, DIALOG_STYLE_MSGBOX, "Player Commands", dString, "close");
- //format(dString, 1024, "%s used /cmds.", playerNick[playerid]);
- notifyAdminEvent("%s used /cmds.", playerNick[playerid]);
- }
Add Comment
Please, Sign In to add comment