Raised This Month: $ Target: $400
 0% 

ZooM Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Menethil
Senior Member
Join Date: Aug 2011
Old 12-10-2011 , 10:43   ZooM Help
Reply With Quote #1

i have this
PHP Code:
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)
        {
            
cs_set_user_zoomidCS_SET_AUGSG552_ZOOM)
        }
        
    }
    return 
PLUGIN_CONTINUE;

How do i modifiy , when i click 2 ( IN_ATTACK2) pressed to set / remove zoom ?
This is just setting, so i need to remove it on next click2
Menethil is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 12-11-2011 , 04:59   Re: ZooM Help
Reply With Quote #2

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
Menethil
Senior Member
Join Date: Aug 2011
Old 12-11-2011 , 05:14   Re: ZooM Help
Reply With Quote #3

Seems not working this way.
I've tested and nothing happens , my logical is down
Menethil is offline
Menethil
Senior Member
Join Date: Aug 2011
Old 12-14-2011 , 13:24   Re: ZooM Help
Reply With Quote #4

bump, anyone ?
Menethil is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-14-2011 , 13:33   Re: ZooM Help
Reply With Quote #5

Did you search for zoom? there are a lot of scripts that may help you.

http://forums.alliedmods.net/showthr...highlight=zoom
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Menethil
Senior Member
Join Date: Aug 2011
Old 12-14-2011 , 13:44   Re: ZooM Help
Reply With Quote #6

damn, because of the undetailed titles i could find what i needed. Still nothing for CurWeapon .
I need just for 1 specific weapon not for all, no reloading, no nothing. only zoom/unzoom.

Last edited by Menethil; 12-14-2011 at 13:56.
Menethil is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-14-2011 , 14:23   Re: ZooM Help
Reply With Quote #7

Idk if this will help, but this is zoom related and weapon specific.

http://forums.alliedmods.net/showthr...block+awp+zoom

Edit:

Also this one:
http://forums.alliedmods.net/showthr...ght=block+zoom
__________________

Last edited by joshknifer; 12-14-2011 at 14:26.
joshknifer is offline
Send a message via Skype™ to joshknifer
Menethil
Senior Member
Join Date: Aug 2011
Old 12-14-2011 , 15:04   Re: ZooM Help
Reply With Quote #8

This two just u posted, are for blocking secondaryattack/attack2/click2 , nothing related for setting 2 functions ( zoom/unzoom ) on same button.
Menethil is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-14-2011 , 17:03   Re: ZooM Help
Reply With Quote #9

I dont understand what you are looking for then. In CS, zoom is secondary attack to zoom in, secondary attack to double zoom, and then secondary attack to unzoom. What are you trying to do/Why? Be more specific.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-14-2011 , 18:42   Re: ZooM Help
Reply With Quote #10

Quote:
Originally Posted by joshknifer View Post
I dont understand what you are looking for then. In CS, zoom is secondary attack to zoom in, secondary attack to double zoom, and then secondary attack to unzoom. What are you trying to do/Why? Be more specific.
He wants to block only the double zoom.

@OP:
I'll see what i can do.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply


Thread Tools
Display Modes

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