|
| 01 Jan 2012 09:41 AM |
I found this on the ROBLOX wiki. But was told it wouldn't work. What i'm looking for is a scritp that is NOT case sensitive, BUT does NOT accept shortened names. This is what I have.
local isAdmin = {["OBF"] = true, ["ArceusInator"] = true, ["amanda12895"] = true}function findPlayer(name) for _, player in pairs(game.Players:GetPlayers()) do if player.Name:lower() == name:lower() then return player end end return nilendfunction onChatted(message, player) if message:sub(1, 5) == "kill/" and isAdmin[player.Name] then victim = findPlayer(message:sub(6)) if victim ~= nil then victim.Character:BreakJoints() end endendgame.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) onChatted(message, player) end)end) |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 09:42 AM |
Fix on the script:
local isAdmin = {["OBF"] = true, ["ArceusInator"] = true, ["amanda12895"] = true}
function findPlayer(name) for _, player in pairs(game.Players:GetPlayers()) do if player.Name:lower() == name:lower() then return player end end return nil end
function onChatted(message, player) if message:sub(1, 5) == "kill/" and isAdmin[player.Name] then victim = findPlayer(message:sub(6)) if victim ~= nil then victim.Character:BreakJoints() end end end
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) onChatted(message, player) end) end) |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 10:24 AM |
You shouldn't use Free Models =/
~Myrco; Music lover, nederlands/dutch and a programmer |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 10:25 AM |
| Myrco, we encourage using the Wiki though... |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 10:26 AM |
The wiki is there to show an example and point you into a good direction. It is not like 'Uh lulz y u no copeh mah source?'.
~Myrco; Music lover, nederlands/dutch and a programmer |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:17 AM |
@Mycro
Thanks for helping me bro. But, I got this from the frickin Wiki. Google: How to make admin commands for ROBLOX, and like the first link is one ot the roblox wiki. So don't go ahead and acuse me of free modeling. Now, anyon want to help me? |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:23 AM |
Oops, my senses are feeling upcoming anger from a noob....
~Myrco; Music lover, nederlands/dutch and a programmer |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:29 AM |
@Mycro.
I'm definitely not a noob. If you would like to go and be immature, go RIGHT ahead. Just stay of my thread, or help me. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:32 AM |
For your information builderman, Mycro wrote parts of the wiki. That's enough to prove you wrong since this came from the wiki.
And just saying. That script is gonna be absolute hell to try and add onto. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:35 AM |
-_-
You guy's are completely useless. I miss 2010, everyone was so nice and straight to the point. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:37 AM |
I miss 2008 when I had my old account. Back then, people actually tried to do something before asking for 'help'.
Whew, that CTRL + C and CTRL + V took forever, eh? |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:41 AM |
| Dark, I had an account in '08 too. But now these day's there are so many NEW people trying to just get on with their stupid game. I did try to edit this. And tried to make my own. Didn't work though. So, i then came for help. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 11:42 AM |
| I just realized. You didn't even put your name in the script. How in the bloody hell do you plan to test that. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 12:15 PM |
| Me and this other guy named xsitsu were talking about it and he was saying there was some error's and what not, we never tested it though. His edited version worked, but I could never get more commands in. It's a long story. |
|
|
| Report Abuse |
|
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 01 Jan 2012 12:36 PM |
| Me and my friend made completely original admin commands, yet, it is so much more efficient and organized than this one and Person299's one. |
|
|
| Report Abuse |
|
|