Raised This Month: $ Target: $400
 0% 

My plugin =(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
umarsa
Senior Member
Join Date: Feb 2006
Location: U.K
Old 04-01-2006 , 15:47   My plugin =(
Reply With Quote #1

Hi all i want some help with my plugin that i wanted to make i dont know if you lot can make it but here it goes

my code is
Code:
#include <amxmodx>
#include <amxmisc>


new mAdminMenu // Menu
new mcbAdminMenu // Menu Callback



public plugin_init() {
	/* Menu Admin Menu */
	/* Use menu_display(id, mAdminMenu, 0) to show the menu to an user. */
	mAdminMenu = menu_create("Admin Menu", "mh_AdminMenu")
	mcbAdminMenu = menu_makecallback("mcb_AdminMenu")
	menu_additem(mAdminMenu, "Restart Server (20)", "ma_AdminMenu", ADMIN_IMMUNITY, mcbAdminMenu)
	menu_additem(mAdminMenu, "Shutdown Server (20)", "ma_AdminMenu", ADMIN_IMMUNITY, mcbAdminMenu)
	/* Menu End */

	register_plugin("Admin Menu", "1.0", "Umar Salim") 
	register_clcmd("amx_adminmenu", "mAdminMenu")
	
}


/* Menu Admin Menu */

public mh_AdminMenu(id, menu, item) {
	/* This event is called when someone presses a key on this menu */
}

public ma_AdminMenu(id) {
	/* This event is called when an item was selected */
}

public mcb_AdminMenu(id, menu, item) {
	/* This is the callback-event, here you can set items enabled or disabled. */
	/* If you want to enable an item, use: return ITEM_ENABLED */
	/* If you want to disable an item, use: return ITEM_DISABLED */
}
now u see this "register_clcmd("amx_adminmenu", "mAdminMenu")" the mAdminMenu i dont know it that is it and thats the code and i dont know what to register_clcmd i know that i want "amx_adminmenu" to go to this menu i made but i dont know what to bind that to can sum1 help me out :S ?

~ umarsa
umarsa 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 16:30.


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