Can someone please write me a quick script that will allow a player when they join it reconnects them to another server?
that code didnt work.
Make sure you use Bawbag’s code, mine is wrong.
He didnt really have a code… if he does where is it?
Yes, But i dont know where to place the code and how it should look…
Make a new file in lua/autorun in your server named redirect.lua
In there put
if ( CLIENT ) then
hook.Add( “InitPostEntity”, “doRedirect”, function( )
local TO_IP = “220.127.116.11”;
LocalPlayer():ConCommand( "connect " … TO_IP );
AddCSLuaFile( ‘redirect.lua’ );
This didn’t work. I just tryed it.
My bad, try that.