Jump to content


Photo

Online?


  • Please log in to reply
3 replies to this topic

#1 flxp

flxp

    GMC Member

  • GMC Member
  • 325 posts
  • Version:GM8

Posted 02 May 2012 - 07:35 PM

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...
  • 0

#2 dannyjenn

dannyjenn

    GMC Member

  • GMC Member
  • 2064 posts
  • Version:Mac

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.
  • 0

#3 Zwetbaba

Zwetbaba

    GMC Member

  • GMC Member
  • 87 posts
  • Version:Unknown

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:

//is_connected()

return (mplay_ipaddress() != "127.0.0.1");
I hope that works.
  • 0

#4 flxp

flxp

    GMC Member

  • GMC Member
  • 325 posts
  • Version:GM8

Posted 02 May 2012 - 11:59 PM

k thanks
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users