Advertisement
Guest User

Untitled

a guest
Nov 24th, 2012
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. /*
  2. Filterscript generated using Zamaroht's TextDraw Editor Version 1.0.
  3. Designed for SA-MP 0.3a.
  4.  
  5. Time and Date: 2012-11-24 @ 11:23:24
  6.  
  7. Instructions:
  8. 1- Compile this file using the compiler provided with the sa-mp server package.
  9. 2- Copy the .amx file to the filterscripts directory.
  10. 3- Add the filterscripts in the server.cfg file (more info here:
  11. http://wiki.sa-mp.com/wiki/Server.cfg)
  12. 4- Run the server!
  13.  
  14. Disclaimer:
  15. You have full rights over this file. You can distribute it, modify it, and
  16. change it as much as you want, without having to give any special credits.
  17. */
  18.  
  19. #include <a_samp>
  20.  
  21. new Text:Textdraw0;
  22. new Text:Textdraw1;
  23. new Text:Textdraw2;
  24. new Text:Textdraw3;
  25. new Text:Textdraw4;
  26. new Text:Textdraw5;
  27. new Text:Textdraw6;
  28. new Text:Textdraw7;
  29. new Text:Textdraw8;
  30.  
  31. public OnFilterScriptInit()
  32. {
  33. print("Textdraw file generated by");
  34. print(" Zamaroht's textdraw editor was loaded.");
  35.  
  36. // Create the textdraws:
  37. Textdraw0 = TextDrawCreate(642.000000, 1.000000, "New Textdraw");
  38. TextDrawBackgroundColor(Textdraw0, 255);
  39. TextDrawFont(Textdraw0, 1);
  40. TextDrawLetterSize(Textdraw0, 0.500000, 7.799999);
  41. TextDrawColor(Textdraw0, -1);
  42. TextDrawSetOutline(Textdraw0, 0);
  43. TextDrawSetProportional(Textdraw0, 1);
  44. TextDrawSetShadow(Textdraw0, 1);
  45. TextDrawUseBox(Textdraw0, 1);
  46. TextDrawBoxColor(Textdraw0, 85);
  47. TextDrawTextSize(Textdraw0, -2.000000, 0.000000);
  48.  
  49. Textdraw1 = TextDrawCreate(642.000000, 322.000000, "New Textdraw");
  50. TextDrawBackgroundColor(Textdraw1, 255);
  51. TextDrawFont(Textdraw1, 1);
  52. TextDrawLetterSize(Textdraw1, 0.500000, 6.899999);
  53. TextDrawColor(Textdraw1, -1);
  54. TextDrawSetOutline(Textdraw1, 0);
  55. TextDrawSetProportional(Textdraw1, 1);
  56. TextDrawSetShadow(Textdraw1, 1);
  57. TextDrawUseBox(Textdraw1, 1);
  58. TextDrawBoxColor(Textdraw1, 85);
  59. TextDrawTextSize(Textdraw1, -2.000000, 0.000000);
  60.  
  61. Textdraw2 = TextDrawCreate(642.000000, 140.000000, "New Textdraw");
  62. TextDrawBackgroundColor(Textdraw2, 255);
  63. TextDrawFont(Textdraw2, 1);
  64. TextDrawLetterSize(Textdraw2, 0.500000, -0.200000);
  65. TextDrawColor(Textdraw2, -1);
  66. TextDrawSetOutline(Textdraw2, 0);
  67. TextDrawSetProportional(Textdraw2, 1);
  68. TextDrawSetShadow(Textdraw2, 1);
  69. TextDrawUseBox(Textdraw2, 1);
  70. TextDrawBoxColor(Textdraw2, 14548991);
  71. TextDrawTextSize(Textdraw2, -2.000000, 0.000000);
  72.  
  73. Textdraw3 = TextDrawCreate(642.000000, 327.000000, "New Textdraw");
  74. TextDrawBackgroundColor(Textdraw3, 255);
  75. TextDrawFont(Textdraw3, 1);
  76. TextDrawLetterSize(Textdraw3, 0.500000, -0.200000);
  77. TextDrawColor(Textdraw3, -1);
  78. TextDrawSetOutline(Textdraw3, 0);
  79. TextDrawSetProportional(Textdraw3, 1);
  80. TextDrawSetShadow(Textdraw3, 1);
  81. TextDrawUseBox(Textdraw3, 1);
  82. TextDrawBoxColor(Textdraw3, 14548991);
  83. TextDrawTextSize(Textdraw3, -2.000000, 0.000000);
  84.  
  85. Textdraw4 = TextDrawCreate(227.000000, 122.000000, "Spectating: Sanady");
  86. TextDrawBackgroundColor(Textdraw4, 255);
  87. TextDrawFont(Textdraw4, 3);
  88. TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
  89. TextDrawColor(Textdraw4, -1);
  90. TextDrawSetOutline(Textdraw4, 1);
  91. TextDrawSetProportional(Textdraw4, 1);
  92.  
  93. Textdraw5 = TextDrawCreate(642.000000, 117.000000, "New Textdraw");
  94. TextDrawBackgroundColor(Textdraw5, 255);
  95. TextDrawFont(Textdraw5, 1);
  96. TextDrawLetterSize(Textdraw5, 0.500000, -0.200000);
  97. TextDrawColor(Textdraw5, -1);
  98. TextDrawSetOutline(Textdraw5, 0);
  99. TextDrawSetProportional(Textdraw5, 1);
  100. TextDrawSetShadow(Textdraw5, 1);
  101. TextDrawUseBox(Textdraw5, 1);
  102. TextDrawBoxColor(Textdraw5, 14548991);
  103. TextDrawTextSize(Textdraw5, -2.000000, 0.000000);
  104.  
  105. Textdraw6 = TextDrawCreate(642.000000, 352.000000, "New Textdraw");
  106. TextDrawBackgroundColor(Textdraw6, 255);
  107. TextDrawFont(Textdraw6, 1);
  108. TextDrawLetterSize(Textdraw6, 0.500000, -0.200000);
  109. TextDrawColor(Textdraw6, -1);
  110. TextDrawSetOutline(Textdraw6, 0);
  111. TextDrawSetProportional(Textdraw6, 1);
  112. TextDrawSetShadow(Textdraw6, 1);
  113. TextDrawUseBox(Textdraw6, 1);
  114. TextDrawBoxColor(Textdraw6, 14548991);
  115. TextDrawTextSize(Textdraw6, -2.000000, 0.000000);
  116.  
  117. Textdraw7 = TextDrawCreate(180.000000, 332.000000, "Clicking by ~r~right ~w~or ~g~left ~w~click you will spectate other player");
  118. TextDrawBackgroundColor(Textdraw7, 255);
  119. TextDrawFont(Textdraw7, 3);
  120. TextDrawLetterSize(Textdraw7, 0.240000, 1.000000);
  121. TextDrawColor(Textdraw7, -1);
  122. TextDrawSetOutline(Textdraw7, 1);
  123. TextDrawSetProportional(Textdraw7, 1);
  124.  
  125. Textdraw8 = TextDrawCreate(568.000000, 439.000000, "(o) Design by Sanady");
  126. TextDrawBackgroundColor(Textdraw8, 255);
  127. TextDrawFont(Textdraw8, 3);
  128. TextDrawLetterSize(Textdraw8, 0.190000, 0.699999);
  129. TextDrawColor(Textdraw8, -1);
  130. TextDrawSetOutline(Textdraw8, 1);
  131. TextDrawSetProportional(Textdraw8, 1);
  132.  
  133. for(new i; i < MAX_PLAYERS; i ++)
  134. {
  135. if(IsPlayerConnected(i))
  136. {
  137. TextDrawShowForPlayer(i, Textdraw0);
  138. TextDrawShowForPlayer(i, Textdraw1);
  139. TextDrawShowForPlayer(i, Textdraw2);
  140. TextDrawShowForPlayer(i, Textdraw3);
  141. TextDrawShowForPlayer(i, Textdraw4);
  142. TextDrawShowForPlayer(i, Textdraw5);
  143. TextDrawShowForPlayer(i, Textdraw6);
  144. TextDrawShowForPlayer(i, Textdraw7);
  145. TextDrawShowForPlayer(i, Textdraw8);
  146. }
  147. }
  148. return 1;
  149. }
  150.  
  151. public OnFilterScriptExit()
  152. {
  153. TextDrawHideForAll(Textdraw0);
  154. TextDrawDestroy(Textdraw0);
  155. TextDrawHideForAll(Textdraw1);
  156. TextDrawDestroy(Textdraw1);
  157. TextDrawHideForAll(Textdraw2);
  158. TextDrawDestroy(Textdraw2);
  159. TextDrawHideForAll(Textdraw3);
  160. TextDrawDestroy(Textdraw3);
  161. TextDrawHideForAll(Textdraw4);
  162. TextDrawDestroy(Textdraw4);
  163. TextDrawHideForAll(Textdraw5);
  164. TextDrawDestroy(Textdraw5);
  165. TextDrawHideForAll(Textdraw6);
  166. TextDrawDestroy(Textdraw6);
  167. TextDrawHideForAll(Textdraw7);
  168. TextDrawDestroy(Textdraw7);
  169. TextDrawHideForAll(Textdraw8);
  170. TextDrawDestroy(Textdraw8);
  171. return 1;
  172. }
  173.  
  174. public OnPlayerConnect(playerid)
  175. {
  176. TextDrawShowForPlayer(playerid, Textdraw0);
  177. TextDrawShowForPlayer(playerid, Textdraw1);
  178. TextDrawShowForPlayer(playerid, Textdraw2);
  179. TextDrawShowForPlayer(playerid, Textdraw3);
  180. TextDrawShowForPlayer(playerid, Textdraw4);
  181. TextDrawShowForPlayer(playerid, Textdraw5);
  182. TextDrawShowForPlayer(playerid, Textdraw6);
  183. TextDrawShowForPlayer(playerid, Textdraw7);
  184. TextDrawShowForPlayer(playerid, Textdraw8);
  185. return 1;
  186. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement