Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <cstrike>
- #define PLUGIN "Jailbreak: Help Menu 2011"
- #define VERSION "1.0"
- #define AUTHOR "CheezPuff"
- #define ACCESS_FLAG ADMIN_KICK
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_clcmd("say /amenu", "Menu_Admin")
- register_clcmd("say /adminmenu", "Menu_Admin")
- register_clcmd("say /menu", "CheckTeamMenu")
- register_clcmd("chooseteam", "CheckTeamMenu")
- register_clcmd("jointeam", "CheckTeamMenu")
- }
- public CheckTeamMenu( id )
- {
- switch( cs_get_user_team( id ) )
- {
- case CS_TEAM_T: Menu_Prisoner( id );
- case CS_TEAM_CT: Menu_Guard( id );
- }
- return 1;
- }
- public Menu_Prisoner( id )
- {
- new iMenu = menu_create( "\r[Jailbreak] \d- \wPrisoner's \wMenu", "Menu_Prisoner_Handler" )
- menu_additem( iMenu, "Shop Menu", "1", 0)
- menu_additem( iMenu, "Gang Menu", "2", 0)
- menu_additem( iMenu, "Last Request Menu", "3", 0)
- menu_additem( iMenu, "Redirect Clubs", "4", 0)
- menu_additem( iMenu, "Admins Online", "5", 0)
- menu_additem( iMenu, "\yPrices \wMenu", "6", 0)
- menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
- menu_display( id, iMenu, 0);
- return 1;
- }
- public Menu_Guard( id )
- {
- new iMenu = menu_create("\r[Jailbreak] \yGuards \wMenu^nPages:\y", "Menu_Guard_Handler" )
- menu_additem( iMenu, "Admin Online", "1", 0)
- menu_additem( iMenu, "Redirect \yClubs", "2", 0)
- menu_additem( iMenu, "Open \yCells", "3", 0)
- menu_additem( iMenu, "Close \yCells", "4", 0)
- menu_additem( iMenu, "Get Menu", "5", 0)
- menu_additem( iMenu, "Box", "6", 0)
- menu_additem( iMenu, "Glow Menu", "7", 0)
- menu_additem( iMenu, "C4", "8", 0)
- menu_additem( iMenu, "FreeDay", "9", 0)
- menu_additem( iMenu, "Math", "10", 0)
- menu_additem( iMenu, "Translate", "11", 0)
- menu_additem( iMenu, "Guards \yGames", "11", 0)
- menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
- menu_display( id, iMenu, 0);
- return 1;
- }
- public Menu_Prisoner_Handler( id, iMenu, item )
- {
- if (item == MENU_EXIT)
- {
- menu_destroy( iMenu )
- return 1;
- }
- switch( item )
- {
- case 1: client_cmd(id, "say /shop")
- case 2: client_cmd(id, "say /gang")
- case 3: client_cmd(id, "say /lr")
- case 4: client_cmd(id, "say /server")
- case 5: client_cmd(id, "say /admins")
- case 6: client_cmd(id, "say /prices")
- }
- return 1;
- }
- public Menu_Guard_Handler( id, iMenu, item )
- {
- if (item == MENU_EXIT)
- {
- menu_destroy( iMenu )
- return 1;
- }
- switch( item )
- {
- case 1: client_cmd(id, "say /admins")
- case 2: client_cmd(id, "say /servers")
- case 3: client_cmd(id, "say /open")
- case 4: client_cmd(id, "say /close")
- case 5: client_cmd(id, "say /get")
- case 6: client_cmd(id, "say /box")
- case 7: client_cmd(id, "say /glow")
- case 8: client_cmd(id, "say /c4")
- case 9: client_cmd(id, "say /fd")
- case 10: client_cmd(id, "say /math")
- case 11: client_cmd(id, "say /ts")
- case 12: client_cmd(id, "say /games")
- }
- return 1;
- }
- public Menu_Admin( id )
- {
- if( get_user_flags( id ) & ACCESS_FLAG )
- {
- new iMenu = menu_create( "\r[Jailbreak] \yAdmin Menu", "Menu_Admin_Handler" )
- menu_additem( iMenu, "Open \yAMXMODX \wMenu", "1")
- menu_additem( iMenu, "Days Menu", "2")
- menu_additem( iMenu, "Start \yFirst Writes", "3")
- menu_additem( iMenu, "Ball \wand \yNet \wMenu", "4")
- menu_additem( iMenu, "Start Math", "5")
- menu_additem( iMenu, "Kick Menu", "6")
- menu_additem( iMenu, "Ban Menu", "7")
- menu_additem( iMenu, "Admins Access", "8")
- menu_additem( iMenu, "BanCT Menu", "9")
- menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
- menu_display( id, iMenu, 0);
- }
- return 1;
- }
- public Menu_Admin_Handler( id, iMenu, item ) {
- if (item == MENU_EXIT) {
- menu_destroy( iMenu )
- return 1;
- }
- switch( item ) {
- case 1: client_cmd(id, "amxmodmenu")
- case 2: client_cmd(id, "say /days")
- case 3: client_cmd(id, "say /fw")
- case 4: client_cmd(id, "say /ball")
- case 5: client_cmd(id, "say /math")
- case 6: client_cmd(id, "amx_banmenu")
- case 7: client_cmd(id, "amx_kickmenu")
- case 8: client_cmd(id, "say /adminsmanager")
- case 9: client_cmd(id, "say /banct")
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement