Advertisement
Guest User

RAND

a guest
Jun 29th, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.29 KB | None | 0 0
  1. //=========================INCLUDE==============================================
  2. #include <a_samp>
  3. //=========================DEFINEE==============================================
  4. #define FILTERSCRIPT
  5. #if defined FILTERSCRIPT
  6. //=========================NEW==================================================
  7. new Text:Textdraww;
  8. new Text:Textdrawww;
  9. new Text:Textdrawwww;
  10. new Text:randommsg;
  11. //=========================FORWARD==============================================
  12. forward RandomMessage();
  13. //=========================RANDMES==============================================
  14. new RandomMessages[][] =
  15. {
  16. "~y~SERVER: ~w~Message",
  17. "~y~SERVER: ~w~Message",
  18. "~y~SERVER: ~w~Message",
  19. "~y~SERVER: ~w~Message"
  20. };
  21. public RandomMessage()
  22. {
  23. TextDrawSetString(randommsg, RandomMessages[random(sizeof(RandomMessages))]);
  24. return 1;
  25. }
  26. //==============================================================================
  27. public OnFilterScriptInit()
  28. {
  29. Textdraww = TextDrawCreate(646.200134, 430.818939, "usebox");
  30. TextDrawLetterSize(Textdraww, 0.000000, 0.991666);
  31. TextDrawTextSize(Textdraww, -2.999998, 0.000000);
  32. TextDrawAlignment(Textdraww, 1);
  33. TextDrawColor(Textdraww, 0);
  34. TextDrawUseBox(Textdraww, true);
  35. TextDrawBoxColor(Textdraww, 102);
  36. TextDrawSetShadow(Textdraww, 0);
  37. TextDrawSetOutline(Textdraww, 0);
  38. TextDrawFont(Textdraww, 0);
  39.  
  40. Textdrawww = TextDrawCreate(-0.350000, 426.475219, "LD_SPAC:white");
  41. TextDrawLetterSize(Textdrawww, 0.000000, 0.000000);
  42. TextDrawTextSize(Textdrawww, 640.000000, 2.187500);
  43. TextDrawAlignment(Textdrawww, 1);
  44. TextDrawColor(Textdrawww, -5963521);
  45. TextDrawSetShadow(Textdrawww, 0);
  46. TextDrawSetOutline(Textdrawww, 0);
  47. TextDrawFont(Textdrawww, 4);
  48.  
  49. Textdrawwww = TextDrawCreate(-0.649999, 441.394042, "LD_SPAC:white");
  50. TextDrawLetterSize(Textdrawwww, 0.000000, 0.000000);
  51. TextDrawTextSize(Textdrawwww, 640.000000, 2.187500);
  52. TextDrawAlignment(Textdrawwww, 1);
  53. TextDrawColor(Textdrawwww, -5963521);
  54. TextDrawSetShadow(Textdrawwww, 0);
  55. TextDrawSetOutline(Textdrawwww, 0);
  56. TextDrawFont(Textdrawwww, 4);
  57. SetTimer("RandomMessage",8000,1);
  58. randommsg = TextDrawCreate(7.000000, 427.000000, "AAAA");
  59. TextDrawBackgroundColor(randommsg, 255);
  60. TextDrawFont(randommsg, 3);
  61. TextDrawLetterSize(randommsg, 0.379999, 1.499999);
  62. TextDrawColor(randommsg, -1);
  63. TextDrawSetOutline(randommsg, 1);
  64. TextDrawSetProportional(randommsg, 1);
  65. return 1;
  66. }
  67. //=========================INCLUDE==============================================
  68. public OnFilterScriptExit()
  69. {
  70. return 1;
  71. }
  72.  
  73. #else
  74.  
  75. main()
  76. {
  77. print("\n----------------------------------");
  78. print(" Blank Gamemode by your name here");
  79. print("----------------------------------\n");
  80. }
  81.  
  82. #endif
  83. //==============================================================================
  84. public OnPlayerRequestClass(playerid, classid)
  85. {
  86. return 1;
  87. }
  88. //==============================================================================
  89. public OnPlayerConnect(playerid)
  90. {
  91. return 1;
  92. }
  93. //==============================================================================
  94. public OnPlayerDisconnect(playerid, reason)
  95. {
  96. return 1;
  97. }
  98. //==============================================================================
  99. public OnPlayerSpawn(playerid)
  100. {
  101. TextDrawShowForPlayer(playerid, randommsg);
  102. TextDrawShowForPlayer(playerid, Textdraww);
  103. TextDrawShowForPlayer(playerid, Textdrawww);
  104. TextDrawShowForPlayer(playerid, Textdrawwww);
  105. return 1;
  106. }
  107. //==============================================================================
  108. public OnPlayerDeath(playerid, killerid, reason)
  109. {
  110. return 1;
  111. }
  112. //==============================================================================
  113. public OnVehicleSpawn(vehicleid)
  114. {
  115. return 1;
  116. }
  117. //==============================================================================
  118. public OnVehicleDeath(vehicleid, killerid)
  119. {
  120. return 1;
  121. }
  122. //==============================================================================
  123. public OnPlayerText(playerid, text[])
  124. {
  125. return 1;
  126. }
  127. //==============================================================================
  128. public OnPlayerCommandText(playerid, cmdtext[])
  129. {
  130. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  131. {
  132. // Do something here
  133. return 1;
  134. }
  135. return 0;
  136. }
  137. //==============================================================================
  138. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  139. {
  140. return 1;
  141. }
  142. //==============================================================================
  143. public OnPlayerExitVehicle(playerid, vehicleid)
  144. {
  145. return 1;
  146. }
  147. //==============================================================================
  148. public OnPlayerStateChange(playerid, newstate, oldstate)
  149. {
  150. return 1;
  151. }
  152. //==============================================================================
  153. public OnPlayerEnterCheckpoint(playerid)
  154. {
  155. return 1;
  156. }
  157. //==============================================================================
  158. public OnPlayerLeaveCheckpoint(playerid)
  159. {
  160. return 1;
  161. }
  162. //==============================================================================
  163. public OnPlayerEnterRaceCheckpoint(playerid)
  164. {
  165. return 1;
  166. }
  167. //==============================================================================
  168. public OnPlayerLeaveRaceCheckpoint(playerid)
  169. {
  170. return 1;
  171. }
  172. //==============================================================================
  173. public OnRconCommand(cmd[])
  174. {
  175. return 1;
  176. }
  177. //==============================================================================
  178. public OnPlayerRequestSpawn(playerid)
  179. {
  180. return 1;
  181. }
  182. //==============================================================================
  183. public OnObjectMoved(objectid)
  184. {
  185. return 1;
  186. }
  187. //==============================================================================
  188. public OnPlayerObjectMoved(playerid, objectid)
  189. {
  190. return 1;
  191. }
  192. //==============================================================================
  193. public OnPlayerPickUpPickup(playerid, pickupid)
  194. {
  195. return 1;
  196. }
  197. //==============================================================================
  198. public OnVehicleMod(playerid, vehicleid, componentid)
  199. {
  200. return 1;
  201. }
  202. //==============================================================================
  203. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  204. {
  205. return 1;
  206. }
  207. //==============================================================================
  208. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  209. {
  210. return 1;
  211. }
  212. //==============================================================================
  213. public OnPlayerSelectedMenuRow(playerid, row)
  214. {
  215. return 1;
  216. }
  217. //==============================================================================
  218. public OnPlayerExitedMenu(playerid)
  219. {
  220. return 1;
  221. }
  222. //==============================================================================
  223. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  224. {
  225. return 1;
  226. }
  227. //==============================================================================
  228. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  229. {
  230. return 1;
  231. }
  232. //==============================================================================
  233. public OnRconLoginAttempt(ip[], password[], success)
  234. {
  235. return 1;
  236. }
  237. //==============================================================================
  238. public OnPlayerUpdate(playerid)
  239. {
  240. return 1;
  241. }
  242. //==============================================================================
  243. public OnPlayerStreamIn(playerid, forplayerid)
  244. {
  245. return 1;
  246. }
  247. //==============================================================================
  248. public OnPlayerStreamOut(playerid, forplayerid)
  249. {
  250. return 1;
  251. }
  252. //==============================================================================
  253. public OnVehicleStreamIn(vehicleid, forplayerid)
  254. {
  255. return 1;
  256. }
  257. //==============================================================================
  258. public OnVehicleStreamOut(vehicleid, forplayerid)
  259. {
  260. return 1;
  261. }
  262. //==============================================================================
  263. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  264. {
  265. return 1;
  266. }
  267. //==============================================================================
  268. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  269. {
  270. return 1;
  271. }
  272. //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement