Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Rights NOT reserved
- ayy lmao
- --]]
- local Clockwork = Clockwork;
- local COMMAND = Clockwork.command:New("Shift");
- COMMAND.tip = "Announces a text in the chat, signaling everyone about a workshift about to start.";
- COMMAND.text = "<number Warehouse>";
- COMMAND.flags = CMD_DEFAULT;
- COMMAND.access = "o";
- COMMAND.arguments = 1;
- -- Called when the command has been run.
- function COMMAND:OnRun(player, arguments)
- local warehouseNumber = tonumber(arguments[1]);
- local warehouseAnnounceText = "HEY GUYS THERES A SHIFT AT " .. warehouseNumber;
- if !isnumber(warehouseNumber) then
- Clockwork.player:Notify(player, "You did not enter a valid number.");
- else
- Clockwork.player:NotifyAll(warehouseAnnounceText);
- end;
- end;
- COMMAND:Register();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement