how can i check if the user has internet connection?
with cmd i can do:
ping 127.0.0.1
but i can't return that to GM...
Online?
Started by flxp, May 02 2012 07:35 PM
3 replies to this topic
#1
Posted 02 May 2012 - 07:35 PM
#2
Posted 02 May 2012 - 07:46 PM
Look in the manual under the mplay functions. I'm pretty sure there's one that does that, although I've never used any multiplayer stuff before.
#3
Posted 02 May 2012 - 08:13 PM
I think you can check that with the function mplay_ipaddress().
Create a new script and put this code into it:
Create a new script and put this code into it:
//is_connected() return (mplay_ipaddress() != "127.0.0.1");I hope that works.
#4
Posted 02 May 2012 - 11:59 PM
k thanks
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











