ULX

Author Topic: Help with Check AFK command?  (Read 13961 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help with Check AFK command?
« Reply #45 on: May 18, 2016, 08:03:57 PM »
How can I make the clientside timer.Stop stop a shared timer.Create?
I'll answer with a question, and hopefully, you'll go 'DOH!'
What ways can you have a client call a server function?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Help with Check AFK command?
« Reply #46 on: May 18, 2016, 08:08:11 PM »

I'll answer with a question, and hopefully, you'll go 'DOH!'
What ways can you have a client call a server function?

Well I get that, that's what I used with the clientRPC, but that's not what I'm trying to do here (I think) I'm trying to make the timer in the shared file stop when executed in the client... can it be used like that? Like, can a clientRPC be used to stop a timer like that? I thought it could only be used to execute a function.
« Last Edit: May 19, 2016, 08:59:27 AM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Help with Check AFK command?
« Reply #47 on: May 19, 2016, 08:30:29 AM »
I'm not sure what JamminR is thinking of, but I think the net library could be used for this. I've never used it before though, and it's pretty difficult from what I've seen, so good luck.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given