Raised This Month: $ Target: $400
 0% 

"Menu" dont works


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Porta0123
Member
Join Date: Apr 2014
Location: Spain
Old 06-25-2014 , 09:50   "Menu" dont works
Reply With Quote #1

i made one menu for my server , i don't see any error :/

Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("alienmodon","Go_Menu")     register_event( "DeathMsg" , "DeathMsgEvent" , "a" );     register_event("HLTV", "event_new_round", "a", "1=0", "2=0")       register_event("CurWeapon" , "Event_CurWeapon" , "be" , "1=1" );     RegisterHam(Ham_TakeDamage, "player", "TakeDamage");     maxplayers = get_maxplayers()     alien_actived = false } public Go_Menu(id) {     if(get_user_flags(id) & ADMIN_MENU)     {         alienmenu(id)     }     client_print_color(id, RED, "No tienes acceso a este Menu") } public alienmenu(id) {     new temp1[32]     new temp2[2]     new Menu = menu_create("Players:","Alien_Menu")           for (new i = 1; i <= maxplayers; i++){         if (is_user_connected(i))         {         get_user_name(i,temp1,32);         num_to_str(i,temp2,2);         menu_additem(Menu, temp1,temp2);         }     }     menu_display(id, Menu, 0);   }     public Alien_Menu(id, Menu, item) {     if (item == MENU_EXIT)     {         menu_destroy(Menu)         return PLUGIN_HANDLED     }         new iData[6];     new iAccess;     new iCallback;     new iName[64];     menu_item_getinfo(Menu, item, iAccess, iData, 5, iName, 63, iCallback)         new iplayer = str_to_num(iData)     PlayerAlien = iplayer     alien_actived = true     empezarrondaalien(iplayer)     client_print(id,print_chat,"Hiciste alien a %s",iName)                       return PLUGIN_HANDLED }
Porta0123 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 21:05.


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