AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help !!!! (https://forums.alliedmods.net/showthread.php?t=95965)

leonel rompa 06-29-2009 05:52

help !!!!
 
guys, I wanted to make a menu in the style amxmodmenu, so as to configure the server, ping as activation of some, such as you press the number 1 (1.ping), Aid opens a menu of configuration of ping, number 2 Aid , opens another menu settings and so on, is to create this menu style amxmodmenu, who can help you! sorry my english [/php]

leonel rompa 06-29-2009 18:35

Re: help !!!!
 
PHP Code:

#include <amxmodx>
#include <amxmisc>
#pragma semicolon 1
#define menucmd "say /menu"
#define menudescription "[pro.evolution]"
#define menutitle "[gungame] configuracao"
#define activity 1
#define ADMIN_LEVEL ADMIN_KICK
public plugin_init()
{
  
register_plugin("menu gungame""1.00""leonel");
  
register_concmd(menucmd"cmd_menucmd"ADMIN_LEVELmenudescription);
}
public 
cmd_menucmd(idlevelcid)
{
  if(
cmd_access(idlevelcid0))
  {
    new 
menu menu_create(menutitle"handle_menucmd");
    
menu_additem(menu"Abilitar deathmath""1"0);
    
menu_additem(menu"Desabilitar deathmath""1"0);
    
menu_additem(menu"Abilitar modo por time""1"0);
    
menu_additem(menu"Desabilitar modo por time""1"0);
    
menu_additem(menu"Max de ping 150""1"0);
    
menu_additem(menu"Max de ping 200""1"0);
    
menu_additem(menu"Max de ping 250 ""1"0);
    
menu_additem(menu"Max de ping 300""1"0);
    
menu_additem(menu"Ativar gungame""1"0);
    
menu_additem(menu"Desativar gungame""1"0);    
    
menu_additem(menu"Restart""1"0);
    
menu_display(idmenu0); 

guys, I wanted to make a menu in the style amxmodmenu, so as to configure the server, ping as activation of some, such as you press the number 1 (1.ping), Aid opens a menu of configuration of ping, number 2 Aid , opens another menu settings and so on, is to create this menu style amxmodmenu, who can help you! sorry my english


All times are GMT -4. The time now is 15:25.

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