Raised This Month: $193 Target: $400
 48% 

No Vote


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   Brad (55)
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 08-16-2006 , 14:39   No Vote
Reply With Quote #1

Overview
Disables builtin commands in game, that are available via client console:
vote (kicking)
votemap (mapchange)
votekick (kicking)
voteban (banning)

Only the ADMIN_LEVEL_A (that is flag m) can use them
No extra modules requires, should actually work with any mod under Half-Life.

Installation
Compile or get the .amxx, put the .amxx to plugins directory.
Add no_vote.amxx on the end of file AMX Mod X plugins.ini.
Change map.

Updates
Future releases - rahter not, because of laziness.


Extra info
Change ADMIN_LEVEL_A to something else, like ADMIN_LEVEL_RCON so only very powerful admins can use it, and recompile (of course) and update with new .amxx

Notice: should work with AMX Mod aswell, after changing <amxmodx> to <amxmod>
Attached Files
File Type: sma Get Plugin or Get Source (no_vote.sma - 2145 views - 1.2 KB)
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
`666
Veteran Member
Join Date: Jan 2006
Location: UK
Old 08-17-2006 , 15:50   Re: No Vote
Reply With Quote #2

Nice one! that should stop noobs from vote kick players for no good reason.
`666 is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 08-17-2006 , 18:10   Re: No Vote
Reply With Quote #3

Can u make cvars for every one of those commands? like
amx_votekick_public 1/0
amx_voteban_public 1/0
amx_votemap_public 1/0
amx_bantime Default: 30

and is it possible to make these chat commands?
__________________
ThomasNguyen is offline
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 08-17-2006 , 19:44   Re: No Vote
Reply With Quote #4

1. cvars, maybe in a weekend
2. what say commands?
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 08-18-2006 , 10:02   Re: No Vote
Reply With Quote #5

Like instead of going in th e console, say something like /votemap in chat and it will trigger the console command.
__________________
ThomasNguyen is offline
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 08-18-2006 , 10:38   Re: No Vote
Reply With Quote #6

there are other plugins for that, like voteaccess
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-11-2006 , 10:14   Re: No Vote
Reply With Quote #7

If you make each vote setting use a separate CVAR to determine who has access to the command, it'll be approved. It's too constricted as is.

I suggest something like voteaccess_votemap and then having the user supply the the admin flags that have access to that command. I have some code that could help you if you need it.

It also wouldn't hurt, but is not needed for approval, to add say commands for the votes. Yes, other plugins do that but your plugin would still be unique because of providing the ability to restrict the commands to certain levels.
__________________
Brad is offline
`666
Veteran Member
Join Date: Jan 2006
Location: UK
Old 07-23-2008 , 03:34   Re: No Vote
Reply With Quote #8

doesn't block commands in cz for some reason
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_plugin("No Vote""0.1""_KaszpiR_")
    
register_clcmd("vote","vote_grab",ADMIN_IMMUNITY," <number>. Vote against a player form your team to kick."
    
register_clcmd("votemap","votemap_grab",ADMIN_IMMUNITY," <number>. Vote to change a map."
    
register_clcmd("fullupdate","fullupdate_grab",ADMIN_IMMUNITY," fullupdate"
    return 
PLUGIN_CONTINUE
}

public 
vote_grab(idlevelcid)
{
    if (!
cmd_access(idlevelcid,1)) 
        return 
PLUGIN_HANDLED_MAIN 
    
return PLUGIN_CONTINUE
}

public 
votemap_grab(idlevelcid)
{
    if (!
cmd_access(idlevelcid,1)) 
        return 
PLUGIN_HANDLED_MAIN 
    
return PLUGIN_CONTINUE
}

public 
fullupdate_grab(idlevelcid)
{
    if (!
cmd_access(idlevelcid,1)) 
        return 
PLUGIN_HANDLED_MAIN 
    
return PLUGIN_CONTINUE

`666 is offline
cs1.7
Senior Member
Join Date: Oct 2008
Old 07-21-2009 , 08:48   Re: No Vote
Reply With Quote #9

i would also like to stop players from typing "staus" in console. Could someone add it to the plugin?

+karma!!
cs1.7 is offline
`666
Veteran Member
Join Date: Jan 2006
Location: UK
Old 07-21-2009 , 14:17   Re: No Vote
Reply With Quote #10

Quote:
Originally Posted by cs1.7 View Post
i would also like to stop players from typing "staus" in console. Could someone add it to the plugin?

+karma!!
like this i think

Code:
/* AMX Mod script. 
* 
* (c) 2003, OLO 
* This file is provided as is (no warranties). 
*
* Description:
plugin blocks the console commands like 
vote (kicking)
votemap (mapchange)
votekick (kicking)
voteban (banning)

only the ADMIN_LEVEL_A (that is flag m) can use it

change it to something else, like ADMIN_LEVEL_RCON so only very powerful admins can use it.



*/
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
	register_plugin("No Vote", "0.1", "_KaszpiR_")
	register_clcmd("vote","vote_grab",ADMIN_LEVEL_A," <number>. Vote against a player form your team to kick.") 
	register_clcmd("votekick","votemap_grab",ADMIN_LEVEL_A," <number>. Vote to kick.") 
	register_clcmd("voteban","votemap_grab",ADMIN_LEVEL_A," <number>. Vote to ban.") 
	register_clcmd("votemap","votemap_grab",ADMIN_LEVEL_A," <number>. Vote to change a map.") 
	register_clcmd("status","status_grab",ADMIN_LEVEL_A," status") 
	return PLUGIN_CONTINUE
}

public vote_grab(id, level, cid)
{
	if (!cmd_access(id, level, cid,1)) 
		return PLUGIN_HANDLED_MAIN 
	return PLUGIN_CONTINUE
}

public votemap_grab(id, level, cid)
{
	if (!cmd_access(id, level, cid,1)) 
		return PLUGIN_HANDLED_MAIN 
	return PLUGIN_CONTINUE
}

public status_grab(id, level, cid)
{
	if (!cmd_access(id, level, cid,1)) 
		return PLUGIN_HANDLED_MAIN 
	return PLUGIN_CONTINUE
}

Last edited by `666; 07-25-2009 at 12:15. Reason: updated
`666 is offline
Reply


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 01:29.


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