Raised This Month: $ Target: $400
 0% 

how checking hat slot ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eminemxw88
Senior Member
Join Date: Dec 2009
Old 03-20-2014 , 11:24   how checking hat slot ?
Reply With Quote #1

PHP Code:
public Action:TF2Items_OnGiveNamedItem(clientString:classname[], iItemDefinitionIndex, &Handle:hItem)
  
decl String:strItemSlot[16];
  
TF2II_GetItemSlotName(iItemDefinitionIndexstrItemSlotsizeof(strItemSlot));
  if(
StrEqual(strItemSlot"head"false))
  {
   if(
TF2_GetPlayerClass(client) == TFClass_Spy)
   {
    new 
Handle:hItemOverride PrepareItemHandle(__1005"160 ; 1");
    if (
hItemOverride != INVALID_HANDLE)
    {
     
hItem hItemOverride;
     return 
Plugin_Changed;
    }   
   }
  } 
but it CloseHandle.some one help!!!
eminemxw88 is offline
Send a message via MSN to eminemxw88
 



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 21:29.


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