I tried,
PHP Code:
register_concmd "/change"
register_concmd "change"
register_concmd "say /change"
PHP Code:
register_srvcmd "/change"
register_srvcmd "change"
register_srvcmd "say /change"
In case of register_concmd, command works from client side but not from console.
In case of srvcmd, command don't work from console.
There is no problem with console, since rest of the commands work very fine from console.
I'm not sure, but I think, here some change would be made? Keeping else condition or whatever possible solution, I have no idea !!
if (get_user_flags(p) & ADMIN_VOTE)
PHP Code:
if (get_user_flags(p) & ADMIN_VOTE)
{
client_print_color(p, DontChange + id, "%L %L", p, "MODE_PREFIX", p, "MODE_ADMIN_CHANGED_ADMINS", szName, p, (g_pServerVar[m_iStatus] == map_close) ? "MODE_ADMIN_CLOSED" : "MODE_ADMIN_OPENED");
console_print(id, "%s Changed The Mode", szName);
}
}
return PLUGIN_HANDLED;
}