Quote:
Originally Posted by MrKiller2010
If you are admin with flag 'a' you will not see the message.
Only players and admins without immunity flag will see the player!
|
What are you talking about ?
PHP Code:
#include <amxmodx>
#include <engine>
new g_bBhop[ 33 ]
new szName[ 33 ]
public plugin_init()
{
register_clcmd("say /enablebhop","EnableCommand")
register_clcmd("say /disablebhop","DisableCommand")
}
public EnableCommand(id)
{
g_bBhop[ id ] = true
get_user_name(id, szName, charsmax(szName))
client_print(id, print_chat, "%s U Enabled Bhop", szName)
}
public DisableCommand(id)
{
g_bBhop[ id ] = false
get_user_name(id, szName, charsmax(szName))
client_print(id, print_chat, "%s U Disabled Bhop", szName)
}
//don't put messages here.
public client_PreThink(id)
{
if(is_user_alive(id))
{
if(g_bBhop [ id ] && get_user_flags(id) & ADMIN_IMMUNITY)
{
new oldbuttons = get_user_oldbutton(id);
oldbuttons &= ~IN_JUMP;
entity_set_int(id, EV_INT_oldbuttons, oldbuttons);
}
}
}