Raised This Month: $ Target: $400
 0% 

change zoom mode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abē
Member
Join Date: Dec 2008
Old 12-29-2008 , 14:52   change zoom mode
Reply With Quote #1

hi there

im here since a week cause i want to customize my cs a little

the code is very hard to learn cause all these shorts and idīs

but i tried my luck and copy/paste of other codes together but it doesnt work correctly

this plugin should be able to activate and de-activate an other Zoom-Option for the weapon AWP with "awp_smoothzoom 0/1"

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "AWP Smooth Zoom"
#define VERSION "0.1"
#define AUTHOR "ab2"



public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("CurWeapon","awp_smoothzoom","be","1=1","2=18")
    
register_cvar("awp_smoothzoom""1")
}
   
public 
awp_smoothzoom(id)
{
    if(
is_user_alive(id) == 0)
        return 
PLUGIN_HANDLED
        
        
if(cs_get_user_zoom(id) == CS_SET_FIRST_ZOOM)
        
cs_set_user_zoom (id,CS_SET_AUGSG552_ZOOM,1)
        
        else(
cs_get_user_zoom(id) == CS_SET_NO_ZOOM)
        return 
PLUGIN_HANDLED 

But my problem is now
if i zoom with awp first time i get the "normal" zoom-view with the black corners and the big crosshair
after shooting 1 bullet and switching automaticly back to zoom-mode the black corners will leave but the big crosshair stays -_-

i want, that all the time there is no big crosshair and no black corners

is that possible?


greetings abē
__________________
+ Karma if helped! Thanks!
abē is offline
 


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 09:16.


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