Raised This Month: $ Target: $400
 0% 

Zoom


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AwesomeMan
Member
Join Date: Jun 2013
Old 07-25-2013 , 12:03   Re: Zoom
Reply With Quote #3

Quote:
Originally Posted by Bos93 View Post
PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >
#tryinclude < cstrike_pdatas > 

#if !defined _cbaseentity_included 
        #assert Cstrike Pdatas and Offsets library required! Read the below instructions:   \ 
                
1. Download it at forums.alliedmods.net/showpost.php?p=1712101#post1712101   \ 
                
2. Put it into amxmodx/scripting/include/ folder   
                
3. Compile this plugin locallydetailswiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29   
                
4. Install compiled plugindetailswiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing 
#endif 

#define PLUGIN_NAME "New-Plugin"
#define PLUGIN_VERSION "0.0.0.1"
#define PLUGIN_AUTHOR "Andrei"

public plugin_init( ) 
{
    
register_plugin
    

        
PLUGIN_NAME
        
PLUGIN_VERSION
        
PLUGIN_AUTHOR 
    
);
    
    
register_forwardFM_CmdStart"Forward__CmdStart_Post", ._post true );
    
    
RegisterHamHam_Item_Holster"weapon_ak47""CBasePlayerItem__Holster_Pre", .Post false );
}

public 
Forward__CmdStart_PostpPlayerUcCmdiRandomSeed )
{
    if( !
is_user_alivepPlayer ) || get_user_weaponpPlayer ) != CSW_AK47 )
        return 
FMRES_IGNORED;
    if( ~
get_pdata_intpPlayerm_afButtonPressedXO_CBASEPLAYER ) & IN_ATTACK2 )
        return 
FMRES_IGNORED;
    
    new 
pEntity get_pdata_cbasepPlayerm_pActiveItemXO_CBASEPLAYER );
    
    if( 
get_pdata_floatpEntitym_flNextSecondaryAttackXO_CBASEPLAYERITEM ) > 0.0 )
        return 
FMRES_IGNORED;
    if( 
get_pdata_floatpPlayerm_flNextAttackXO_CBASEMONSTER ) > 0.0 )
        return 
FMRES_IGNORED;
        
    
set_pdata_floatpEntitym_flNextSecondaryAttack0.3XO_CBASEPLAYERITEM );
    
    
CBasePlayerItem__Holster_PrepEntity )
    
    return 
FMRES_IGNORED;
}

public 
CBasePlayerItem__Holster_PrepEntity )
{
    new 
pPlayer get_pdata_cbasepEntitym_pPlayerXO_CBASEPLAYERITEM );
    new 
iFOV get_pdata_intpPlayerm_iFOVXO_CBASEPLAYER ) == 90 55 90;
    
    
set_pdata_intpPlayerm_iFOViFOV );

Cheers
Works great, thank you =D
AwesomeMan 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 06:20.


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