SA-MP Forums Archive
can i check if sa:mp is connected to server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: can i check if sa:mp is connected to server (/showthread.php?tid=257987)



can i check if sa:mp is connected to server - dEzIRE - 28.05.2011

hello,

can i check if sa:mp is connected to server with C#?

thx.


Re: can i check if sa:mp is connected to server - Kush - 28.05.2011

It's hard trying to understand what you are saying. Are you asking if there is a possible way of checking if Your SA:MP Server is connected?


Re: can i check if sa:mp is connected to server - Biesmen - 28.05.2011

No, he means checking if a server is online via C#. Like, creating a program which will check if a server is online or offline.


Re: can i check if sa:mp is connected to server - Ash. - 28.05.2011

Mm, you could ping the server, to see if you receive response? Other than that I don't think so (unless you were to implement/port the server query API (by Westie?) into C# then use that.


AW: can i check if sa:mp is connected to server - Meta - 28.05.2011

How do you define 'online'?


Re: can i check if sa:mp is connected to server - sim_sima - 28.05.2011

Use a server monitor like www.game-monitor.com


Re: can i check if sa:mp is connected to server - dEzIRE - 29.05.2011

i meant to check if the player's client connected to a server, not if the server is running.


Re: can i check if sa:mp is connected to server - sim_sima - 29.05.2011

Quote:
Originally Posted by dEzIRE
Посмотреть сообщение
i meant to check if the player's client connected to a server, not if the server is running.
Well, you cant play in the server if you arent connected.