Raised This Month: $ Target: $400
 0% 

[TF2] Trying to make the client to be forced to use weapon slot number 2.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
StormishJustice
Member
Join Date: May 2015
Location: In a mysterious place.
Old 07-26-2015 , 07:38   Re: [TF2] Trying to make the client to be forced to use weapon slot number 2.
Reply With Quote #5

Quote:
Originally Posted by Requiesta View Post
First, get the melee weapon on the player:

Code:
new iWeapon = GetPlayerWeaponSlot(iClient, 2);

Then force the player to switch to it:

Code:
EquipPlayerWeapon(iClient, iWeapon);
Obviously throw in some validation checks to make sure the plugin doesn't explode.
This one helped.

thank you.
__________________
StormishJustice is offline
Send a message via AIM to StormishJustice Send a message via Yahoo to StormishJustice Send a message via Skype™ to StormishJustice
 



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:11.


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