Advertisement
TylerB

for ott

May 13th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. --pa banid bob 1d reason
  2.  
  3. --should come out as
  4.  
  5. --pa banid [player] [time length] (string reason)
  6.  
  7. -- different types of vars accepted (please script for all of them):
  8.  
  9. -- OPTIONALSTR - (string nameofvariable)
  10. -- STR - [string nameofvariable]
  11. -- OPTIONALNUM - (number nameofvariable)
  12. -- NUM - [number nameofvariable]
  13. -- OPTIONALPLY - (player)
  14. -- OPTIONALPLYS - (player(s))
  15. -- PLY - [player]
  16. -- PLYS - [player(s)]
  17. -- MAP - [map nameofvariable]
  18. -- TIME - [time nameofvariable]
  19. -- OPTIONALTIME - (time nameofvariable)
  20.  
  21. -- please make it easy for me to adapt into pointadmin, like:
  22.  
  23. pointadmin.commands = {
  24.     kick = {
  25.         format = "PLY;OPTIONALSTR;", -- yes this is actually how i do it...
  26.         Call = function() end
  27.     },
  28.     god = {
  29.         format = "OPTIONALPLYS;",
  30.         Call = function() end
  31.     },
  32.     clear = {
  33.         format = ";",
  34.         Call = function() end
  35.     },
  36. }
  37.  
  38. function pointadmin.AutoComplete(arguments)
  39.    
  40.     stuff gets done in here!!!!
  41.    
  42.     return { -- return shit like this, please
  43.         "pa ban bob [time length] (str reason)",
  44.         "pa ban joe [time length] (str reason)"
  45.     }
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement