[Solved]
#1

Solved, Thanks
Reply
#2

Use the callback OnPlayerUpdate(playerid). It returns 1 everytime a player does something
Reply
#3

People usualy make a complicated AFK system, I make it around 4 lines I guess, just set a timer and go to OnPlayerUpdate.
Reply
#4

Menace i am curious about your system, mind sharing it. I would like to see what you would make in 4 lines...
Reply
#5

I'm sure you could do it yourself.
Reply
#6

A timer that every 30 seconds checks a value to see if it == 1, and sets it back to 0 again. In OnPlayerUpdate make it set a variable to 1.

If the timer gets round to a player and realises their number is still 0, they're AFK.

The timer will need a loop in it...
Reply
#7

Quote:
Originally Posted by Weirdosport
A timer that every 30 seconds checks a value to see if it == 1, and sets it back to 0 again. In OnPlayerUpdate make it set a variable to 1.

If the timer gets round to a player and realises their number is still 0, they're AFK.

The timer will need a loop in it...
No, mine does not work in that way.
Reply
#8

And that all in 4 lines?
Quote:
Originally Posted by Weirdosport
A timer that every 30 seconds checks a value to see if it == 1, and sets it back to 0 again. In OnPlayerUpdate make it set a variable to 1.

If the timer gets round to a player and realises their number is still 0, they're AFK.

The timer will need a loop in it...
timer => 1 line
On‌PlayerUpdate => 1 line
Loop to check if 0 or 1 => 3 lines minimum (loop define, connect check, variable check)

Not 4 lines
Reply
#9

God... Look again, it wasn't my reply. And I already said, I don't do it in Weirdosport's way.
Reply
#10

it is possible to make it in minimum lines i guess, but it'd be hard to figure where's what
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)