Raised This Month: $ Target: $400
 0% 

Admin menu with say..


Post New Thread Reply   
 
Thread Tools Display Modes
Yeti
Junior Member
Join Date: Sep 2006
Old 09-14-2006 , 10:52   Re: Admin menu with say..
Reply With Quote #11

Is this question to simple or to difficult for you guys?
Yeti is offline
whOp
Junior Member
Join Date: Sep 2006
Old 09-14-2006 , 13:30   Re: Admin menu with say..
Reply With Quote #12

Quote:
Originally Posted by Yeti View Post
Hi People,

Mabye i'm doing a request wich already has been made. But i'm looking for an admin menu wicj can be enabled with say:

exmaple

say: /adminmenu

will display

1. Kick / Ban User
2. Changemap
3. Start Vote

0 exit

Kind regards

Yeti
Start vote? What kind of vote ? Damn spanky thats nice avatar ;) If u find it post it here meybe i can help u.
__________________

Last edited by whOp; 09-14-2006 at 13:48.
whOp is offline
F34RInc
BANNED
Join Date: Dec 2005
Location: Medellín, Colombia
Old 09-14-2006 , 15:07   Re: Admin menu with say..
Reply With Quote #13

Add

PHP Code:
register_clcmd("say /command""menu_command"
into your

PHP Code:
public plugin_init() 
*But edit it with your command menu name
F34RInc is offline
Send a message via AIM to F34RInc Send a message via MSN to F34RInc
whOp
Junior Member
Join Date: Sep 2006
Old 09-14-2006 , 15:14   Re: Admin menu with say..
Reply With Quote #14

Quote:
Originally Posted by F34RInc View Post
Add

PHP Code:
register_clcmd("say /command""menu_command"
into your

PHP Code:
public plugin_init() 
*But edit it with your command menu name
Thats why i didn't say that if he don't know howto.. but he said the command is /adminmenu

PHP Code:
register_clcmd("say /adminmenu""menu_command"
add that.
__________________

Last edited by whOp; 09-14-2006 at 15:17.
whOp is offline
Old 09-14-2006, 18:07
darklord4251
This message has been deleted by darklord4251.
darklord4251
Junior Member
Join Date: Sep 2006
Old 09-14-2006 , 18:09   Re: Admin menu with say..
Reply With Quote #15

well heres a plugin that lets you do commands in say http://forums.alliedmods.net/showthread.php?p=63636 and for the amxx menu thing just do what super-man said.
darklord4251 is offline
F34RInc
BANNED
Join Date: Dec 2005
Location: Medellín, Colombia
Old 09-15-2006 , 00:48   Re: Admin menu with say..
Reply With Quote #16

Thats not going to work unless his menu is called Menu_command in the script. Yeti whats the name of the plugin you use
F34RInc is offline
Send a message via AIM to F34RInc Send a message via MSN to F34RInc
Yeti
Junior Member
Join Date: Sep 2006
Old 09-15-2006 , 01:32   Re: Admin menu with say..
Reply With Quote #17

Okay,

I found a usefull help plugin this is what i did.

I installed uaio plugin, the command in console is uaio_menu to open the menu. (in uaio you can set "ranks" wich people can do and can't (like start map vote kick etc etc & also set ranks with the menu).

Anyway then i saw the slash plugin

That was helpful, but every command with / is converted to amx_ (/abx = amx_abx & /bbb = amx_bbb)

So i made a slight change that it will be .menu to console uaio_menu

Code:
changed
if ( sArg[0] == '/' ) {
to 
if ( sArg[0] == '.' ) {
 
This line come back 3 time, i changed it 3 times
format(sCommand,MAX_TEXT_LENGTH,"amx_%s",sTemp)
to
format(sCommand,MAX_TEXT_LENGTH,"uaio_%s",sTemp)
This works, but the script is too long and everything with a . before it will be converted into console uiao_xxxx, so there can be pulled something out, but i haven't done it (yet).
Yeti is offline
Reply



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 20:09.


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