Advertisement
CheezPuff

Jailbreak TeamHelp - Will be Update Soon

Dec 7th, 2013
1,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.15 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <cstrike>
  5.  
  6. #define PLUGIN "Jailbreak: Help Menu 2011"
  7. #define VERSION "1.0"
  8. #define AUTHOR "CheezPuff"
  9.  
  10. #define ACCESS_FLAG ADMIN_KICK
  11.  
  12. public plugin_init()
  13. {
  14.     register_plugin(PLUGIN, VERSION, AUTHOR)
  15.    
  16.     register_clcmd("say /amenu", "Menu_Admin")
  17.     register_clcmd("say /adminmenu", "Menu_Admin")
  18.     register_clcmd("say /menu", "CheckTeamMenu")
  19.    
  20.     register_clcmd("chooseteam", "CheckTeamMenu")
  21.     register_clcmd("jointeam", "CheckTeamMenu")
  22. }
  23.  
  24. public CheckTeamMenu( id )
  25. {
  26.     switch( cs_get_user_team( id ) )
  27.     {
  28.         case CS_TEAM_T: Menu_Prisoner( id );
  29.         case CS_TEAM_CT: Menu_Guard( id );
  30.     }
  31.     return 1;
  32. }
  33.  
  34. public Menu_Prisoner( id )
  35. {
  36.     new iMenu = menu_create( "\r[Jailbreak] \d- \wPrisoner's \wMenu", "Menu_Prisoner_Handler" )
  37.     menu_additem( iMenu, "Shop Menu", "1", 0)
  38.     menu_additem( iMenu, "Gang Menu", "2", 0)
  39.     menu_additem( iMenu, "Last Request Menu", "3", 0)
  40.     menu_additem( iMenu, "Redirect Clubs", "4", 0)
  41.     menu_additem( iMenu, "Admins Online", "5", 0)
  42.     menu_additem( iMenu, "\yPrices \wMenu", "6", 0)
  43.    
  44.     menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
  45.     menu_display( id, iMenu, 0);
  46.    
  47.     return 1;
  48. }
  49.  
  50. public Menu_Guard( id )
  51. {
  52.     new iMenu = menu_create("\r[Jailbreak] \yGuards \wMenu^nPages:\y", "Menu_Guard_Handler" )
  53.     menu_additem( iMenu, "Admin Online", "1", 0)
  54.     menu_additem( iMenu, "Redirect \yClubs", "2", 0)
  55.     menu_additem( iMenu, "Open \yCells", "3", 0)
  56.     menu_additem( iMenu, "Close \yCells", "4", 0)
  57.     menu_additem( iMenu, "Get Menu", "5", 0)
  58.     menu_additem( iMenu, "Box", "6", 0)
  59.     menu_additem( iMenu, "Glow Menu", "7", 0)
  60.     menu_additem( iMenu, "C4", "8", 0)
  61.     menu_additem( iMenu, "FreeDay", "9", 0)
  62.     menu_additem( iMenu, "Math", "10", 0)
  63.     menu_additem( iMenu, "Translate", "11", 0)
  64.     menu_additem( iMenu, "Guards \yGames", "11", 0)
  65.    
  66.     menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
  67.     menu_display( id, iMenu, 0);
  68.    
  69.     return 1;
  70. }
  71.  
  72. public Menu_Prisoner_Handler( id, iMenu, item )
  73. {
  74.     if (item == MENU_EXIT)
  75.     {
  76.         menu_destroy( iMenu )
  77.         return 1;
  78.     }
  79.    
  80.     switch( item )
  81.     {
  82.         case 1: client_cmd(id, "say /shop")
  83.         case 2: client_cmd(id, "say /gang")
  84.         case 3: client_cmd(id, "say /lr")
  85.         case 4: client_cmd(id, "say /server")
  86.         case 5: client_cmd(id, "say /admins")
  87.         case 6: client_cmd(id, "say /prices")
  88.     }
  89.    
  90.     return 1;
  91. }
  92.  
  93. public Menu_Guard_Handler( id, iMenu, item )
  94. {
  95.     if (item == MENU_EXIT)
  96.     {
  97.         menu_destroy( iMenu )
  98.         return 1;
  99.     }
  100.    
  101.     switch( item )
  102.     {
  103.         case 1: client_cmd(id, "say /admins")
  104.             case 2: client_cmd(id, "say /servers")
  105.             case 3: client_cmd(id, "say /open")    
  106.             case 4: client_cmd(id, "say /close")
  107.             case 5: client_cmd(id, "say /get")
  108.             case 6: client_cmd(id, "say /box")
  109.             case 7: client_cmd(id, "say /glow")
  110.             case 8: client_cmd(id, "say /c4")
  111.             case 9: client_cmd(id, "say /fd")
  112.             case 10: client_cmd(id, "say /math")
  113.             case 11: client_cmd(id, "say /ts")
  114.             case 12: client_cmd(id, "say /games")
  115.         }
  116.    
  117.     return 1;
  118. }
  119.  
  120.  
  121. public Menu_Admin( id )
  122. {
  123.     if( get_user_flags( id ) & ACCESS_FLAG )
  124.     {
  125.         new iMenu = menu_create( "\r[Jailbreak] \yAdmin Menu", "Menu_Admin_Handler" )
  126.         menu_additem( iMenu, "Open \yAMXMODX \wMenu", "1")
  127.         menu_additem( iMenu, "Days Menu", "2")
  128.         menu_additem( iMenu, "Start \yFirst Writes", "3")
  129.         menu_additem( iMenu, "Ball \wand \yNet \wMenu", "4")
  130.         menu_additem( iMenu, "Start Math", "5")
  131.         menu_additem( iMenu, "Kick Menu", "6")
  132.         menu_additem( iMenu, "Ban Menu", "7")
  133.         menu_additem( iMenu, "Admins Access", "8")
  134.         menu_additem( iMenu, "BanCT Menu", "9")
  135.        
  136.         menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
  137.         menu_display( id, iMenu, 0);
  138.     }
  139.     return 1;
  140. }
  141.  
  142. public Menu_Admin_Handler( id, iMenu, item ) {
  143.     if (item == MENU_EXIT) {
  144.         menu_destroy( iMenu )
  145.         return 1;
  146.     }
  147.    
  148.     switch( item ) {
  149.         case 1: client_cmd(id, "amxmodmenu")
  150.             case 2: client_cmd(id, "say /days")
  151.             case 3: client_cmd(id, "say /fw")
  152.             case 4: client_cmd(id, "say /ball")
  153.             case 5: client_cmd(id, "say /math")
  154.             case 6: client_cmd(id, "amx_banmenu")
  155.             case 7: client_cmd(id, "amx_kickmenu")
  156.             case 8: client_cmd(id, "say /adminsmanager")
  157.             case 9: client_cmd(id, "say /banct")
  158.         }
  159.    
  160.     return 1;
  161. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement