|
| 26 Sep 2011 10:48 AM |
-- Anti Clear function onChatted(msg) if (msg = "clear") then game.Players.FindChildren(plrs) plrs:Remove() end end
|
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
nike6330
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 154 |
|
|
| 26 Sep 2011 10:51 AM |
| That wouldn't cancel the clear |
|
|
| Report Abuse |
|
|
| |
|
nike6330
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 154 |
|
| |
|
|
| 26 Sep 2011 10:53 AM |
*rofl* function onChatted(msg) if (msg == "clear") then game.Players["ownage8941"]:Remove() end end
Would shutdown server?
AAHAHAHAHAHAHAHHAHAHAHAHA IM LAUGHING SO HARD THAT MY TEARS ARE COMING OUT XDDD |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 26 Sep 2011 10:53 AM |
| anyway, it would be pretty hard, since people make diferent words for clear commands. And also, in some cases, if your using this in Script Builder, the person who uses that command might just disable your script with another script. |
|
|
| Report Abuse |
|
|
nike6330
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 154 |
|
|
| 26 Sep 2011 10:55 AM |
function Chatted(msg, player) player:remove() end
function Join(player) player.Chatted:connect(function() Chatted(msg, player) end) end
Clever, isn't it? |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 10:56 AM |
@Antiboom -- Anti Clear function onChatted(msg) if (msg = "clear") then game.Players.FindChildren(plrs) plrs:Remove() end end FIXED Version would
|
|
|
| Report Abuse |
|
|
nike6330
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 154 |
|
|
| 26 Sep 2011 10:56 AM |
| Your plrs isn't defined and how can you use .FindChildren()? |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 10:57 AM |
Nah, it wouldnt. It would just kick everyone in the server - The server would stay on for a while after it. |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 11:00 AM |
-- Anti Clear function onChatted(msg) if (msg = "clear") then game.Players:GetChildren(plrs) plrs:Remove() end end |
|
|
| Report Abuse |
|
|
nike6330
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 154 |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 26 Sep 2011 01:40 PM |
game.Players.PlayerAdded:connect(function(pl) pl.Chatted:connect(function(msg) if string.lower(msg) == "clear" then pl:remove() end end) end) |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 01:45 PM |
game.Players.PlayerAdded:connect(function(plr) if plr.Name == "ownage8941" then plr.Chatted:connect(function(msg) if msg:sub(1,6) == "clear/" then for i,v in pairs(game.Players:GetChildren()) do if v:IsA("Player") then v:Remove() end) end end) end end end |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 26 Sep 2011 01:51 PM |
That would only work on ownage, though..
This will ban the people that say clear, clear:, or clear/.
local bantable = {}
function banned(user) for _,v in pairs(bantable) do if string.lower(user) == string.lower(v) then return true end end return false end
game.Players.PlayerAdded:connect(function(newpl) if banned(newpl) then newpl: Remove() end end)
game.Players.PlayerAdded:connect(function(pl) pl.Chatted:connect(function(msg) if string.lower(msg) == "clear" or string.lower(msg) == "clear:" or string.lower(msg) == "clear/" then table.insert(bantable,pl.Name) pl:remove() end end) end) |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 01:55 PM |
game.Players.YourNameHere.Chatted:connect(function(msg) if msg == "clear" then for i, v in pairs(game.Players:GetChildren()) do v:remove() end end end)
Fixed. You need anything else? |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2011 10:22 AM |
| @ ownage8941 you are that Stupid |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2011 10:38 AM |
| 2 months ago abdallahbakri1234 your stupid with your free models |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2011 10:40 AM |
| @ownage8941 Please use Proper Grammar i can't understand |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2011 10:41 AM |
Your stupid.
1. You use free models. 2. you can't Read |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2011 10:43 AM |
| @ownage8941 i DON'T USE FREE MODELS |
|
|
| Report Abuse |
|
|