Hello,
I am trying to make some custom admin commands and I'm hoping to do it in such a way you can type sentences, but by using string manipulation it'd still be able to recognise the command.
For example, let's say I had a "shoot" command.
I'd want to say either: 'shoot at my friend bob123', 'aim at my friend bob123' or 'shoot at my enemy bob123' but would still get the words Shoot/Aim and his Username recognising it as a command and who to do it to.
I find it a lot more piratically than using the normal string.sub of 'shoot user'.
I've tried looking around with string.match/gmatch and string.find but I'm not entirely sure how they'd go hand in hand on making this.
Thanks in advanced.

1 comment
Practical*