generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Fix this? i never understood playeradded thing.

Previous Thread :: Next Thread 
mikael778 is not online. mikael778
Joined: 28 May 2010
Total Posts: 11
10 May 2014 06:58 PM
if OnEnterAdmin == True then
game.Players.PlayerAdded:connect(function(player)
table.Insert(tempadmins,player.Name)
end)

Thanks! ;D
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
10 May 2014 07:02 PM
wtf

admins = {noob1 = true, wazap = true, Shedletsky = nil}
tempadmins={}
game.Players.PlayerAdded:connect(function(player)
if admins[player.Name] then
table.Insert(tempadmins,player.Name)
end
end)
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 07:02 PM
tempadmins = {}

function isAdmin(name)
for _, v in pairs(tempadmins) do
if name == v then
return true
end
end
end

game.Players.PlayerAdded:connect(function(player)
if isAdmin(player.Name) then
--stuff
end
end)
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 07:03 PM
idk what you really asked, so.. :l
Report Abuse
mikael778 is not online. mikael778
Joined: 28 May 2010
Total Posts: 11
10 May 2014 07:03 PM
No no i meant like Free admin onentered
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 07:06 PM
game.Players.PlayerAdded:connect(fucntion(player)
if not admins[player.Name] then
table.insert(tempadmins,player.Name)
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image