|
| 02 Jul 2014 06:42 PM |
Some confusion in my past post about this topic.
So, I asked for a way to check if a player is a roblox admin. I meant "is there a way to check if the player has the admin badge?"
As a scripter, I look for simpler ways to do things. Therefore, I was looking for a way to check if a player had the admin badge, instead of making a table with the names of the admins.
At first, I thought MembershipType would work, but there is no Enum for Roblox Admins. So, I was wondering if there was another way. |
|
|
| Report Abuse |
|
|
| |
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 08 Jul 2014 09:19 PM |
| Try using PlayerOwnsAsset and getting the ID of the admin badge. |
|
|
| Report Abuse |
|
|
| |
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 08 Jul 2014 09:20 PM |
| Go to the page of any admin go into their badges, and click it, then look at the URL to find the ID. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 09:21 PM |
| There is no URL for the badge |
|
|
| Report Abuse |
|
|
| |
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 08 Jul 2014 09:24 PM |
| Ah, true. Not sure then hinestly. |
|
|
| Report Abuse |
|
|
| |
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 08 Jul 2014 10:01 PM |
| I don't think that's something you can do at all, if ever. Just make a table -.- |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 10:04 PM |
But I'm too lazy to :o
Nah, jk.
I did that, I'm just looking for a more efficient way of checking if a player is an admin. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 10:41 PM |
https://github.com/RobloxLabs/internal-code/blob/master/core-scripts/PlayerList-48488235.lua
This is the PlayerList core script source. It has a table of all admins.
|
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 11:09 PM |
| Is there a simpler way than inserting every single roblox admin's name? |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 11:54 PM |
| If ROBLOX had to make a table, there probably isn't. Just use the table I have you. |
|
|
| Report Abuse |
|
|