Raised This Month: $275 Target: $400
 68% 

[CSGO]Plugin Knife Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lost_lgz
Member
Join Date: Sep 2011
Old 07-11-2018 , 09:41   [CSGO]Plugin Knife Speed
Reply With Quote #1

who has .....or can create . 1 plugin with knife speed?
i want to use for gungame
ty
__________________

Last edited by Lost_lgz; 07-20-2018 at 14:59.
Lost_lgz is offline
Send a message via Yahoo to Lost_lgz Send a message via Skype™ to Lost_lgz
LenHard
Senior Member
Join Date: Jan 2016
Old 07-21-2018 , 09:48   Re: [CSGO]Plugin Knife Speed
Reply With Quote #2

PHP Code:
#define SPEED 1.3

public Action OnPlayerRunCmd(int clientint &buttons)
{
    if (
IsPlayerAlive(client) && (buttons IN_ATTACK || buttons IN_ATTACK2))
    {
        
char[] sWeapon = new char[32];
        
GetClientWeapon(clientsWeapon32);
        
        if (
StrEqual(sWeapon"weapon_knife"))
        {
            
int iWeapon GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
            
SetEntPropFloat(iWeaponProp_Send"m_flNextPrimaryAttack"GetEntPropFloat(iWeaponProp_Send"m_flNextPrimaryAttack") - ((SPEED 1.0) / 2));
            
SetEntPropFloat(iWeaponProp_Send"m_flNextSecondaryAttack"GetEntPropFloat(iWeaponProp_Send"m_flNextSecondaryAttack") - ((SPEED 1.0) / 2));
        }
    }

Untested.
__________________


Currently accepting private requests.
LenHard is online now
Reply


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 01:38.


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