Thread: [TF2] Set Class
View Single Post
Tylerst
Veteran Member
Join Date: Oct 2010
Old 10-26-2010 , 19:44   Re: TF2 Setclass
Reply With Quote #4

Quote:
Originally Posted by Thraka View Post
Use this to force a player to select a weapon after you regenerate them

new weapon = GetPlayerWeaponSlot(client, 1);
SetEntPropEnt(client, Prop_Send, "m_hActiveWeapon", weapon);
Thanks for that, Plugin updated.

Also, I used slot 0 for primary instead of 1 for secondary.
Tylerst is offline