Raised This Month: $51 Target: $400
 12% 

Client side menu setup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
//mr47
Junior Member
Join Date: May 2007
Location: New Delhi, India
Old 05-12-2007 , 08:15   Client side menu setup
Reply With Quote #1

hello,
iv been trying to setup an client side(non-admin) menu from 2 days now with little or no success ...

What i basically want is to setup a client side menu for general/non-admin users who can do following :-

1.Initate a vote for a new map from mapcycle.txt
2.Initate a vote to extend maptime
3.Initiate a vote to kick a user

This is what iv understood till now

Since i hav given "z" access flag to all non-admin user's, they only
have access to "amx_menu" command...

Iv learnt to add items in "amx_menu" through the file "custommenuitems.cfg"..

I have all base plugins runnig, nothing more

custommenuitems.cfg
Quote:
amx_addclientmenuitem "Voting for map change" "amx_votemapmenu" "z" "Nextmap Chooser"
amxx.cfg
Quote:
// AMX Configuration File
echo Executing AMX Mod X Configuration File
// Default access for all non admin players (see users.ini for access details)
amx_default_access "z"
// Name of setinfo which should store a password on a client (you should change this)
// (Example: setinfo _pw "password")
amx_password_field "_passwa"
// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
amx_mode 1
// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
amx_show_activity 2
// Frequency in seconds and text of scrolling message
amx_scrollmsg "Message 1" 60
// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
amx_imessage "Server Protected By sXe-Injected vr.3.3/nDownload sXe Client from www.sxe-injected.com.ar" "000255100"
// Frequency in seconds of colored messages
amx_freq_imessage 180
// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 2
// Amount of reserved slots, amx_hideslots must be 1 to use this cvar (for more details see comments in plugin source)
amx_reservation 1
// If you set this to 1, you can hide slots on your server
amx_hideslots 1
// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
amx_time_display "ab 600" "ab 300" "ab 180" "ab 120" "ab 60" "bcde 11"
// Announce "say thetime" and "say timeleft" with voice
amx_time_voice 1
// Minimum delay in seconds between two voting sessions
amx_vote_delay 60
// How long voting session goes on
amx_vote_time 30
// Display who votes for what option
amx_vote_answers 0
// Some ratios for voting success
amx_votekick_ratio 0.50
amx_voteban_ratio 0.50
amx_votemap_ratio 0.40
amx_vote_ratio 0.40
// Max. time to which map can be extended
amx_extendmap_max 30
// Step for each extending
amx_extendmap_step 10
//If you set this to 0, clients cannot chose their language
amx_client_languages 0
// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
amx_debug 1
// Plugin MultiLingual Debug
// To debug a language put its 2 letter code between quotes ("en", "de", etc)
// "" means disabled
amx_mldebug ""
plugins.ini
Quote:
; AMX Mod X plugins
; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)
; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
;multilingual.amxx ; Multi-Lingual management
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands
When I or any1 join's after opening menu(amx_menu) they get

AXM Client Menu :

1.Voting for Map change

0. Exit

and on pressing 1 nothing happens..

Please tell me how to get this done and what i need to do
I will be really greatful
thnx in advance

Last edited by //mr47; 05-12-2007 at 09:49.
//mr47 is offline
//mr47
Junior Member
Join Date: May 2007
Location: New Delhi, India
Old 05-13-2007 , 05:38   Re: Client side menu setup
Reply With Quote #2

Problwm solved

Download mapchooser4.amxx plugin
add this parameters in custommenuitems.cfg


amx_addclientmenuitem "Kick Menu" "amx_kickmenu" "c" "Admin Commands"
amx_addclientmenuitem "Slap Menu" "amx_slapmenu" "d" "Admin Commands"
amx_addclientmenuitem "Ban Menu" "amx_banmenu" "e" "Admin Commands"
amx_addclientmenuitem "Vote To Change Map" "amx_votenextmap 10" "j" "Nextmap Chooser 4"

Provide access flags "cdej" to people with appropriate lower level admin's
"amx_votenextmap <time>" will give a map choosing menu
//mr47 is offline
//mr47
Junior Member
Join Date: May 2007
Location: New Delhi, India
Old 05-22-2007 , 15:10   Re: Client side menu setup
Reply With Quote #3

150 views n no replies
was this nt useful 2 any1??
//mr47 is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 05-22-2007 , 15:11   Re: Client side menu setup
Reply With Quote #4

Quote:
Originally Posted by //mr47 View Post
150 views n no replies
was this nt useful 2 any1??
The problem was solved, why should anyone reply?
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
//mr47
Junior Member
Join Date: May 2007
Location: New Delhi, India
Old 05-22-2007 , 15:13   Re: Client side menu setup
Reply With Quote #5

generally if sumthing is useful, u reply
//mr47 is offline
Old 01-22-2009, 17:07
Endoglastic
This message has been deleted by Exolent[jNr]. Reason: Make your own topic.
Old 01-22-2009, 17:11
Endoglastic
This message has been deleted by Exolent[jNr]. Reason: Make your own topic.
Endoglastic
Senior Member
Join Date: Jan 2009
Location: United States
Old 01-22-2009 , 17:16   Re: Client side menu setup
Reply With Quote #6

Oh and

amx_addclientmenuitem "Kick Menu" "amx_kickmenu" "c" "Admin Commands"
amx_addclientmenuitem "Slap Menu" "amx_slapmenu" "d" "Admin Commands"
amx_addclientmenuitem "Ban Menu" "amx_banmenu" "e" "Admin Commands".

Those don't work in my menu at all.
Endoglastic 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 07:11.


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