View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-26-2012 , 02:04   Re: [TF2] Changing a weapon with TF2 items.
Reply With Quote #11

Quote:
Originally Posted by Leonardo View Post
PHP Code:
public Action:TF2Items_OnGiveNamedItemiClientString:strClassname[], iItemDefinitionIndex, &Handle:hItem )
{
    if( 
StrContainsstrClassname"tf_wearable"false ) == )
    {
        return 
Plugin_Handled;
    }
    return 
Plugin_Continue;

That'd also block hats and misc items.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline