AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help Please! Be Greatly Welcomed! (https://forums.alliedmods.net/showthread.php?t=61199)

nnukka 09-23-2007 19:09

Help Please! Be Greatly Welcomed!
 
Code:

public adminmenu(id) {
        if (ffxenable==false) return PLUGIN_CONTINUE   
    new szMenuBody50[200]
    new keys
    format( szMenuBody50, 199, "Admin Menu:" )
    add( szMenuBody50, 199, "^n\y 1.|. Give yourself xp + 400. " )
    add( szMenuBody50, 199, "^n\y 2.|. Give a player xp + 400. " )
    add( szMenuBody50, 199, "^n\y 3.|. Force a player to drop a weapon. " )
    add( szMenuBody50, 199, "^n\y 4.|. Force a player to drop a armor. " )
    add( szMenuBody50, 199, "^n\y 5.|. Remove a players xp. " )
    add( szMenuBody50, 199, "^n\y 6.|. Deathmatch on or off. " )
    add( szMenuBody50, 199, "^n\y 0. Exit. " )
    keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<9)
    show_menu( id, keys, szMenuBody50, -1 )
    return PLUGIN_CONTINUE
}



Can somepone tell me what the command is to open the admin menu? or can some 1 fix this code so there can be a comand to open the admin menu? like ffxmodmenu into console to open the admin menu?

M249-M4A1 09-23-2007 19:55

Re: Help Please! Be Greatly Welcomed!
 
Admin menu, you mean amxmodmenu?

nnukka 09-23-2007 20:00

Re: Help Please! Be Greatly Welcomed!
 
no this is a mod im trying to help fix... and im stuck here? and i cant find out what th command is to open this menu or if there even is one?

YamiKaitou 09-23-2007 22:08

Re: Help Please! Be Greatly Welcomed!
 
Post in Scripting Help

Wilson [29th ID] 09-24-2007 03:22

Re: Help Please! Be Greatly Welcomed!
 
Check out amxmodx/configs/cmds.ini

You can add lines to the menu there. Then make a plugin and actually create the commands.


All times are GMT -4. The time now is 16:12.

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