Thread: No Vote
View Single Post
`666
AlliedModders Donor
Join Date: Jan 2006
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