Greetings Modders,
As you can see i tried to add this weapon :
http://forums.alliedmods.net/showthread.php?p=827532
To this custom Menu :
Quote:
#include <amxmodx>
#include <amxmisc>
#include <fun>
public plugin_init()
{
register_plugin("Beasts Cusom Menu", "0.1", "SaMThEMaN")
new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2
register_menucmd(register_menuid("Select a Weapon"), keys, "giveWeapon")
register_clcmd("/Menu", "showWeaponMenu")
}
public showWeaponMenu(id)
{
new menu[192]
new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2
format(menu, 191, "Which Weapon?^n^n1. M4A1^n2. AK47^n3. MP5^n4. GoldenAK")
show_menu(id, keys, menu)
return PLUGIN_HANDLED
}
public giveWeapon(id, key)
{
//key will start at zero
if (key == 0)
{
give_item(id, "weapon_ak47")
} else if (key == 1) {
give_item(id, "weapon_m4a1")
} else if (key == 2) {
give_item(id, "weapon_mp5navy")
} else if (key == 3) {
give_item(id, "GoldenAk.amxx")
}
}
|
But of course i failed, I wish some one could help and show me how to add 3rd party custom weapons and items to this menu,
Thank you
PS:
I want a Mentor that can teach me some of the basics in Plugin making, I want him to be a pro, and i learn fast so you have nothing to worry about