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

[CSS/CS:GO] Weapon Restrict


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
root88
Senior Member
Join Date: May 2016
Old 12-11-2018 , 03:16   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #11

Quote:
Originally Posted by Dr!fter View Post
No, you just don’t bother to read.
You were very helpful, thanks. So f****** helpful! If you refuse to support your plugin after updates I think it should be unapproved. Am I wrong?
Temp fix in case someone is using new items (tested only with breach charge):
in restrictinc/weapon-tracking.sp change CSWeaponID to:
PHP Code:
CSWeaponID GetWeaponIDFromEnt(int entity)
{
    if(!
IsValidEdict(entity))
        return 
CSWeapon_NONE;
    
    
char classname[64]; 
    
GetEntityClassname(entityclassnamesizeof classname); 
    if(
StrEqual(classname"weapon_melee") || StrEqual(classname"weapon_breachcharge") || StrEqual(classname"weapon_axe") || StrEqual(classname"weapon_hammer") || StrEqual(classname"weapon_spanner") || StrEqual(classname"weapons_fists"))
    {
        return 
CSWeapon_NONE;
    }
    
    
int index hWeaponTracker.FindValue(entityTracker_EntityIndex);
    
    if(
index != -1)
    {
        return 
hWeaponTracker.Get(indexTracker_WeaponIDIndex);
    }
    
    return 
CSWeapon_NONE;

__________________
root88 is offline
 



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 19:55.


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