All pastes #903475 Raw Edit

mchouque

public javascript v1 · immutable
·published 2008-02-14 09:51 UTC
rendered paste body
   1.      #include <a_samp>   2.      #include <a_players>   3.          4.      /* This is a filterscript against being afk for hours   5.      If a player is afk for 1 hour he will get kicked */   6.          7.      #define FILTERSCRIPT   8.          9.      #if defined FILTERSCRIPT  10.         11.      public OnFilterScriptInit()  12.      {  13.              print("\n--------------------------------------");  14.              print(" Anti AFK by Clank");  15.              print("--------------------------------------\n");  16.              return 1;  17.      }  18.         19.      forward IsPosTheSame (playerid, &pos1x, &pos1y, &pos1z, &pos2x, &pos2y, &pos2z);  20.         21.      GetPlayerPos(playerid, &pos1x, &pos1y, &pos1z);  22.      {  23.      SetTimer(time afk, 3600000, true);  24.      GetPlayerPos(playerid, &pos2x, &pos2y, &pos2z);  25.      if (IsPosTheSame == 1);  26.      {  27.      Kick(playerid);  28.      }  29.      }  30.         31.         32.      public OnFilterScriptExit()  33.      {  34.              return 1;  35.      }  36.         37.      //------------------------------------------------------------------------------  38.         39.      IsPosTheSame (playerid, &pos1x, &pos1y, &pos1z, &pos2x, &pos2y, &pos2z);  40.      {  41.              new  42.              GetPlayerPos(playerid, &pos1x, &pos1y, &pos1z);  43.              (playerid, &pos2x, &pos2y, &pos2z);  44.              if ( &pos1x = &pos2x, &pos1y = &pos2y, &pos1z = &pos2z);  45.      }  46.      #endif