AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block vote console (https://forums.alliedmods.net/showthread.php?t=228931)

xsamitxs 10-29-2013 15:58

block vote console
 
i want commands block vote console

DWIGHTpN 10-29-2013 16:18

Re: block vote console
 
PHP Code:

public client_command(id){
        new 
arg[10];
        
read_argv(0,argcharsmax(arg));
        if( 
equali(arg,"vote") || equali(arg,"votemap") )
               return 
PLUGIN_HANDLED_MAIN;
        return 
PLUGIN_CONTINUE;


Like this ?, or amx_vote ?

Phant 10-29-2013 16:44

Re: block vote console
 
PHP Code:

public plugin_init()
{
    
register_clcmd("votemap""CmdVotemap");
}

public 
CmdVotemap(id)
{
    return 
PLUGIN_HANDLED;


DWIGHTpN, this method better?


All times are GMT -4. The time now is 23:15.

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