• Hi im new to coding, how do i make this admin only? xdd
    2 replies, posted
Hi im currently making an admin mod, but im totally new to lua and all how do i make this superadmin only hook.Add( "PlayerSay", "goto", function(ply,text) if string.sub(text,1,6) == "/#Goto" then for k,v in pairs(player.GetAll()) do if v:Nick() == string.sub(text,8) then ply:SetPos(v:GetPos() + Vector(0,0,50)) end end return"" end end)
i like how there's two threads next to eachother about makign a command admin only and they use the same format for the code. How to make a lua admin only??? Anyway, you can easily find the answer on the gmod wiki using admin as the word to search. Garry's Mod So if you haven't tried using the wiki yet, you probably should.
Hi thank you, sorry my main language isnt english xdd, the other guy i do not know, but yes i did follow the guide and i seemed to be confused by it
Sorry, you need to Log In to post a reply to this thread.