General > Developers Corner
New weapon changing group
(1/1)
machond:
Hi,
i want write a custom weapon, buy i dont know how do a part of code about adding ply to group when use a weapon.
JamminR:
SWEP:PrimaryAttack
Inside your swep primary (and/or SWEP:SecondaryAttack), do your group change.
If making it compatible without requiring ULib, you can use Player:SetUserGroup, and if you have ULib installed, it will see the player group changed and adjust accordingly.
Navigation
[0] Message Index
Go to full version