Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Scout FOV ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-22-2017 , 12:50   [ H3LP ] Scout FOV ?
Reply With Quote #1

Hello, I want to change the ROF of scout, it's working fine but if I shoot while zoom is activeted and then change to other weapon, the fov continue. I am using Arkshine code:

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> const m_pPlayer         = 41; const m_flPrimaryAttack = 46; const m_iFOV            = 363; const m_iClientFOV      = 364; new pCvarRof; public plugin_init () {     register_plugin( "Custom Scout ROF", "1.0.0" , "Arkshine" );     RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_scout", "CScout_PrimaryAttack", 1 );         pCvarRof = register_cvar( "scout_rof", "0.25" ); } public CScout_PrimaryAttack ( const Entity ) {     static Player;     Player = get_pdata_cbase( Entity, m_pPlayer );         set_pdata_int( Player, m_iClientFOV, get_pdata_int( Player, m_iFOV ) );     set_pdata_float( Entity, m_flPrimaryAttack, get_pcvar_float( pCvarRof ), 4 ); }
__________________









Last edited by CrazY.; 06-27-2017 at 12:25.
CrazY. 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 22:44.


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