Raised This Month: $51 Target: $400
 12% 

Disable rafal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kriax
Senior Member
Join Date: Apr 2012
Old 08-25-2013 , 08:08   Disable rafal
Reply With Quote #1

Hello,

I want to know how to disable rafal the glock that he be directly in semi-automatic.

Thank you.
Kriax.
Kriax is offline
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
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 23:43.


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