chrismain

AFK

Apr 23rd, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. //////////////////////////Radekk's Afk System!!///////////////////
  2.  
  3.  
  4.  
  5.  
  6. //LOL ROFL
  7.  
  8. ////////////////OK/////////////////////
  9.  
  10.  
  11.  
  12. ///////////////////////////////////////////////////////////////////
  13. #include <a_samp>
  14.  
  15. #define COLOR_YELLOW 0xFFFF00AA
  16.  
  17. #if defined FILTERSCRIPT
  18.  
  19. public OnFilterScriptInit()
  20. {
  21. print("\n-----------------------------------------");
  22. print(" Afk Filterscript Made By [XTC]Radekk[HD] ");
  23. print("----------------------------------------\n-");
  24. return true;
  25. }
  26.  
  27. public OnFilterScriptExit()
  28. {
  29. return true;
  30. }
  31.  
  32. #else
  33.  
  34. main()
  35. {
  36. print("\n-----------------------------------------");
  37. print(" Afk Filterscript Made By [XTC]Radekk[HD] ");
  38. print("-----------------------------------------\n");
  39. }
  40.  
  41. #endif
  42.  
  43. public OnPlayerCommandText(playerid, cmdtext[])
  44. {
  45. if(strcmp(cmdtext, "/brb", true) == 0) {
  46.  
  47. new pName[MAX_PLAYER_NAME];
  48. new string[48];
  49. GetPlayerName(playerid, pName, sizeof(pName));
  50. format(string, sizeof(string), "Be Right Back?");
  51. SendClientMessage(playerid,COLOR_YELLOW, string);
  52. format(string, sizeof(string), "%s Says: Brb (Be Right Back)", pName);
  53. SendClientMessageToAll(COLOR_YELLOW, string);
  54. TogglePlayerControllable(playerid,0);
  55.  
  56. return true;
  57. }
  58. if(strcmp(cmdtext, "/afk", true) == 0) {
  59.  
  60. new pName[MAX_PLAYER_NAME];
  61. new string[48];
  62. GetPlayerName(playerid, pName, sizeof(pName));
  63. format(string, sizeof(string), "You Have sent A Message To all That Ur AFK");
  64. SendClientMessage(playerid,COLOR_YELLOW, string);
  65. format(string, sizeof(string), "%s(%d) Is Now AFK (Away From Keyboard)", pName);
  66. SendClientMessageToAll(COLOR_YELLOW, string);
  67. TogglePlayerControllable(playerid,0);
  68.  
  69. return true;
  70. }
  71. if(strcmp(cmdtext, "/back", true) == 0) {
  72.  
  73. new pName[MAX_PLAYER_NAME];
  74. new string[48];
  75. GetPlayerName(playerid, pName, sizeof(pName));
  76. format(string, sizeof(string), "You are now back On The Keybored");
  77. SendClientMessage(playerid,COLOR_YELLOW, string);
  78. format(string, sizeof(string), "%s(%d) Is Back On The Keybored", pName);
  79. SendClientMessageToAll(COLOR_YELLOW, string);
  80. TogglePlayerControllable(playerid,1);
  81.  
  82. return true;
  83. }
  84. return false;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment