krishhna

games

Apr 28th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. #define DIALOG_GAME_MODES 978
  2. #define DIALOG_GAMES 979
  3.  
  4. CMD:games(playerid, params[])
  5. {
  6. new string[512];
  7. 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");
  8. ShowPlayerDialog(playerid, DIALOG_GAME_MODES, DIALOG_STYLE_LIST, "Choose the game mode type", string, "select", "close");
  9. return 1;
  10. }
  11.  
  12. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  13. {
  14. if(dialogid == DIALOG_GAME_MODES)
  15. {
  16. if(response)
  17. {
  18. switch(listitem)
  19. {
  20. case 0: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of death match games", "", "back", "close");
  21. case 1: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of race games", "", "back", "close");
  22. case 2: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of TDM games", "", "back", "close");
  23. case 3: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of breaking games", "", "back", "close");
  24. case 4: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of bombing games", "", "back", "close");
  25. case 5: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of stealing games", "", "back", "close");
  26. case 6: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of death run games", "", "back", "close");
  27. case 7: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of LMS games", "", "back", "close");
  28. case 8: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of LTS games", "", "back", "close");
  29. case 9: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of TDM - Levels games", "", "back", "close");
  30. case 10: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of DM - Levels games", "", "back", "close");
  31. case 11: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of derby games", "", "back", "close");
  32. case 12: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of zombie games", "", "back", "close");
  33. case 13: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of delivering games", "", "back", "close");
  34. case 14: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of CTF games", "", "back", "close");
  35. case 15: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of multi race games", "", "back", "close");
  36. case 16: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of heist games", "", "back", "close");
  37. case 17: ShowPlayerDialog(playerid, DIALOG_GAMES, DIALOG_STYLE_LIST, "List of parkour games", "", "back", "close");
  38.  
  39. //
  40. //
  41. //
  42. //
  43. // This part must be modified ( replaced with single ShowPlayerDialog ) its just a reference layout xd
  44. }
  45. }
  46. return 1;
  47. }
  48. if(dialogid == DIALOG_GAMES)
  49. {
  50. if(response) return cmd_games(playerid,"");
  51. return 1;
  52. }
  53. return 0;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment