December 14, 2017, 09:34:46 PM

Author Topic: How do you make a WCSadmin race ONLY!  (Read 492 times)

Offline specdo

  • Level 1 Trained Beginner
  • *
  • Posts: 20
  • <3 WCS :)
How do you make a WCSadmin race ONLY!
« on: June 13, 2017, 11:46:24 PM »
Hey, im making some races and wanna try them for my self so would like too make them only for wcsadmins?
anyone know..
Fast help would be awesome! im in middel of the race rn.

Offline Manifest

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 760
  • Country: dk
  • Working on a new server
Re: How do you make a WCSadmin race ONLY!
« Reply #1 on: June 14, 2017, 08:26:33 PM »
I might be wrong on this one, but as far as I am concerned the allow only does not support a wcsadmin group, but only allow you to use steamIDs.

So in order to reach the result you are asking for here, then you would have to list the SteamIDs of the admins who are WCS admins on your server.
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."

Offline specdo

  • Level 1 Trained Beginner
  • *
  • Posts: 20
  • <3 WCS :)
Re: How do you make a WCSadmin race ONLY!
« Reply #2 on: June 14, 2017, 08:31:01 PM »
I have seen on wcs server it says (wcsadmin) insted of (private race)

Offline Kami

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 719
  • Country: de
  • Pokemon Master!
Re: How do you make a WCSadmin race ONLY!
« Reply #3 on: June 15, 2017, 10:27:31 AM »
Code: [Select]
if (len(admins) and not admins[0]) or (es.getplayersteamid(userid) in admins) or ('ADMINS' in admins and es.getplayersteamid(userid) in wcs.wcs.admin.admins):
This line suggests that the keyword you are looking for is "ADMINS" :)

Offline specdo

  • Level 1 Trained Beginner
  • *
  • Posts: 20
  • <3 WCS :)
Re: How do you make a WCSadmin race ONLY!
« Reply #4 on: June 21, 2017, 04:07:12 AM »
Code: [Select]
if (len(admins) and not admins[0]) or (es.getplayersteamid(userid) in admins) or ('ADMINS' in admins and es.getplayersteamid(userid) in wcs.wcs.admin.admins):
This line suggests that the keyword you are looking for is "ADMINS" :)

Thanks alot m8 :)