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-02-2017 , 07:49   Re: [REQ] No scope, no shoot
Reply With Quote #7

Code:
#include < amxmodx > #include < cstrike > #include < hamsandwich > #include < fakemeta > new const VALID_WEAPONS[ ][ ] = {     "weapon_awp",     "weapon_scout",     "weapon_g3sg1",     "weapon_sg550" } const m_flNextPrimaryAttack = 46 const EXTRAOFFSET_WEAPON = 4 public plugin_init( ) {     register_plugin( "Block Shoot Unless Scoped", "1.0", "DoNii" );     for ( new i; i < sizeof VALID_WEAPONS; i++ )     RegisterHam( Ham_Weapon_PrimaryAttack, VALID_WEAPONS[ i ], "fw_HamPrimaryAttack" ); } public fw_HamPrimaryAttack( ent ) {     if( pev_valid( ent ) != 2 )     return HAM_IGNORED;     new id = pev( ent, pev_owner );     new zoom = cs_get_user_zoom( id );         if( zoom == CS_RESET_ZOOM ) {         set_pdata_float( ent , m_flNextPrimaryAttack , 9999.0 , EXTRAOFFSET_WEAPON );         return HAM_SUPERCEDE;     }       return HAM_IGNORED; }
__________________

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


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