|
I need a little help how would I setup it so if I player is a certain rank in a group, He gets admin? I know how to use table.insert and all of that. I just need to know how I would use the ranking part. |
|
SwoofJoin Date: 2010-03-13 Post Count: 16146 |
game.Players.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(groupid) == 255 then
-- do something
end |
|
|
Reference the player first then:
if player:IsInGroup(groupid) then
if player:GetRankInGroup(groupid) = (number of rank) then
(blah blah) |
|
DelonesJoin Date: 2010-07-19 Post Count: 1703 |
Oh, hey Super. Long time no see, but like they said above me: :GetRankInGroup
Time is a tool you can put on a wall, or wear it on your rizd. |
|
|
So would this basicly work?
game:GetService("Players").PlayerAdded:connect(function(player)
if Player:GetRankInGroup(1043125) < 250 then
table.insert(admins,player.Name.."")
end
end)
(This is also for kohls admin..) |
|
DelonesJoin Date: 2010-07-19 Post Count: 1703 |
No, in the function you called it 'player', when you used the GetRankInGroup you had a capital P. It is case sensitive.
Time is a tool you can put on a wall, or wear it on your rizd. |
|
DelonesJoin Date: 2010-07-19 Post Count: 1703 |
But other than that, yes. It will work.
Time is a tool you can put on a wall, or wear it on your rizd. |
|
|
game:GetService("Players").PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(1043125) < 1 then
table.insert(admins,Player.Name.."")
end
end)
game:GetService("Players").PlayerRemoved:connect(function(Player)
if Player:GetRankInGroup(1043125) < 1 then
table.remove(admins,Player.Name)
end
end)
Tried this and it does nothing I don't get any admin. |
|
SwoofJoin Date: 2010-03-13 Post Count: 16146 |
wat r u even doing |
|
|
game:GetService("Players").PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(1043125) > 254 then
table.insert(admins,Player.Name.."")
end
end)
game:GetService("Players").PlayerRemoved:connect(function(Player)
if Player:GetRankInGroup(1043125) > 254 then
table.remove(admins,Player.Name)
end
end)
I have no idea what u were doing otherwise...
u insert them into admins if they are A GUEST? |
|