Raised This Month: $ Target: $400
 0% 

How to fast reload & shoot ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-10-2011 , 15:09   How to fast reload & shoot ?
Reply With Quote #1

Title ?

I tried with:
PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < fakemeta >

#define m_fInReload 54
#define m_fAttack 83
#define m_Linux 4
//#define m_fInSpecialReload 55

#define MAX_PLAYERS 32

const NO_RELOAD = ( << ) | ( << CSW_KNIFE ) | ( << CSW_C4 ) | ( << CSW_M3 ) | ( << CSW_XM1014 ) | ( << CSW_HEGRENADE ) | ( << CSW_FLASHBANG ) | ( << CSW_SMOKEGRENADE )

new 
g_iHasMAX_PLAYERS+]

public 
plugin_init() 
{
    new 
szWeaponName20 ]
    for( new 
CSW_P228<= CSW_P90i++ ) 
    {
        if( 
NO_RELOAD & (1<<i) )
            continue
            
        
get_weaponnameiszWeaponNamecharsmaxszWeaponName ) )
        
RegisterHamHam_Weapon_ReloadszWeaponName"FwdHamWeaponReload" )
    }
    
    
register_clcmd"get""get" )
}

public 
getid )
{
    
g_iHasid ] = !g_iHasid ]
}

public 
FwdHamWeaponReload( const iWeapon 
{
    static 
id
    id 
peviWeaponpev_owner )
    
    if( 
id && g_iHasid ] && is_user_aliveid ) && get_pdata_intiWeaponm_fInReloadm_Linux ) ) 
    {
        
set_pdata_floatiWeaponm_fInReload0.0m_Linux )
        
set_pdata_floatiWeaponm_fAttack0.0m_Linux )
    }

Doesn't work on linux server.
dFF is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-10-2011 , 15:41   Re: How to fast reload & shoot ?
Reply With Quote #2

Set weapon entity offset 48 to 0.0
Also offset 54 is not float.
__________________

SonicSonedit is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-11-2011 , 03:12   Re: How to fast reload & shoot ?
Reply With Quote #3

Hook Reload POST, check if m_fInReload is 1, if so, set delays to the value you want.

http://forums.alliedmods.net/showpos...02&postcount=5
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-11-2011 , 06:01   Re: How to fast reload & shoot ?
Reply With Quote #4

Thanks guys!
dFF is offline
KleirPlays
Member
Join Date: Jun 2013
Location: Portugal
Old 12-28-2013 , 19:01   Re: How to fast reload & shoot ?
Reply With Quote #5

Its possible to change this plugin for vips only?

Like only vip players reload faster then no vip players.

VIP FLAG:
ADMIN_RESERVATION
KleirPlays is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-28-2013 , 20:03   Re: How to fast reload & shoot ?
Reply With Quote #6

That is an unfair advantage.
__________________

Last edited by fysiks; 12-29-2013 at 18:47.
fysiks is offline
KleirPlays
Member
Join Date: Jun 2013
Location: Portugal
Old 12-29-2013 , 06:12   Re: How to fast reload & shoot ?
Reply With Quote #7

Its not unfair, if u pay to be vip, u have some advantages.

I need to give them some advantagens if they pay..

Can someone help me?

Last edited by KleirPlays; 12-31-2013 at 17:47.
KleirPlays is offline
Reply



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 04:31.


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