Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DIALOG_GAME_MODES 978
- #define DIALOG_GAMES 979
- CMD:games(playerid, params[])
- {
- new string[512];
- format(string, 512,"Death match\nRace\nTeam Death match\nBreaking\nBombing\nStealing\nDeath Run\nLast Man Standing\nLast Team Standing\nTDM - Levels\nDM - Levels\nDerby\nZombie\nDelivering\nCapture The Flag\nMulti Race\nHeist\nParkour");
- ShowPlayerDialog(playerid, DIALOG_GAME_MODES, DIALOG_STYLE_LIST, "Choose the game mode type", string, "select", "close");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_GAME_MODES)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of death match games", "", "back", "close");
- case 1: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of race games", "", "back", "close");
- case 2: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of TDM games", "", "back", "close");
- case 3: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of breaking games", "", "back", "close");
- case 4: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of bombing games", "", "back", "close");
- case 5: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of stealing games", "", "back", "close");
- case 6: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of death run games", "", "back", "close");
- case 7: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of LMS games", "", "back", "close");
- case 8: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of LTS games", "", "back", "close");
- case 9: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of TDM - Levels games", "", "back", "close");
- case 10: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of DM - Levels games", "", "back", "close");
- case 11: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of derby games", "", "back", "close");
- case 12: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of zombie games", "", "back", "close");
- case 13: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of delivering games", "", "back", "close");
- case 14: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of CTF games", "", "back", "close");
- case 15: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of multi race games", "", "back", "close");
- case 16: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of heist games", "", "back", "close");
- case 17: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of parkour games", "", "back", "close");
- //
- //
- //
- //
- // This part must be modified ( replaced with single ShowPlayerDialog ) its just a reference layout xd
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_GAMES)
- {
- if(response) return cmd_games(playerid,"");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment