Raised This Month: $ Target: $400
 0% 

[REQ] No scope, no shoot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-04-2017 , 04:10   Re: [REQ] No scope, no shoot
Reply With Quote #21

Quote:
Originally Posted by Bugsy View Post
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 );
    }

If bugsy doesn't use bits in his codes, is that even bugsy?
__________________

Last edited by edon1337; 03-04-2017 at 04:11.
edon1337 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 02:01.


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