Tidas

Untitled

Jun 26th, 2013
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local Clockwork = Clockwork;
  2.  
  3. local COMMAND = Clockwork.command:New("Tracking");
  4. COMMAND.tip = "Activate viewing of unit's Biosignals.";
  5. COMMAND.arguments = 1;
  6.  
  7. -- Called when the command has been run.
  8. function COMMAND:OnRun(player, arguments)
  9. local args = arguments[1]
  10. local name = player:Name()
  11. if(Schema:PlayerIsCombine(player)) then
  12. if(string.find(name, "EpU") or string.find(name, "DvL") or string.find(name, "SeC") or string.find(name, "CmD") or string.find(name, "OfC")) then
  13. if(string.lower(args) == "on") then
  14. player:ConCommand("bio 1")
  15. else
  16. player:ConCommand("bio 0")
  17. end;
  18. else
  19. Clockwork.player:Notify(player, "You must be at least an OfC to use this!")
  20. end;
  21. else
  22. Clockwork.player:Notify(player, "You are not the Combine!")
  23. end;
  24. end;
  25.  
  26. COMMAND:Register();
Advertisement
Add Comment
Please, Sign In to add comment