English Check if the server is dedicated or listen

2 replies
Goto Page
To the start Previous 1 Next To the start
Up
Mami Tomoe
User
Offline Off
How do I check if a server is running through New Game or the dedicated server?

Example usage:
Code:
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?
It's hard being the best girl in the whole entire world
01.07.22 01:50:31 pm
Up
TrenT
User
Offline Off
Code:
1
2
3
if game('dedicated') then
     print("YES!")
end
01.07.22 02:43:01 pm
Up
Mami Tomoe
User
Offline Off
Thank you!
It's hard being the best girl in the whole entire world
To the start Previous 1 Next To the start