Raised This Month: $ Target: $400
 0% 

client say /vote <ALLOWED COMMANDS ONLY>


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-11-2007 , 16:51   client say /vote <ALLOWED COMMANDS ONLY>
#1

original: http://forums.alliedmods.net/showthread.php?p=159545

the plugin above lets anyone say /vote <command> to start a vote to execute the <command> on the server console, with restrictions, such as Quit, Reload, Kill, amx_addadmin, But can people go: /vote is the admin stupid, and then the vote passes and "is the admin stupid" is executed on console

This plugin: same as the above exept THEY CAN ONLY START ALLOWED VOTES ONLY!!!!

this plugin checks the command the client wants to start with a file, if a part of the command in the file fits in to what the client said, the vote is allowed

Example: say /vote amx_slay z
"amx_slay z" has "amx_slay", so vote proceeds

Create a file in the configs folder called: allowed_votes.ini
add the commands you want to allow clients to vote to execute on console

Credits go to GHW

cvars:
Vote_Delay 60 <when can the people start another vote after a /vote
Vote_Lasts 15 <how much time the people have to answer before the plugin calculates the yes and nos
sv_vote 1 <enabled??
Vote_Advertise 60 <advertize it self every X secs
Attached Files
File Type: ini allowed_votes.ini (46 Bytes, 263 views)
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME

Last edited by GHW_Chronic; 03-03-2007 at 17:32.
kp_uparrow is offline
 


Thread Tools
Display Modes

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:24.


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