Raised This Month: $ Target: $400
 0% 

[REQ] No scope, no shoot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-03-2017 , 21:40   Re: [REQ] No scope, no shoot
Reply With Quote #20

Works, but after shooting while scoped, the user does not resume to being scoped. I personally like it this way.
PHP Code:

#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>

new const Version[] = "0.1";

const 
ScopeWeapons = ( ( << CSW_SCOUT ) | ( << CSW_AWP ) | ( << CSW_G3SG1 ) | ( << CSW_SG550 ) );

const 
m_flNextPrimaryAttack 46;
const 
m_pActiveItem 373;
const 
XO_Player 5;
const 
XO_Weapon 4;

public 
plugin_init()
{
    
register_plugin"No No-Scoping" Version "bugsy" );
    
    
register_event"CurWeapon" "CurWeapon" "be" "1=1" );
}

public 
CurWeaponid )
{
    if ( 
ScopeWeapons & ( << read_data) ) )
    {
        new 
iEntID get_pdata_cbaseid m_pActiveItem XO_Player );
        
set_pdata_floatiEntID m_flNextPrimaryAttack , ( cs_get_user_zoomid ) < CS_SET_FIRST_ZOOM ) ? get_gametime() + 0.02 0.0 XO_Weapon );
    }

__________________

Last edited by Bugsy; 03-03-2017 at 21:47.
Bugsy is online now
 



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 02:01.


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