|
| 25 Aug 2013 02:06 PM |
I want people in a certain group over the rank #13 to be able to use these commands, how do I do that? They are meant for Kohl's Admin, but I've edited them a bit. I want them to be separate from that.
if msg:lower():sub(1,5) == "mute " then -- custom command local plyer = GetPlr(plr, msg:lower():sub(6)) for i=1, #plyer do if plyer[i]:FindFirstChild("Muted") ~= nil then plyer[i].Muted.Value = true end end end
if msg:lower():sub(1,7) == "unmute " then -- custom command local plyer = GetPlr(plr, msg:lower():sub(8)) for i=1, #plyer do if plyer[i]:FindFirstChild("Muted") ~= nil then plyer[i].Muted.Value = false end end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Aug 2013 02:24 PM |
if Player:GetRankInGroup(ID) >= RANK NUMBER then --CODE end |
|
|
| Report Abuse |
|
|
Arkose
|
  |
| Joined: 26 May 2013 |
| Total Posts: 745 |
|
| |
|
Arkose
|
  |
| Joined: 26 May 2013 |
| Total Posts: 745 |
|
|
| 25 Aug 2013 02:32 PM |
if plr:GetRankInGroup(whatever) >= number then if msg:lower():sub(1,5) == "mute " then -- custom command local plyer = GetPlr(plr, msg:lower():sub(6)) for i=1, #plyer do if plyer[i]:FindFirstChild("Muted") ~= nil then plyer[i].Muted.Value = true end end end end
if plr:GetRankInGroup(whatever) >= number then if msg:lower():sub(1,7) == "unmute " then -- custom command local plyer = GetPlr(plr, msg:lower():sub(8)) for i=1, #plyer do if plyer[i]:FindFirstChild("Muted") ~= nil then plyer[i].Muted.Value = false end end end end |
|
|
| Report Abuse |
|
|