Advertisement
Guest User

Untitled

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