sethxi

Untitled

Apr 6th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. local function Fart99(ply, cmd, args)
  2.     if(args[1]=="" or args[1]==nil) then
  3.         if SERVER then
  4.             ply:SendLua("print(\"How to use godstick:\")")
  5.             ply:SendLua("print(\"Type something like: godstick 'ulx kick <name>' then click someone!\")")
  6.             ply:SendLua("print(\"The <name> is so that it knows where to put the player's name!\")")
  7.         end
  8.     elseif(args[2] != nil) then
  9.         if SERVER then
  10.             ply:SendLua("print('Put \"s around your command!')")
  11.         end
  12.     elseif(!string.find(args[1], "<name>")) then
  13.         if SERVER then
  14.             ply:SendLua("print(\"That doesn't contain <name>!\")")
  15.         end
  16.     else
  17.         if SERVER then
  18.             ply:SendLua("print'Godstick set!'")
  19.             ply.godsticksays = args[1]
  20.         end
  21.     end
  22. end
  23. concommand.Add("godstick", Fart99)
Advertisement
Add Comment
Please, Sign In to add comment