Raised This Month: $ Target: $400
 0% 

Trying to force attack for multiple seconds to simulate burst


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LukeyB
Member
Join Date: Dec 2011
Old 01-03-2012 , 02:51   Trying to force attack for multiple seconds to simulate burst
Reply With Quote #1

The idea is to only need to click the mouse button once for your gun to shoot for more than a second to get a burst effect. I would like it to only function for rifles except for the famas as this has a burst funtion already. Any thoughts?

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>
#include <fun>
#define XO_PLAYER 5 
#define m_afButtonPressed 246 
public plugin_init() 
{
 
register_plugin("inattack""1.0""LB")

public 
client_PostThink(id
{
 if( 
is_user_alive(id) && get_pdata_int(idm_afButtonPressedXO_PLAYER) & IN_ATTACK )
 {  
  
client_cmd(id"+attack") && set_task(0.2"-attack"id);
 }

LukeyB is offline
Old 01-03-2012, 21:25
LukeyB
This message has been deleted by LukeyB.
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 05:46.


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