Anti Godmode
#1

i have a idea for one but how do we know if a player is AFK?!
Reply
#2

Get the Include that detects it. It's in the include section.
Reply
#3

Set a player Z pos for +5. And if he doesn't move, he is afk, if he does move, he isn't AFK.
pawn Код:
new Float:pos[ 2 ]; GetPlayerPos( playerid, pos[ 0 ], pos[ 1 ], pos[ 2 ] );
SetPlayerPos( playerid, pos[ 0 ], pos[ 1 ], pos[ 2 ] + 5 );
Reply
#4

Not to hijack, but thats a pretty neet trick mean.
Reply
#5

Another technique is to set a PVar to 10 on OnPlayerUpdate.
Then on a one second timer lower that variable by -1, when the variable reaches 0 it means he's been AFK ( Pause ) for 10 seconds.
Reply
#6

Quote:
Originally Posted by Mean
Посмотреть сообщение
Set a player Z pos for +5. And if he doesn't move, he is afk, if he does move, he isn't AFK.
pawn Код:
new Float:pos[ 2 ]; GetPlayerPos( playerid, pos[ 0 ], pos[ 1 ], pos[ 2 ] );
SetPlayerPos( playerid, pos[ 0 ], pos[ 1 ], pos[ 2 ] + 5 );
Perfect!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)