Forum

> > CS2D > Scripts > Check if the server is dedicated or listen
Forums overviewCS2D overview Scripts overviewLog in to reply

English Check if the server is dedicated or listen

2 replies
To the start Previous 1 Next To the start

old Check if the server is dedicated or listen

Mami Tomoe
User Off Offline

Quote
How do I check if a server is running through New Game or the dedicated server?

Example usage:
1
2
3
if not serverIsListen() then
	parse('kick 1')
end

I tried
player(1, 'server')
and
player(1, 'host')
.
Those return nothing useful.

Currently using
player(1, 'ip') == '0.0.0.0'
.
Is there a better way of doing this?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview