Raised This Month: $ Target: $400
 0% 

[TF2] Fashion (v1.3 04Mar2023)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
StrikeR14
AlliedModders Donor
Join Date: Apr 2016
Location: Behind my PC
Old 12-22-2020 , 11:23   Re: [TF2] Fashion (v1.0 21Dec2020)
Reply With Quote #3

Nice releases, as always!

Suggestion: Instead of worrying about updating your gamedata, you can use

PHP Code:
GameData hTF2 = new GameData("sm-tf2.games"); // sourcemod's tf2 gamdata

if (!hTF2)
    
SetFailState("This plugin is designed for a TF2 dedicated server only.");

StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetVirtual(hTF2.GetOffset("RemoveWearable") - 1);    // EquipWearable offset is always behind RemoveWearable, subtract its value by 1
PrepSDKCall_AddParameter(SDKType_CBaseEntitySDKPass_Pointer);
g_hEquipWearable EndPrepSDKCall();

if (!
g_hEquipWearable)
    
SetFailState("Failed to create call: CBasePlayer::EquipWearable");

delete hTF2
__________________
Currently taking TF2/CSGO paid private requests!

My Plugins | My Discord Account

Last edited by StrikeR14; 12-22-2020 at 11:26.
StrikeR14 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 21:04.


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