Advertisement
Guest User

AFK

a guest
Aug 9th, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 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.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Blank Gamemode by your name here");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33. public OnGameModeInit()
  34. {
  35. // Don't use these lines if it's a filterscript
  36. SetGameModeText("Blank Script");
  37. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  38. return 1;
  39. }
  40.  
  41. public OnGameModeExit()
  42. {
  43. return 1;
  44. }
  45.  
  46. public OnPlayerRequestClass(playerid, classid)
  47. {
  48. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  49. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  51. return 1;
  52. }
  53.  
  54. public OnPlayerConnect(playerid)
  55. {
  56. return 1;
  57. }
  58.  
  59. public OnPlayerDisconnect(playerid, reason)
  60. {
  61. return 1;
  62. }
  63.  
  64. public OnPlayerSpawn(playerid)
  65. {
  66. return 1;
  67. }
  68.  
  69. public OnPlayerDeath(playerid, killerid, reason)
  70. {
  71. return 1;
  72. }
  73.  
  74. public OnVehicleSpawn(vehicleid)
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnVehicleDeath(vehicleid, killerid)
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerText(playerid, text[])
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnPlayerCommandText(playerid, cmdtext[])
  90. {
  91. if (strcmp("/afk", cmdtext, true, 4) == 0)
  92. {
  93. new name[MAX_PLAYER_NAME];
  94. new string[128];
  95. GetPlayerName(playerid, name, 24);
  96. format(string, sizeof(string), "[AFK] %s is now Away From Keyboard (AFK)", name);
  97. SendClientMessageToAll(0xFF0000AA, string);
  98. ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
  99. SendClientMessage(playerid, 0xFF0000AA, "You are now Away From Keyboard (AFK) and in virtual world 10. If you are back type /back.");
  100. SetPlayerVirtualWorld(playerid, 10);
  101. TogglePlayerControllable(playerid, 0);
  102. SetPlayerChatBubble(playerid, "Away From Keyboard (AFK)", 0xFFFFFFAA, 100, 100000000000);
  103. return 1;
  104. }
  105. if (strcmp("/back", cmdtext, true, 5) == 0)
  106. {
  107. new name[MAX_PLAYER_NAME];
  108. new string[128];
  109. GetPlayerName(playerid, name, 24);
  110. format(string, sizeof(string), "[BACK] %s is now Back from being Away From Keyboard (AFK)", name);
  111. SendClientMessageToAll(0xFF0000AA, string);
  112. ClearAnimations(playerid, 0);
  113. SendClientMessage(playerid, 0xFF0000AA, "You are now Back in virtual world 0 and you are not AFK anymore.");
  114. SetPlayerVirtualWorld(playerid, 0);
  115. TogglePlayerControllable(playerid, 1);
  116. SetPlayerChatBubble(playerid, " ", 0xFFFFFFAA, 100, 10);
  117. return 1;
  118. }
  119. return 0;
  120. }
  121.  
  122. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerExitVehicle(playerid, vehicleid)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerStateChange(playerid, newstate, oldstate)
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnPlayerEnterCheckpoint(playerid)
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnPlayerLeaveCheckpoint(playerid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnPlayerEnterRaceCheckpoint(playerid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerLeaveRaceCheckpoint(playerid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnRconCommand(cmd[])
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnPlayerRequestSpawn(playerid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnObjectMoved(objectid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnPlayerObjectMoved(playerid, objectid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnPlayerPickUpPickup(playerid, pickupid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnVehicleMod(playerid, vehicleid, componentid)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerSelectedMenuRow(playerid, row)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerExitedMenu(playerid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnRconLoginAttempt(ip[], password[], success)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerUpdate(playerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnPlayerStreamIn(playerid, forplayerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnPlayerStreamOut(playerid, forplayerid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnVehicleStreamIn(vehicleid, forplayerid)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnVehicleStreamOut(vehicleid, forplayerid)
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  248. {
  249. return 1;
  250. }
  251.  
  252. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  253. {
  254. return 1;
  255. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement