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