|
| 08 Mar 2013 05:23 PM |
Is it possible to have one admin index with all the admin's names, For 2 different admin scripts?
Thanks! [[Owner of R.R.C (1200+ Members)]] |
|
|
| Report Abuse |
|
|
| |
|
Levidoo6
|
  |
| Joined: 22 Aug 2009 |
| Total Posts: 1526 |
|
| |
|
|
| 08 Mar 2013 06:23 PM |
Umm... I have NO idea what a global table is... First time I've ever heard of it, Lol.
Anyone got an example of how one works? Or an actual one itself.
Thanks! [[Owner of R.R.C (1200+ Members)]] |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 12:11 AM |
BUMP?
Thanks! [[Owner of R.R.C (1200+ Members)]] |
|
|
| Report Abuse |
|
|
micke3212
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 3000 |
|
| |
|
| |
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 09 Mar 2013 12:18 AM |
@micke, wat?
in one normal script:
_G.admins = {"Usering","CeaselessSoul"}
in another normal script:
for i,v in pairs(_G.admins) do print(i .. ": " .. v) end
1: Usering 2: CeaselessSoul
~ Failure is the road to success ~ |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 01:28 AM |
Still don't really get it?
Where do you put the name of all the scripts in?
Thanks! [[Owner of R.R.C (1200+ Members)]] |
|
|
| Report Abuse |
|
|
koen500
|
  |
| Joined: 23 Feb 2011 |
| Total Posts: 2277 |
|
|
| 09 Mar 2013 02:55 AM |
| Global Table: _G.GlobalAdminTable = {"koen500", "noob"} |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 05:20 AM |
That's the name of the Admins?
I mean the name of the admin scripts? So it can determine what scripts.
Thanks! [[Owner of R.R.C (1200+ Members)]] |
|
|
| Report Abuse |
|
|
| |
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 09 Mar 2013 07:49 AM |
That won't work in local scripts.
Model in Lighting with StringValues with their names set as the admin names?
local mod = game.Lighting.Admins
function IsAdmin(name) return mod:FindFirstChild(name) ~= nil end |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 08:48 AM |
| Make a boolvalue for the admin, and insert it into their player. Then it can be accessed anywhere. |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2013 08:50 AM |
Something like...
if (checkOkToLetIn(newPlayer.Name, banned)) then newPlayer:remove() return end local admin = Instance.new("BoolValue") admin.Name = "Admin" admin.Value = false admin.Parent = newPlayer
if (checkOkToLetIn(newPlayer.Name, admins)==true) then newPlayer.Admin.Value = true save(player, "Boolean", "Admin", player.Admin.Value) end
idk something like this
CheckOKToLetIn is referencing the admins |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2013 08:17 AM |
Ohh, But where do you add it? This is so confusing for me... Sorry.
Thanks! [[Owner of R.R.C (1200+ Members)]] |
|
|
| Report Abuse |
|
|