Thread: Disable rafal
View Single Post
Kriax
Senior Member
Join Date: Apr 2012
Old 08-25-2013 , 09:05   Re: Disable rafal
Reply With Quote #2

Solved :

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
    new 
WeaponIndex GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
    
decl String:sWeapon[30];
    
GetEdictClassname(WeaponIndexsWeaponsizeof(sWeapon));
    
    if(
IsClientInGame(client))
    {
        if(
StrEqual(sWeapon"weapon_glock"))
        {
            if (
buttons IN_ATTACK2)
            {
                
buttons &= ~IN_ATTACK2;
            }
        }
    }

Kriax is offline