Raised This Month: $ Target: $400
 0% 

get_user_menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Rolnaaba
Veteran Member
Join Date: May 2006
Old 10-17-2006 , 13:09   Re: get_user_menu
Reply With Quote #10

here is what I have so far, removed server cmds you can add those when you use it correctly and removed cvar check cause I didnt feel like putting atm but you can add those but this should work:
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta_util> #define PLUGIN "Practice Mod" #define VERSION "1.0" #define AUTHOR "Rolnaaba" #define Keystype_menu (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4) #define Keysak_menu (1<<0)|(1<<1) #define Keysm4_menu (1<<0)|(1<<1) #define Keysgalil_menu (1<<0)|(1<<1) #define Keysaug_menu (1<<0)|(1<<1) public plugin_init() {  register_plugin(PLUGIN, VERSION, AUTHOR)    register_cvar("amx_practice", "1")    register_menucmd(register_menuid("type_menu"), Keystype_menu, "Pressedtype_menu")  register_menucmd(register_menuid("ak_menu"), Keysak_menu, "Pressedak_menu")  register_menucmd(register_menuid("m4_menu"), Keysm4_menu, "Pressedm4_menu")  register_menucmd(register_menuid("galil_menu"), Keysgalil_menu , "Pressedgalil_menu")  register_menucmd(register_menuid("aug_menu"), Keysaug_menu , "Pressedaug_menu")    register_concmd("amx_practice" , "Showtype_menu", ADMIN_CVAR, "Shows The Practice Menu") } public Showtype_menu(id) {  show_menu(id, Keystype_menu, "1. Ak's^n2. M4's^n3. Galil's^n4. Aug's^n^n0. Exit", -1, "Practice Menu") } public Pressedtype_menu(id, key) {  switch (key) {   case 0: {    Showak_menu(id)     }   case 1: {    Showm4_menu(id)   }   case 2: {    Showgalil_menu(id)   }   case 3: {    Showaug_menu(id)   }   case 4: {    EndMenu(id)   }  } } public Showak_menu(id) {  show_menu(id, Keysak_menu, "Ready For Ak Practice?^n1. Practice^2. Die", -1, "Practice Menu") } public Pressedak_menu(id, key) {  switch(key) {   case 0: {    strip_guns(id)    fm_give_item(id, "weapon_ak47");    cs_set_user_bpammo(id , CSW_AK47 , 200)   }   case 1: {    user_kill(id)   }   default: {    user_kill(id)   }  } } public Showm4_menu(id) {  show_menu(id, Keysm4_menu, "Ready For M4 Practice?^n1. Practice^2. Die", -1, "Practice Menu") } public Pressedm4_menu(id, key) {  switch(key) {   case 0: {    strip_guns(id)    fm_give_item(id  , "weapon_m4a1")    cs_set_user_bpammo(id , CSW_M4A1 , 200)   }   case 1: {    user_kill(id)   }   default: {    user_kill(id)   }  } } public Showgalil_menu(id) {  show_menu(id, Keysgalil_menu, "Ready For Galil Practice?^n1. Practice^2. Die", -1, "Practice Menu") } public Pressedgalil_menu(id, key) {  switch(key) {   case 0: {    strip_guns(id)    fm_give_item(id , "weapon_galil")    cs_set_user_bpammo(id , CSW_GALIL , 200)   }   case 1: {    user_kill(id)   }   default: {    user_kill(id)   }  } } public Showaug_menu(id) {  show_menu(id, Keysgalil_menu, "Ready For Aug Practice?^n1. Practice^2. Die", -1, "Practice Menu") } public Pressedaug_menu(id, key) {  switch(key) {   case 0: {    strip_guns(id)    fm_give_item(id  , "weapon_aug")    cs_set_user_bpammo(id , CSW_AUG, 200)   }   case 1: {    user_kill(id)   }   default: {    user_kill(id)   }  } } public strip_guns(id) {  fm_strip_user_gun(id, CSW_GLOCK18)  fm_strip_user_gun(id, CSW_M4A1)  fm_strip_user_gun(id, CSW_AK47)  fm_strip_user_gun(id, CSW_SCOUT)  fm_strip_user_gun(id, CSW_XM1014)  fm_strip_user_gun(id, CSW_MAC10)  fm_strip_user_gun(id, CSW_AUG)  fm_strip_user_gun(id, CSW_ELITE)  fm_strip_user_gun(id, CSW_FIVESEVEN)  fm_strip_user_gun(id, CSW_UMP45)  fm_strip_user_gun(id, CSW_SG550)  fm_strip_user_gun(id, CSW_GALIL)  fm_strip_user_gun(id, CSW_FAMAS)  fm_strip_user_gun(id, CSW_USP)  fm_strip_user_gun(id, CSW_AWP)  fm_strip_user_gun(id, CSW_MP5NAVY)  fm_strip_user_gun(id, CSW_M249)  fm_strip_user_gun(id, CSW_M3)  fm_strip_user_gun(id, CSW_TMP)  fm_strip_user_gun(id, CSW_G3SG1)  fm_strip_user_gun(id, CSW_DEAGLE)  fm_strip_user_gun(id, CSW_SG552)  fm_strip_user_gun(id, CSW_P90)  fm_strip_user_gun(id, CSW_P228) } public EndMenu(id) {  return PLUGIN_HANDLED }
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode