Raised This Month: $ Target: $400
 0% 

menu help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-31-2009 , 22:03   Re: menu help
Reply With Quote #2

Code:
#include <amxmodx> #define PLUGIN    "New Plugin" #define AUTHOR    "Alucard" #define VERSION    "1.0" new Menu public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         RegisterHam(Ham_Spawn, "player", "HookSpawnPL", 1)         Menu = menu_create("\ySomething here?", "HandleSpawnMenu")         menu_additem(Menu, "\wYes", "1", 0)     menu_additem(Menu, "\wNo", "2", 0)         menu_setprop(Menu, MPROP_EXIT, MEXIT_NEVER) } public HookSpawnPL(id) {     menu_display(id, Menu) } public HandleSpawnMenu(id, Menu, item) {     new iData[6]     new iAccess     new iCallback     new iName[64]         menu_item_getinfo(Menu, item, iAccess, iData, 5, iName, 63, iCallback)         switch(str_to_num(iData) )     {         case 1:         {             // Oh no!! you pressed 'Yes'         }         case 2:         {             // Oh no!! you pressed 'No'         }     }     return PLUGIN_HANDLED }
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



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 17:48.


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