Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. --[[
  2. Rights NOT reserved
  3. ayy lmao
  4. --]]
  5.  
  6. local Clockwork = Clockwork;
  7.  
  8. local COMMAND = Clockwork.command:New("Shift");
  9. COMMAND.tip = "Announces a text in the chat, signaling everyone about a workshift about to start.";
  10. COMMAND.text = "<number Warehouse>";
  11. COMMAND.flags = CMD_DEFAULT;
  12. COMMAND.access = "o";
  13. COMMAND.arguments = 1;
  14.  
  15. -- Called when the command has been run.
  16. function COMMAND:OnRun(player, arguments)
  17. local warehouseNumber = tonumber(arguments[1]);
  18. local warehouseAnnounceText = "HEY GUYS THERES A SHIFT AT " .. warehouseNumber;
  19.  
  20. if !isnumber(warehouseNumber) then
  21. Clockwork.player:Notify(player, "You did not enter a valid number.");
  22. else
  23. Clockwork.player:NotifyAll(warehouseAnnounceText);
  24. end;
  25. end;
  26.  
  27. COMMAND:Register();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement