Advertisement
JokerSAMP

AFK

Dec 27th, 2017
872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. new Text:TDEditor_TD[4];
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. print("\n--------------------------------------");
  9. print(" Blank Filterscript by your name here");
  10. print("--------------------------------------\n");
  11. return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16. return 1;
  17. }
  18.  
  19.  
  20. main()
  21. {
  22. print("\n----------------------------------");
  23. print(" Blank Gamemode by your name here");
  24. print("----------------------------------\n");
  25. }
  26.  
  27.  
  28. public OnGameModeInit()
  29. {
  30. TDEditor_TD[0] = TextDrawCreate(393.999359, 395.333435, "boxverde");
  31. TextDrawLetterSize(TDEditor_TD[0], 0.000000, 1.199997);
  32. TextDrawTextSize(TDEditor_TD[0], 639.000000, 0.000000);
  33. TextDrawAlignment(TDEditor_TD[0], 1);
  34. TextDrawColor(TDEditor_TD[0], -1);
  35. TextDrawUseBox(TDEditor_TD[0], 1);
  36. TextDrawBoxColor(TDEditor_TD[0], -2030108417);
  37. TextDrawSetShadow(TDEditor_TD[0], 0);
  38. TextDrawSetOutline(TDEditor_TD[0], 0);
  39. TextDrawBackgroundColor(TDEditor_TD[0], 255);
  40. TextDrawFont(TDEditor_TD[0], 2);
  41. TextDrawSetProportional(TDEditor_TD[0], 1);
  42. TextDrawSetShadow(TDEditor_TD[0], 0);
  43.  
  44. TDEditor_TD[1] = TextDrawCreate(395.882202, 376.083160, "%s_ESTA_Lejos_del_teclado");
  45. TextDrawLetterSize(TDEditor_TD[1], 0.273882, 1.675834);
  46. TextDrawAlignment(TDEditor_TD[1], 1);
  47. TextDrawColor(TDEditor_TD[1], 255);
  48. TextDrawSetShadow(TDEditor_TD[1], 0);
  49. TextDrawSetOutline(TDEditor_TD[1], 0);
  50. TextDrawBackgroundColor(TDEditor_TD[1], 255);
  51. TextDrawFont(TDEditor_TD[1], 2);
  52. TextDrawSetProportional(TDEditor_TD[1], 1);
  53. TextDrawSetShadow(TDEditor_TD[1], 0);
  54.  
  55. TDEditor_TD[2] = TextDrawCreate(393.999969, 377.833831, "boxverdeboxrojo");
  56. TextDrawLetterSize(TDEditor_TD[2], 0.000000, 1.482350);
  57. TextDrawTextSize(TDEditor_TD[2], 670.000000, 0.000000);
  58. TextDrawAlignment(TDEditor_TD[2], 1);
  59. TextDrawColor(TDEditor_TD[2], -16776961);
  60. TextDrawUseBox(TDEditor_TD[2], 1);
  61. TextDrawBoxColor(TDEditor_TD[2], -16776961);
  62. TextDrawSetShadow(TDEditor_TD[2], 0);
  63. TextDrawSetOutline(TDEditor_TD[2], 0);
  64. TextDrawBackgroundColor(TDEditor_TD[2], 255);
  65. TextDrawFont(TDEditor_TD[2], 2);
  66. TextDrawSetProportional(TDEditor_TD[2], 1);
  67. TextDrawSetShadow(TDEditor_TD[2], 0);
  68.  
  69. TDEditor_TD[3] = TextDrawCreate(395.411621, 392.999938, "%s_VOLVIO_AL_JUEGO");
  70. TextDrawLetterSize(TDEditor_TD[3], 0.273882, 1.675834);
  71. TextDrawAlignment(TDEditor_TD[3], 1);
  72. TextDrawColor(TDEditor_TD[3], 255);
  73. TextDrawSetShadow(TDEditor_TD[3], 0);
  74. TextDrawSetOutline(TDEditor_TD[3], 0);
  75. TextDrawBackgroundColor(TDEditor_TD[3], 255);
  76. TextDrawFont(TDEditor_TD[3], 2);
  77. TextDrawSetProportional(TDEditor_TD[3], 1);
  78. TextDrawSetShadow(TDEditor_TD[3], 0);
  79. return 1;
  80. }
  81.  
  82. public OnGameModeExit()
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnPlayerRequestClass(playerid, classid)
  88. {
  89. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  90. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  91. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  92. return 1;
  93. }
  94.  
  95. public OnPlayerConnect(playerid)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnPlayerDisconnect(playerid, reason)
  101. {
  102. return 1;
  103. }
  104.  
  105. CMD:afk(playerid)
  106. {
  107. TogglePlayerControllable(playerid,0);
  108. SetPlayerHealth(playerid, 9999999);
  109. SetPlayerVirtualWorld(playerid, 3);
  110. new st[50];
  111. format(st, sizeof st, "%s_esta_Lejos_del_teclado_/afk", Nick(playerid));
  112. TextDrawSetString(TDEditor_TD[1], st);
  113. TextDrawShowForAll(TDEditor_TD[1]);
  114. TextDrawShowForAll(TDEditor_TD[2]);
  115. SetTimer("afk", 3000, false);
  116. return 1;
  117. }
  118.  
  119. CMD:noafk(playerid,params[])
  120. {
  121. TogglePlayerControllable(playerid,1);
  122. SetPlayerHealth(playerid, 100.0);
  123. SetPlayerVirtualWorld(playerid, 0);
  124. new st[50];
  125. format(st, sizeof st, "%s_VOLVIO_AL_JUEGO_/NOAFK", Nick(playerid));
  126. TextDrawSetString(TDEditor_TD[3], st);
  127. TextDrawShowForAll(TDEditor_TD[3]);
  128. TextDrawShowForAll(TDEditor_TD[0]);
  129. SetTimer("noafk", 3000, false);
  130. return 1;
  131. }
  132.  
  133. forward afk(playerid);
  134. public afk(playerid)
  135. {
  136. TextDrawHideForAll(TDEditor_TD[1]);
  137. TextDrawHideForAll(TDEditor_TD[2]);
  138. return 1;
  139. }
  140.  
  141. forward noafk(playerid);
  142. public noafk(playerid)
  143. {
  144. TextDrawHideForAll(TDEditor_TD[0]);
  145. TextDrawHideForAll(TDEditor_TD[3]);
  146. return 1;
  147. }
  148.  
  149. stock Nick(playerid)
  150. {
  151. new nombre[MAX_PLAYER_NAME];
  152. GetPlayerName(playerid, nombre, sizeof(nombre));
  153. return nombre;
  154. }
  155.  
  156. public OnPlayerDeath(playerid, killerid, reason)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnVehicleSpawn(vehicleid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnVehicleDeath(vehicleid, killerid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerText(playerid, text[])
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerCommandText(playerid, cmdtext[])
  177. {
  178. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  179. {
  180. // Do something here
  181. return 1;
  182. }
  183. return 0;
  184. }
  185.  
  186. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnPlayerExitVehicle(playerid, vehicleid)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerStateChange(playerid, newstate, oldstate)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerEnterCheckpoint(playerid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerLeaveCheckpoint(playerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnPlayerEnterRaceCheckpoint(playerid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnPlayerLeaveRaceCheckpoint(playerid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnRconCommand(cmd[])
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerRequestSpawn(playerid)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnObjectMoved(objectid)
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnPlayerObjectMoved(playerid, objectid)
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnPlayerPickUpPickup(playerid, pickupid)
  242. {
  243. return 1;
  244. }
  245.  
  246. public OnVehicleMod(playerid, vehicleid, componentid)
  247. {
  248. return 1;
  249. }
  250.  
  251. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  252. {
  253. return 1;
  254. }
  255.  
  256. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  257. {
  258. return 1;
  259. }
  260.  
  261. public OnPlayerSelectedMenuRow(playerid, row)
  262. {
  263. return 1;
  264. }
  265.  
  266. public OnPlayerExitedMenu(playerid)
  267. {
  268. return 1;
  269. }
  270.  
  271. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnRconLoginAttempt(ip[], password[], success)
  282. {
  283. return 1;
  284. }
  285.  
  286. public OnPlayerUpdate(playerid)
  287. {
  288. return 1;
  289. }
  290.  
  291. public OnPlayerStreamIn(playerid, forplayerid)
  292. {
  293. return 1;
  294. }
  295.  
  296. public OnPlayerStreamOut(playerid, forplayerid)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnVehicleStreamIn(vehicleid, forplayerid)
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnVehicleStreamOut(vehicleid, forplayerid)
  307. {
  308. return 1;
  309. }
  310.  
  311. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  312. {
  313. return 1;
  314. }
  315.  
  316. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  317. {
  318. return 1;
  319. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement