AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Add custom menu items (kz-arg) (https://forums.alliedmods.net/showthread.php?t=157046)

tRipLe. 05-15-2011 10:44

Add custom menu items (kz-arg)
 
I found the native from kzarg.inc (kz_mainmenu_item_register), but i have no idea how can i add menus with that..

I want to add a item that triggers client_cmd(id, "say /music").

Hope you can help me :D.

.Dare Devil. 05-15-2011 13:56

Re: Add custom menu items (kz-arg)
 
show me that inc file and script. I examine it a bit and then i can say how to do it.

tRipLe. 05-16-2011 12:58

Re: Add custom menu items (kz-arg)
 
PHP Code:

/**
 * Register new Item for the MainMenu of the plugin
 *
 * @param        itemname[]        Const Item Name to show in the menu
 * @param        itemaccess[]        Const Item Access
 * 
 * @Return        Nŗ of Item        Integer
 *
 */
native kz_mainmenu_item_register(const itemname[], const itemaccess[]) 



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

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