This is a standalone script for /911 /ooc /me and /dispatch the script is running on a server i own called Justice Nation RP if you would like to test it
/911 “allows the user to call 911”
/dispatch “lets a dispatcher respond”
/me “a player is doing an action”
/ooc "player is out of Character
In v2 i changed string.sub(msg,5) to string.sub(msg, 10) for dispatch and i capitalized the me and dispatch
Download Link commands.zip v1 (1.8 KB)commands.zip v2 (1.8 KB)
@Kevinsch1 It seems like any command over 3 characters includes the characters after 3 in the message. For example, your screenshot shows that Dispatch will show “patch” before any thing you write. I tested this further by using your script to write another one for “admin announcements” in which I made the command “/admina” and the “ina” from that command appears in chat just like “patch” from “dispatch”
Wondering if this is intentional for some reason and either way if there’s something I can change to fix it. Thanks man, otherwise awesome.
Hey buddy! Did you ever figure that one out? A player on my server was making the suggestion about the colon and I was in the same boat as you and didnt see the code that was putting it in.