Ulysses
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Ulysses
»
General
»
Developers Corner
»
Dont Know how to add more than 1 ulx group to a job
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Dont Know how to add more than 1 ulx group to a job (Read 1488 times)
0 Members and 1 Guest are viewing this topic.
thedep
Newbie
Posts: 2
Karma: 0
Dont Know how to add more than 1 ulx group to a job
«
on:
January 11, 2016, 06:11:59 PM »
Today i was making donator jobs and i wanted to add ulx groups to a certain job but it wouldnt let me it would only work if there was 1 group such as customCheck = function(ply) return ply:GetNWString("usergroup") == "bronze" end
but how do i ad more ulx groups to the job ?
Logged
JamminR
Ulysses Team Member
Hero Member
Posts: 8096
Karma: 390
Sertafide Ulysses Jenius
Re: Dont Know how to add more than 1 ulx group to a job
«
Reply #1 on:
January 11, 2016, 06:53:38 PM »
Lua. "or"
Scripting logic comparators, common in millions of scripting languages.
function(ply) return ply:GetNWString("usergroup") == "bronze" or ply:GetNWString("usergroup") == "some_other_group" end
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
»
Dont Know how to add more than 1 ulx group to a job