Raised This Month: $ Target: $400
 0% 

Add custom menu items (kz-arg)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tRipLe.
Senior Member
Join Date: Dec 2009
Location: Estonia, Pärnu
Old 05-15-2011 , 10:44   Add custom menu items (kz-arg)
Reply With Quote #1

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 .
__________________
τsэ - servers.ee:9987
tRipLe. is offline
Send a message via MSN to tRipLe. Send a message via Skype™ to tRipLe.
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-15-2011 , 13:56   Re: Add custom menu items (kz-arg)
Reply With Quote #2

show me that inc file and script. I examine it a bit and then i can say how to do it.

Last edited by Exolent[jNr]; 05-15-2011 at 15:01. Reason: English only.
.Dare Devil. is offline
Old 05-16-2011, 04:00
vato loco [GE-S]
This message has been deleted by vato loco [GE-S]. Reason: ...
tRipLe.
Senior Member
Join Date: Dec 2009
Location: Estonia, Pärnu
Old 05-16-2011 , 12:58   Re: Add custom menu items (kz-arg)
Reply With Quote #3

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[]) 
__________________
τsэ - servers.ee:9987
tRipLe. is offline
Send a message via MSN to tRipLe. Send a message via Skype™ to tRipLe.
Reply


Thread Tools
Display Modes

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:19.


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