Raised This Month: $ Target: $400
 0% 

Admin HOOK - Trying to add ZP functions.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iNspiratioN
Member
Join Date: Feb 2009
Location: Lithuania
Old 03-27-2009 , 14:41   Admin HOOK - Trying to add ZP functions.
Reply With Quote #1

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(idinfector)
{
    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..
__________________
iNspiratioN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode