Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Fart99(ply, cmd, args)
- if(args[1]=="" or args[1]==nil) then
- if SERVER then
- ply:SendLua("print(\"How to use godstick:\")")
- ply:SendLua("print(\"Type something like: godstick 'ulx kick <name>' then click someone!\")")
- ply:SendLua("print(\"The <name> is so that it knows where to put the player's name!\")")
- end
- elseif(args[2] != nil) then
- if SERVER then
- ply:SendLua("print('Put \"s around your command!')")
- end
- elseif(!string.find(args[1], "<name>")) then
- if SERVER then
- ply:SendLua("print(\"That doesn't contain <name>!\")")
- end
- else
- if SERVER then
- ply:SendLua("print'Godstick set!'")
- ply.godsticksays = args[1]
- end
- end
- end
- concommand.Add("godstick", Fart99)
Advertisement
Add Comment
Please, Sign In to add comment