AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CSS] weapon_fire not good for pistols (https://forums.alliedmods.net/showthread.php?t=138332)

Mitchell 12-26-2011 13:10

Re: [CSS] weapon_fire not good for pistols
 
Yeah i was goi9ng to post back but i forgot, i just got the classname of that id and compared it to a string:

Code:

        new weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");
        new String:weaponname[32];
        GetEdictClassname(weapon, weaponname, 32);
        if(!StrEqual(weaponname, "weapon_glock"))
        {
//values
        }



All times are GMT -4. The time now is 18:16.

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