Ulysses
Home
Help
Ulysses
»
General
»
Developers Corner
»
New weapon changing group
« previous next »
Print
Pages: [
1
]
Go Down
Author
Topic: New weapon changing group (Read 4419 times)
0 Members and 1 Guest are viewing this topic.
machond
Newbie
Posts: 5
Karma: 0
New weapon changing group
«
on:
December 11, 2016, 09:25:06 am »
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.
Logged
JamminR
Ulysses Team Member
Hero Member
Posts: 8096
Karma: 390
Sertafide Ulysses Jenius
Re: New weapon changing group
«
Reply #1 on:
December 11, 2016, 10:08:51 am »
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.
Logged
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming
Print
Pages: [
1
]
Go Up
« previous next »
Ulysses
»
General
»
Developers Corner
»
New weapon changing group