I tried to edit - ADMIN HOOK plugin by AssKicR, but i confused in that "HOOK Giving"
Orginal Link to ADMIN HOOK -
http://forums.alliedmods.net/showthread.php?t=17778
I want to add ZP functions like - when admin changes into zombie - he would lose the HOOK and if he changes back into human - he would get his hook back.
I tried this:
PHP Code:
public zp_user_infected_post(id, infector)
{
if(gAllowedHook[id] || (get_user_flags(id)&ADMIN_LEVEL_E) && zp_get_user_zombie(id))
{
gAllowedHook[id] = false
}
}
public zp_user_humanized_post(id)
{
if(gAllowedHook[id] || (get_user_flags(id)&ADMIN_LEVEL_E) && !zp_get_user_zombie(id))
{
gAllowedHook[id] = true
}
}
and some couple of ways but nothing..
__________________