Advertisement
Guest User

AFK script

a guest
Sep 18th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.07 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10.  
  11. new Pafk[MAX_PLAYERS];
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.     print("\n--------------------------------------");
  16.     print(" Blank Filterscript by your name here");
  17.     print("--------------------------------------\n");
  18.     return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23.     return 1;
  24. }
  25.  
  26. #endif
  27.  
  28.  
  29. CMD:afk(playerid, params[])
  30. {
  31.             if(Pafk[playerid] == 0)
  32.             {
  33.                 new name[MAX_PLAYER_NAME];
  34.                 SendClientMessageToAll(0xFFB300, "[INFO]$s Is In AFK Mode", name);
  35.                 new Text3D:afklabel = Create3DTextLabel("***AFK MODE***", 0xFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
  36.                 pafk[playerid] == 1;
  37.             }
  38.             else if(Pafk[playerid] == 1)
  39.             {
  40.                 SendClientMessageToAll(0xFFB300, "[INFO]$s Is Back From AFK Mode", name);
  41.                 DeletePlayer3DTextLabel(playerid, afklabel);
  42.                 pafk[playerid] == 0;
  43.                 return 1;
  44.             }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement