View Single Post
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-14-2015 , 06:17   Re: Knife Kill Bonus
Reply With Quote #2

im at uni now. but a good way to update a client speed is using ham.
Check if user has a knife as current weapon then do your stuff

PHP Code:
new Ham:Ham_Player_ResetMaxSpeed Ham_Item_PreFrame;

RegisterHamHam_Player_ResetMaxSpeed"player""bacon_ResetMaxSpeed");

public 
bacon_ResetMaxSpeedid )
{
    if( 
is_user_aliveid ) )
    {
        
        new 
Float:flMaxSpeed your speed;
        
        
engfuncEngFunc_SetClientMaxspeedidflMaxSpeed );
        
set_pevidpev_maxspeedflMaxSpeed );
    }

__________________

Last edited by tuty; 12-14-2015 at 06:18.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty