Raised This Month: $ Target: $400
 0% 

force famas bustfire


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-20-2010 , 16:49   Re: force famas bustfire
Reply With Quote #3

Try this :

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define VERSION "0.0.1"
#define PLUGIN "Force Famas BurstFire"

#define XO_WEAPON                4
#define m_pPlayer                41
#define m_flNextSecondaryAttack    47
#define m_fWeaponState            74

const WEAPONSTATE_FAMAS_BURST_MODE  = ( << )

#define get_weapon_owner(%0) get_pdata_cbase(%0, m_pPlayer, XO_WEAPON)
#define set_weapon_nextsecondaryattack(%0,%1)    set_pdata_float(%0, m_flNextSecondaryAttack, %1, XO_WEAPON)
#define set_famas_burst(%0) set_pdata_int(%0, m_fWeaponState, WEAPONSTATE_FAMAS_BURST_MODE, XO_WEAPON)

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
RegisterHam(Ham_Spawn"weapon_famas""CFamas_Spawn_Post"1)
    
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_famas""CFamas_SecondaryAttack"0)
}

public 
CFamas_Spawn_PostiWeapon )
{
    
set_famas_burstiWeapon )
}

public 
CFamas_SecondaryAttackiWeapon )
{
    new 
id get_weapon_owneriWeapon )
    
client_print(idprint_center"Only Burst Mode Is Allowed")
    
set_weapon_nextsecondaryattack(iWeaponget_gametime() + 0.3)
    return 
HAM_SUPERCEDE

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 11:14.


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