[FilterScript] [FS] S.A.S [UPDATED v1.2]
#10

I mean once the player types the command, the AFK effect doesn't take place until 30 seconds are up, and if the players moves, gets hit, shoots, types a command, or whatever, then the AFK doesn't take affect. It would only require 1 timer (per player)

pawn Code:
SetTimerEx("OnPlayerAFK",30000,0,"i",playerid);

public OnPlayerAFK(playerid)
{
  new Float:x,Float:y,Float:z,Float:hp;
  GetPlayerHealth(playerid,hp);
  if((pAFKX[playerid]!=x)||(pAFKY[playerid]!=y)||(pAFKZ[playerid]!=z)||(pAFKHP[playerid]!=hp))return SendClientMessage(playerid,0xFF0000FF,"Your AFK has been interupted prematurely, try not to move!");
  //Code
}
Reply


Messages In This Thread
[FS] S.A.S [UPDATED v1.2] - by ded - 27.11.2009, 22:49
Re: [FS] Simple away system v1.0 - by [NYRP]Mike. - 27.11.2009, 22:55
Re: [FS] Simple away system v1.0 - by patchkinson - 27.11.2009, 22:57
Re: [FS] Simple away system v1.0 - by ded - 27.11.2009, 23:39
Re: [FS] Simple away system v1.0 - by yelkreb - 02.12.2009, 15:33
Re: [FS] Simple away system v1.0 - by ded - 02.12.2009, 21:40
Re: [FS] S.A.S [UPDATED v1.1 (New Features!)] - by ded - 03.12.2009, 06:30
Re: [FS] S.A.S [UPDATED v1.1 (New Features!)] - by Joe Staff - 04.12.2009, 00:52
Re: [FS] S.A.S [UPDATED v1.1 (New Features!)] - by ded - 04.12.2009, 01:25
Re: [FS] S.A.S [UPDATED v1.1 (New Features!)] - by Joe Staff - 04.12.2009, 01:43

Forum Jump:


Users browsing this thread: 2 Guest(s)