Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 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 <streamer>
  7. #include <YSI\y_ini>
  8. #include <YSI\y_timers>
  9. #include <zcmd>
  10. #include <RouteConnector>
  11. #include "../include/gl_common.inc"
  12. #include <a_mysql>
  13. #include <a_sampdb>
  14. #include <boxmessage>
  15. #include <sscanf2>
  16. #include <FCNPC>
  17. #pragma tabsize 0
  18.  
  19. #if defined FILTERSCRIPT
  20.  
  21. new Text:TDEditor_TD0;
  22. new Text:TDEditor_TD1;
  23. new Text:TDEditor_TD2;
  24. new Text:TDEditor_TD3;
  25. new Text:TDEditor_TD4;
  26.  
  27. public OnFilterScriptInit()
  28. {
  29. print("\n--------------------------------------");
  30. print(" Blank Filterscript by your name here");
  31. print("--------------------------------------\n");
  32. return 1;
  33. }
  34.  
  35. public OnFilterScriptExit()
  36. {
  37. return 1;
  38. }
  39.  
  40. #else
  41.  
  42. main()
  43. {
  44. print("\n----------------------------------");
  45. print(" Blank Gamemode by your name here");
  46. print("----------------------------------\n");
  47. }
  48.  
  49. #endif
  50.  
  51. public OnGameModeInit()
  52. {
  53.  
  54.  
  55. TDEditor_TD0 = TextDrawCreate(-8.125000, -1.333317, "box");
  56. TextDrawLetterSize(TDEditor_TD0, 0.000000, 14.500000);
  57. TextDrawTextSize(TDEditor_TD0, 672.000000, 0.000000);
  58. TextDrawAlignment(TDEditor_TD0, 1);
  59. TextDrawColor(TDEditor_TD0, -1);
  60. TextDrawUseBox(TDEditor_TD0, 1);
  61. TextDrawBoxColor(TDEditor_TD0, 255);
  62. TextDrawSetShadow(TDEditor_TD0, 0);
  63. TextDrawSetOutline(TDEditor_TD0, 0);
  64. TextDrawBackgroundColor(TDEditor_TD0, 255);
  65. TextDrawFont(TDEditor_TD0, 1);
  66. TextDrawSetProportional(TDEditor_TD0, 1);
  67. TextDrawSetShadow(TDEditor_TD0, 0);
  68.  
  69. TDEditor_TD1 = TextDrawCreate(165.625000, 0.416681, "chao_mung_den_voi");
  70. TextDrawLetterSize(TDEditor_TD1, 0.829375, 3.425833);
  71. TextDrawAlignment(TDEditor_TD1, 1);
  72. TextDrawColor(TDEditor_TD1, -1);
  73. TextDrawSetShadow(TDEditor_TD1, 0);
  74. TextDrawSetOutline(TDEditor_TD1, 0);
  75. TextDrawBackgroundColor(TDEditor_TD1, 255);
  76. TextDrawFont(TDEditor_TD1, 2);
  77. TextDrawSetProportional(TDEditor_TD1, 1);
  78. TextDrawSetShadow(TDEditor_TD1, 0);
  79.  
  80. TDEditor_TD2 = TextDrawCreate(36.875000, 29.000040, "San_Andreas_-_Dayz_Survival");
  81. TextDrawLetterSize(TDEditor_TD2, 1.629375, 8.174160);
  82. TextDrawAlignment(TDEditor_TD2, 1);
  83. TextDrawColor(TDEditor_TD2, 16711935);
  84. TextDrawSetShadow(TDEditor_TD2, 0);
  85. TextDrawSetOutline(TDEditor_TD2, 0);
  86. TextDrawBackgroundColor(TDEditor_TD2, 255);
  87. TextDrawFont(TDEditor_TD2, 0);
  88. TextDrawSetProportional(TDEditor_TD2, 1);
  89. TextDrawSetShadow(TDEditor_TD2, 0);
  90.  
  91. TDEditor_TD3 = TextDrawCreate(-2.500000, 316.583801, "box");
  92. TextDrawLetterSize(TDEditor_TD3, 0.000000, 14.500000);
  93. TextDrawTextSize(TDEditor_TD3, 679.000000, 0.000000);
  94. TextDrawAlignment(TDEditor_TD3, 1);
  95. TextDrawColor(TDEditor_TD3, -1);
  96. TextDrawUseBox(TDEditor_TD3, 1);
  97. TextDrawBoxColor(TDEditor_TD3, 255);
  98. TextDrawSetShadow(TDEditor_TD3, 0);
  99. TextDrawSetOutline(TDEditor_TD3, 0);
  100. TextDrawBackgroundColor(TDEditor_TD3, 255);
  101. TextDrawFont(TDEditor_TD3, 1);
  102. TextDrawSetProportional(TDEditor_TD3, 1);
  103. TextDrawSetShadow(TDEditor_TD3, 0);
  104.  
  105. return 1;
  106. }
  107.  
  108. public OnGameModeExit()
  109. {
  110. return 1;
  111. }
  112.  
  113. public OnPlayerRequestClass(playerid, classid)
  114. {
  115. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  116. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  117. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  118. return 1;
  119. }
  120.  
  121. public OnPlayerConnect(playerid)
  122. {
  123. TextDrawShowForPlayer(playerid, TDEditor_TD0);
  124. TextDrawShowForPlayer(playerid, TDEditor_TD1);
  125. TextDrawShowForPlayer(playerid, TDEditor_TD2);
  126. TextDrawShowForPlayer(playerid, TDEditor_TD3);
  127. return 1;
  128. }
  129.  
  130. public OnPlayerDisconnect(playerid, reason)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerSpawn(playerid)
  136. {
  137.  
  138. TextDrawHideForPlayer(playerid, TDEditor_TD0);
  139. TextDrawHideForPlayer(playerid, TDEditor_TD1);
  140. TextDrawHideForPlayer(playerid, TDEditor_TD2);
  141. TextDrawHideForPlayer(playerid, TDEditor_TD3);
  142. return 1;
  143. }
  144.  
  145. public OnPlayerDeath(playerid, killerid, reason)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnVehicleSpawn(vehicleid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnVehicleDeath(vehicleid, killerid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerText(playerid, text[])
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerCommandText(playerid, cmdtext[])
  166. {
  167. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  168. {
  169. // Do something here
  170. return 1;
  171. }
  172. return 0;
  173. }
  174.  
  175. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnPlayerExitVehicle(playerid, vehicleid)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerStateChange(playerid, newstate, oldstate)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnPlayerEnterCheckpoint(playerid)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerLeaveCheckpoint(playerid)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerEnterRaceCheckpoint(playerid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerLeaveRaceCheckpoint(playerid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnRconCommand(cmd[])
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnPlayerRequestSpawn(playerid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnObjectMoved(objectid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnPlayerObjectMoved(playerid, objectid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerPickUpPickup(playerid, pickupid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnVehicleMod(playerid, vehicleid, componentid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnPlayerSelectedMenuRow(playerid, row)
  251. {
  252. return 1;
  253. }
  254.  
  255. public OnPlayerExitedMenu(playerid)
  256. {
  257. return 1;
  258. }
  259.  
  260. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  261. {
  262. return 1;
  263. }
  264.  
  265. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  266. {
  267. return 1;
  268. }
  269.  
  270. public OnRconLoginAttempt(ip[], password[], success)
  271. {
  272. return 1;
  273. }
  274.  
  275. public OnPlayerUpdate(playerid)
  276. {
  277. return 1;
  278. }
  279.  
  280. public OnPlayerStreamIn(playerid, forplayerid)
  281. {
  282. return 1;
  283. }
  284.  
  285. public OnPlayerStreamOut(playerid, forplayerid)
  286. {
  287. return 1;
  288. }
  289.  
  290. public OnVehicleStreamIn(vehicleid, forplayerid)
  291. {
  292. return 1;
  293. }
  294.  
  295. public OnVehicleStreamOut(vehicleid, forplayerid)
  296. {
  297. return 1;
  298. }
  299.  
  300. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  301. {
  302. return 1;
  303. }
  304.  
  305. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  306. {
  307. return 1;
  308. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement