Raised This Month: $ Target: $400
 0% 

Solved [TF2] Remove all weapons from player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
caxanga334
Member
Join Date: Nov 2013
Location: Brazil
Old 05-12-2019 , 21:09   [TF2] Remove all weapons from player
Reply With Quote #1

I'm trying to remove all weapons from players but weapons with wearable are not being removed (for example: The Chargin' Targe, Darwin's Danger Shield).

This is the code I'm using.

Spoiler


Solution
PHP Code:
int iPrimaryiSecondary;
iPrimary TF2_GetPlayerLoadoutSlot(iClientTF2LoadoutSlot_Primarytrue);
if(
iPrimary != -1)
{
    
TF2_RemovePlayerWearable(iClientiPrimary);
}
iSecondary TF2_GetPlayerLoadoutSlot(iClientTF2LoadoutSlot_Secondarytrue);
if(
iSecondary != -1)
{
    
TF2_RemovePlayerWearable(iClientiSecondary);


Last edited by caxanga334; 05-14-2019 at 14:07. Reason: solved
caxanga334 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 03:49.


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