SRCDS Steam group


Need help with pushing players
#16
Yes, that should be fine.
Reply
#17
Ok. I tried both. neither work. Here is what I tried..

lua_run for k, v in pairs(player.GetAll()) do v:SendLua("connect ip"99.90.224.19
8:27016"port") end

> for k, v in pairs(player.GetAll()) do v:SendLua("connect ip"99.90.224.198:2701
6"port") end...

:1: malformed number near '99.90.224.198'


aswell as

lua_run for k, v in pairs(player.GetAll()) do v:SendLua("connect=99.90.224.198:27016") end

> for k, v in pairs(player.GetAll()) do v:SendLua("connect=99.90.224.198:
27016") end...

it returned on the client

:1: malformed number near '99.90.224.198'
(05-30-2010, 02:12 PM)Darksoul Wrote:  Yes, that should be fine.

Ok. here is what I put in.

lua_run for k, v in pairs(player.GetAll()) do v:SendLua("connect 99.90.224.198".. : .."27016") end

It gave me this in server console

:1: unexpected symbol near ':'

any Ideas?
Reply
#18
(05-30-2010, 11:52 AM)Mooga Wrote:  Mainly which game and the OS.
afaik, server forwarding doesn't work with Orange Box games (TF2, L4D, L4D2)

Server forwarding works fine with tf2.. and I think possibly l4d/2, can't remember. Gmod is easy.
(Not saying he shouldn't have read the readme and posted game info regardless.)

EDIT: Sad I am losing my mind.
So anyway. Try:
Code:
lua_run for k,v in pairs(player.GetAll()) do v:ConCommand("connect 99.90.224.198:27016") end
Also the topic title should be changed to 'Need gmod lua_run for redirecting players temporarily'
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)