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

Changing a weapon with TF2 items.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 00:30.


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