August 23, 2017, 09:58:27 AM

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

Offline specdo

  • Level 0 Beginner
  • Posts: 18
  • <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: 738
  • Country: dk
  • If you LIKE WC:S, then you will LOVE our 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.
Join together in the making of the final version of WCS

For more info about the project, take a look at:
http://warcraft-source.com/board/index.php?topic=17083.msg120498;topicseen#new

Offline specdo

  • Level 0 Beginner
  • Posts: 18
  • <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: 731
  • 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 0 Beginner
  • Posts: 18
  • <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 :)