BananasTheKing

Dispatch without OTA

Sep 23rd, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. --[[
  2. © 2013 CloudSixteen.com do not share, re-distribute or modify
  3. without permission of its author ([email protected]).
  4. --]]
  5.  
  6. local COMMAND = Clockwork.command:New("Dispatch");
  7. COMMAND.tip = "Dispatch a message to all characters.";
  8. COMMAND.text = "<string Text>";
  9. COMMAND.flags = bit.bor(CMD_DEFAULT, CMD_FALLENOVER);
  10. COMMAND.access = "s";
  11. COMMAND.arguments = 1;
  12.  
  13. -- Called when the command has been run.
  14. function COMMAND:OnRun(player, arguments)
  15. local text = table.concat(arguments, " ");
  16.  
  17. if (text == "") then
  18. Clockwork.player:Notify(player, "You did not specify enough text!");
  19.  
  20. return;
  21. end;
  22.  
  23. Schema:SayDispatch(player, text);
  24.  
  25. end;
  26.  
  27. COMMAND:Register();
Advertisement
Add Comment
Please, Sign In to add comment