Hey, i have a issue with
jointeam or
chooseteam command:
If someone try to bypassing flooding or spamming the command is not blocking a command, like this function:
Ps.
I have tested with menus hooking (VGUI and old style menus) and this code above.
PHP Code:
#include <amxmodx>
#include <cstrike>
new g_Lock;
public plugin_init()
{
register_plugin("Generic Plugin Test",AMXX_VERSION_STR,"AMXX Dev Team");
g_Lock = register_cvar("amx_lock_teams","1");
register_clcmd("chooseteam","cmdHook");
register_clcmd("jointeam","cmdHook");
}
public cmdHook(id)
{
if(get_pcvar_num(g_Lock))
{
console_print(id,"Sorry, change teams not allowed at this time!");
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
__________________