|
| 01 Mar 2014 01:03 PM |
how would i detect the name
like :ban mag
how would i detect mag for my WHOLE name? |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
| |
|
|
| 01 Mar 2014 01:06 PM |
like how does :ban mag
detect magicalandre13 |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 01 Mar 2014 01:06 PM |
To do admin, you should parse the chat into two values.
The first value is the command that runs a function on a player. The second value is who the function applies to.
E.G.
function GetPlr(User, Message) local players={}; local InputString=InputString:lower(); for i,v in next,(game.Players:GetPlayers()) do if InputString==v.Name:lower() then table.insert(players, v); end; end; end; |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 01 Mar 2014 01:07 PM |
| detect it in what like an output message? |
|
|
| Report Abuse |
|
|