Quote:
Originally Posted by iNspiratioN
PHP Code:
public zp_user_humanized_post(id) { if(gAllowedHook[id] || (get_user_flags(id)&ADMIN_LEVEL_E) && !zp_get_user_zombie(id)) { gAllowedHook[id] = true } }
|
maybe this is the point
in your code player is allready allowedhook[id] when checking
and then you set him again allowedhook[id]
so you have to check if not allowedhook[id]
then set him allowedhook[id]
PHP Code:
if(!gAllowedHook[id] || (get_user_flags(id)&ADMIN_LEVEL_E) && !zp_get_user_zombie(id))
do you want to remove only admin hook or form everyone who is zombie id
and has hook id and then give it back if not zombie id and has no hook id ???
__________________