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
»
Help with Pointshop [SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Help with Pointshop [SOLVED] (Read 2240 times)
0 Members and 1 Guest are viewing this topic.
Merlin
Newbie
Posts: 12
Karma: 0
Help with Pointshop [SOLVED]
«
on:
August 02, 2018, 04:50:35 PM »
Alright, so changing the code ply:IsSuperAdmin just breaks things or maybe I didn't use the correct function, dunno, but maybe somebody knows how to configure the admin tab to only open for ONE ULX Group (That being Owner in my case)
I've tried using one player function I found somewhere using ULX for one group, forgot what the whole function was though.
The only reference I could find of ply:IsSuperAdmin is 5 in the sv_init.lua file that comes within the original Pointshop V1 addon. (ply:IsSuperAdmin) is the function i'm trying to change.
Here's a pastebin link of the whole sv_init.lua file:
https://pastebin.com/wrGg970g
«
Last Edit: August 02, 2018, 07:08:35 PM by Merlin
»
Logged
MrPresident
Ulysses Team Member
Hero Member
Posts: 2728
Karma: 430
Re: Help with Pointshop
«
Reply #1 on:
August 02, 2018, 06:11:52 PM »
http://wiki.garrysmod.com/page/Player/IsUserGroup
ply:IsUserGroup("owner")
Logged
Merlin
Newbie
Posts: 12
Karma: 0
Re: Help with Pointshop
«
Reply #2 on:
August 02, 2018, 07:06:52 PM »
Oh my god, thank you so much, i've been looking for this answer for who knows how long.
It worked perfectly. I'm no developer but that should've been way easier for me to figure out on my own, guess i'm just not that smart.
Logged
JamminR
Ulysses Team Member
Hero Member
Posts: 8096
Karma: 390
Sertafide Ulysses Jenius
Re: Help with Pointshop
«
Reply #3 on:
August 02, 2018, 10:08:21 PM »
Quote from: Merlin on August 02, 2018, 07:06:52 PM
guess i'm just not that smart.
Intelligence isn't a good comparison for experience.
(you're likely Smart, we just have too many years of Gmod Lua in our veins)
Logged
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming
MrPresident
Ulysses Team Member
Hero Member
Posts: 2728
Karma: 430
Re: Help with Pointshop [SOLVED]
«
Reply #4 on:
August 03, 2018, 06:42:32 AM »
lol.. it's true.. also acquaint yourself with the official wiki. It's pretty easy to use and has tons of info on it.
Personally, I've been doing gmod coding for well over 10 years, so don't worry too much about it.
We all start somewhere.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Ulysses
»
General
»
Developers Corner
»
Help with Pointshop [SOLVED]