BDGAME

0.3e Advanced And Nice Textdraw System

May 26th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.46 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. new Text:SA;
  8. new Text:vers;
  9. new Text:Server;
  10. new Text:Star5;
  11. new Text:Star6;
  12. new Text:Star7;
  13. new Text:Star8;
  14. new Text:Star9;
  15. new Text:Star10;
  16. new Text:Star11;
  17. new Text:star1;
  18. new Text:star2;
  19. new Text:star3;
  20. new Text:star4;
  21.  
  22. #if defined FILTERSCRIPT
  23.  
  24. public OnFilterScriptInit()
  25. {
  26. print("\n--------------------------------------");
  27. print(" Blank Filterscript by your name here");
  28. print("--------------------------------------\n");
  29. return 1;
  30. }
  31.  
  32. public OnFilterScriptExit()
  33. {
  34. return 1;
  35. }
  36.  
  37. #else
  38.  
  39. main()
  40. {
  41. print("\n----------------------------------");
  42. print(" Blank Gamemode by your name here");
  43. print("----------------------------------\n");
  44. }
  45.  
  46. #endif
  47.  
  48. public OnGameModeInit()
  49. {
  50. // Don't use these lines if it's a filterscript
  51. SetGameModeText("Blank Script");
  52. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  53.  
  54. SA = TextDrawCreate(459.375000, 78.166671, "San Andreeas");
  55. TextDrawLetterSize(SA, 0.449999, 1.600000);
  56. TextDrawTextSize(SA, 6.250000, 86.333374);
  57. TextDrawAlignment(SA, 2);
  58. TextDrawColor(SA, 12648447);
  59. TextDrawSetShadow(SA, 0);
  60. TextDrawSetOutline(SA, 1);
  61. TextDrawBackgroundColor(SA, 51);
  62. TextDrawFont(SA, 0);
  63. TextDrawSetProportional(SA, 1);
  64.  
  65. vers = TextDrawCreate(459.375000, 95.083366, "] 0.3e ]");
  66. TextDrawLetterSize(vers, 0.449999, 1.600000);
  67. TextDrawTextSize(vers, 505.625000, 89.833374);
  68. TextDrawAlignment(vers, 2);
  69. TextDrawColor(vers, -1208024833);
  70. TextDrawSetShadow(vers, 0);
  71. TextDrawSetOutline(vers, 1);
  72. TextDrawBackgroundColor(vers, 51);
  73. TextDrawFont(vers, 2);
  74. TextDrawSetProportional(vers, 1);
  75.  
  76. Server = TextDrawCreate(458.125000, 111.416656, "Server");
  77. TextDrawLetterSize(Server, 0.449999, 1.600000);
  78. TextDrawTextSize(Server, 31.250000, 90.416732);
  79. TextDrawAlignment(Server, 2);
  80. TextDrawColor(Server, -1);
  81. TextDrawSetShadow(Server, 0);
  82. TextDrawSetOutline(Server, 1);
  83. TextDrawBackgroundColor(Server, 51);
  84. TextDrawFont(Server, 2);
  85. TextDrawSetProportional(Server, 1);
  86.  
  87. Star5 = TextDrawCreate(406.250000, 108.500022, "]");
  88. TextDrawLetterSize(Star5, 0.449999, 1.600000);
  89. TextDrawAlignment(Star5, 1);
  90. TextDrawColor(Star5, -5963521);
  91. TextDrawSetShadow(Star5, 0);
  92. TextDrawSetOutline(Star5, 1);
  93. TextDrawBackgroundColor(Star5, 51);
  94. TextDrawFont(Star5, 2);
  95. TextDrawSetProportional(Star5, 1);
  96.  
  97. Star6 = TextDrawCreate(495.375000, 107.750022, "]");
  98. TextDrawLetterSize(Star6, 0.449999, 1.600000);
  99. TextDrawAlignment(Star6, 1);
  100. TextDrawColor(Star6, -5963521);
  101. TextDrawSetShadow(Star6, 0);
  102. TextDrawSetOutline(Star6, 1);
  103. TextDrawBackgroundColor(Star6, 51);
  104. TextDrawFont(Star6, 2);
  105. TextDrawSetProportional(Star6, 1);
  106.  
  107. Star7 = TextDrawCreate(501.375000, 80.166687, "]");
  108. TextDrawLetterSize(Star7, 0.449999, 1.600000);
  109. TextDrawAlignment(Star7, 1);
  110. TextDrawColor(Star7, -5963521);
  111. TextDrawSetShadow(Star7, 0);
  112. TextDrawSetOutline(Star7, 1);
  113. TextDrawBackgroundColor(Star7, 51);
  114. TextDrawFont(Star7, 2);
  115. TextDrawSetProportional(Star7, 1);
  116.  
  117. Star8 = TextDrawCreate(404.875000, 78.250007, "]");
  118. TextDrawLetterSize(Star8, 0.449999, 1.600000);
  119. TextDrawAlignment(Star8, 1);
  120. TextDrawColor(Star8, -5963521);
  121. TextDrawSetShadow(Star8, 0);
  122. TextDrawSetOutline(Star8, 1);
  123. TextDrawBackgroundColor(Star8, 51);
  124. TextDrawFont(Star8, 2);
  125. TextDrawSetProportional(Star8, 1);
  126.  
  127. Star9 = TextDrawCreate(412.750000, 121.250038, "]");
  128. TextDrawLetterSize(Star9, 0.449999, 1.600000);
  129. TextDrawAlignment(Star9, 1);
  130. TextDrawColor(Star9, -5963521);
  131. TextDrawSetShadow(Star9, 0);
  132. TextDrawSetOutline(Star9, 1);
  133. TextDrawBackgroundColor(Star9, 51);
  134. TextDrawFont(Star9, 2);
  135. TextDrawSetProportional(Star9, 1);
  136.  
  137. Star10 = TextDrawCreate(488.750000, 121.083374, "]");
  138. TextDrawLetterSize(Star10, 0.449999, 1.600000);
  139. TextDrawAlignment(Star10, 1);
  140. TextDrawColor(Star10, -5963521);
  141. TextDrawSetShadow(Star10, 0);
  142. TextDrawSetOutline(Star10, 1);
  143. TextDrawBackgroundColor(Star10, 51);
  144. TextDrawFont(Star10, 2);
  145. TextDrawSetProportional(Star10, 1);
  146.  
  147. Star11 = TextDrawCreate(425.375000, 125.000038, "]");
  148. TextDrawLetterSize(Star11, 0.449999, 1.600000);
  149. TextDrawAlignment(Star11, 1);
  150. TextDrawColor(Star11, -5963521);
  151. TextDrawSetShadow(Star11, 0);
  152. TextDrawSetOutline(Star11, 1);
  153. TextDrawBackgroundColor(Star11, 51);
  154. TextDrawFont(Star11, 2);
  155. TextDrawSetProportional(Star11, 1);
  156.  
  157. star1 = TextDrawCreate(477.000000, 125.416702, "]");
  158. TextDrawLetterSize(star1, 0.449999, 1.600000);
  159. TextDrawAlignment(star1, 1);
  160. TextDrawColor(star1, -5963521);
  161. TextDrawSetShadow(star1, 0);
  162. TextDrawSetOutline(star1, 1);
  163. TextDrawBackgroundColor(star1, 51);
  164. TextDrawFont(star1, 2);
  165. TextDrawSetProportional(star1, 1);
  166.  
  167. star2 = TextDrawCreate(438.000000, 129.333374, "]");
  168. TextDrawLetterSize(star2, 0.449999, 1.600000);
  169. TextDrawAlignment(star2, 1);
  170. TextDrawColor(star2, -5963521);
  171. TextDrawSetShadow(star2, 0);
  172. TextDrawSetOutline(star2, 1);
  173. TextDrawBackgroundColor(star2, 51);
  174. TextDrawFont(star2, 2);
  175. TextDrawSetProportional(star2, 1);
  176.  
  177. star3 = TextDrawCreate(464.000000, 129.750045, "]");
  178. TextDrawLetterSize(star3, 0.449999, 1.600000);
  179. TextDrawAlignment(star3, 1);
  180. TextDrawColor(star3, -5963521);
  181. TextDrawSetShadow(star3, 0);
  182. TextDrawSetOutline(star3, 1);
  183. TextDrawBackgroundColor(star3, 51);
  184. TextDrawFont(star3, 2);
  185. TextDrawSetProportional(star3, 1);
  186.  
  187. star4 = TextDrawCreate(451.250000, 135.416702, "]");
  188. TextDrawLetterSize(star4, 0.449999, 1.600000);
  189. TextDrawAlignment(star4, 1);
  190. TextDrawColor(star4, -5963521);
  191. TextDrawSetShadow(star4, 0);
  192. TextDrawSetOutline(star4, 1);
  193. TextDrawBackgroundColor(star4, 51);
  194. TextDrawFont(star4, 2);
  195. TextDrawSetProportional(star4, 1);
  196. return 1;
  197. }
  198.  
  199. public OnGameModeExit()
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnPlayerRequestClass(playerid, classid)
  205. {
  206. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  207. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  208. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  209. return 1;
  210. }
  211.  
  212. public OnPlayerConnect(playerid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerDisconnect(playerid, reason)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerSpawn(playerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnPlayerDeath(playerid, killerid, reason)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnVehicleSpawn(vehicleid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnVehicleDeath(vehicleid, killerid)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnPlayerText(playerid, text[])
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnPlayerCommandText(playerid, cmdtext[])
  248. {
  249. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  250. {
  251. // Do something here
  252. return 1;
  253. }
  254. return 0;
  255. }
  256.  
  257. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  258. {
  259. return 1;
  260. }
  261.  
  262. public OnPlayerExitVehicle(playerid, vehicleid)
  263. {
  264. return 1;
  265. }
  266.  
  267. public OnPlayerStateChange(playerid, newstate, oldstate)
  268. {
  269. return 1;
  270. }
  271.  
  272. public OnPlayerEnterCheckpoint(playerid)
  273. {
  274. return 1;
  275. }
  276.  
  277. public OnPlayerLeaveCheckpoint(playerid)
  278. {
  279. return 1;
  280. }
  281.  
  282. public OnPlayerEnterRaceCheckpoint(playerid)
  283. {
  284. return 1;
  285. }
  286.  
  287. public OnPlayerLeaveRaceCheckpoint(playerid)
  288. {
  289. return 1;
  290. }
  291.  
  292. public OnRconCommand(cmd[])
  293. {
  294. return 1;
  295. }
  296.  
  297. public OnPlayerRequestSpawn(playerid)
  298. {
  299. return 1;
  300. }
  301.  
  302. public OnObjectMoved(objectid)
  303. {
  304. return 1;
  305. }
  306.  
  307. public OnPlayerObjectMoved(playerid, objectid)
  308. {
  309. return 1;
  310. }
  311.  
  312. public OnPlayerPickUpPickup(playerid, pickupid)
  313. {
  314. return 1;
  315. }
  316.  
  317. public OnVehicleMod(playerid, vehicleid, componentid)
  318. {
  319. return 1;
  320. }
  321.  
  322. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  323. {
  324. return 1;
  325. }
  326.  
  327. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  328. {
  329. return 1;
  330. }
  331.  
  332. public OnPlayerSelectedMenuRow(playerid, row)
  333. {
  334. return 1;
  335. }
  336.  
  337. public OnPlayerExitedMenu(playerid)
  338. {
  339. return 1;
  340. }
  341.  
  342. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  343. {
  344. return 1;
  345. }
  346.  
  347. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  348. {
  349. return 1;
  350. }
  351.  
  352. public OnRconLoginAttempt(ip[], password[], success)
  353. {
  354. return 1;
  355. }
  356.  
  357. public OnPlayerUpdate(playerid)
  358. {
  359. return 1;
  360. }
  361.  
  362. public OnPlayerStreamIn(playerid, forplayerid)
  363. {
  364. return 1;
  365. }
  366.  
  367. public OnPlayerStreamOut(playerid, forplayerid)
  368. {
  369. return 1;
  370. }
  371.  
  372. public OnVehicleStreamIn(vehicleid, forplayerid)
  373. {
  374. return 1;
  375. }
  376.  
  377. public OnVehicleStreamOut(vehicleid, forplayerid)
  378. {
  379. return 1;
  380. }
  381.  
  382. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  383. {
  384. return 1;
  385. }
  386.  
  387. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  388. {
  389. return 1;
  390. }
Advertisement
Add Comment
Please, Sign In to add comment