Author
|
Message
|
Veteran Member
|
09-14-2010
, 05:34
[Help] Zoom
|
#1
|
Hi guys
I have one problem. Somehow I do not know how to do
PHP Code:
public fw_CmdStart( id, uc_handle, seed ) { if( !is_user_alive( id ) ) return PLUGIN_HANDLED if( ( get_uc( uc_handle, UC_Buttons ) & IN_USE ) && !( pev( id, pev_oldbuttons ) & IN_USE ) ) { new szClip, szAmmo new szWeapID = get_user_weapon( id, szClip, szAmmo ) if( szWeapID == CSW_M4A1 && g_HasM16[id] == true && !g_WepZoom[id] == true) { g_WepZoom[id] = true cs_set_user_zoom( id, CS_SET_AUGSG552_ZOOM, 0 ) emit_sound( id, CHAN_ITEM, "weapons/zoom.wav", 0.20, 2.40, 0, 100 ) } else if ( szWeapID == CSW_M4A1 && g_M16[id] == true && g_WepZoom[id]) { g_WepZoom[ id ] = false cs_set_user_zoom( id, CS_RESET_ZOOM, 0 ) } } return PLUGIN_HANDLED }
How can I make both, If you choose another weapon Then Zoom disappears
Help Plz...
|
|
|
|