Raised This Month: $ Target: $400
 0% 

ZooM Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nyuszy
Senior Member
Join Date: Apr 2009
Old 12-11-2011 , 04:59   Re: ZooM Help
Reply With Quote #1

PHP Code:
new bool:gZoom[33]

public function(
id)

    new 
weaponid get_user_weapon(id);
    new 
button pev(idpev_button);
    
    if(
weaponid == an weapon)
    {    
        if(
button IN_ATTACK)
        {        
           
// do something
        
}
        else if(
button IN_ATTACK2)
        {
            if(!
gZoom[id])
            {
                
cs_set_user_zoomidCS_SET_AUGSG552_ZOOM)
                
gZoom[id] = true
            
}
            else
            {
                
cs_set_user_zoomidCS_RESET_ZOOM)
                
gZoom[id] = false
            
}
        }
        
    }
    return 
PLUGIN_CONTINUE;

Nyuszy is offline
Reply



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 11:56.


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