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

tf2 remove specific hat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Johnoclock
Member
Join Date: Oct 2014
Location: denmark
Old 08-24-2015 , 11:56   tf2 remove specific hat
Reply With Quote #1

hey i want a plugin for remove hat like the gibus



can any of you guys help my out here

Last edited by Johnoclock; 08-24-2015 at 11:57.
Johnoclock is offline
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 08-24-2015 , 16:50   Re: tf2 remove specific hat
Reply With Quote #2

Remember to define GIBUSINDEX as gibus hat index

new hat = -1;
while((hat=FindEntityByClassname(hat, "tf_wearable"))!=INVALID_ENT_REFERENCE)
{
if(GetEntProp(hat, Prop_Send, "m_iItemDefinitionIndex") == GIBUSINDEX) //check hat index for a gibus
{
AcceptEntityInput(hat,"Kill");//kill gibus
}
__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player

Last edited by Michalplyoutube; 08-24-2015 at 16:51.
Michalplyoutube 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 16:30.


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