Advertisement
Guest User

Untitled

a guest
Jun 1st, 2010
1,376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1.  
  2. #include <a_samp>
  3.  
  4. #define COLOR_NARANJA 0xFF9900AA
  5.  
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print("\n--------------------------------------");
  11. print(" Sistemas de anuncios By AdonisxD");
  12. print("--------------------------------------\n");
  13. return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18. return 1;
  19. }
  20.  
  21. #else
  22.  
  23. main()
  24. {
  25. print("\n----------------------------------");
  26. print(" Sistemas de anuncios By AdonisxD");
  27. print("----------------------------------\n");
  28. }
  29.  
  30. #endif
  31.  
  32. public OnGameModeInit()
  33. {
  34. SetTimer("Anunciosx",200000,1);
  35. return 1;
  36. }
  37.  
  38. public OnGameModeExit()
  39. {
  40. return 1;
  41. }
  42.  
  43. public OnPlayerRequestClass(playerid, classid)
  44. {
  45. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  46. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  47. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  48. return 1;
  49. }
  50.  
  51. public OnPlayerConnect(playerid)
  52. {
  53. return 1;
  54. }
  55.  
  56. public OnPlayerDisconnect(playerid, reason)
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnPlayerSpawn(playerid)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerDeath(playerid, killerid, reason)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnVehicleSpawn(vehicleid)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnVehicleDeath(vehicleid, killerid)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnPlayerText(playerid, text[])
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerCommandText(playerid, cmdtext[])
  87. {
  88. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  89. {
  90. // Do something here
  91. return 1;
  92. }
  93. return 0;
  94. }
  95.  
  96. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnPlayerExitVehicle(playerid, vehicleid)
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerStateChange(playerid, newstate, oldstate)
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerEnterCheckpoint(playerid)
  112. {
  113. return 1;
  114. }
  115.  
  116. public OnPlayerLeaveCheckpoint(playerid)
  117. {
  118. return 1;
  119. }
  120.  
  121. public OnPlayerEnterRaceCheckpoint(playerid)
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnPlayerLeaveRaceCheckpoint(playerid)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnRconCommand(cmd[])
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnPlayerRequestSpawn(playerid)
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnObjectMoved(objectid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnPlayerObjectMoved(playerid, objectid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnPlayerPickUpPickup(playerid, pickupid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnVehicleMod(playerid, vehicleid, componentid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerSelectedMenuRow(playerid, row)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerExitedMenu(playerid)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnRconLoginAttempt(ip[], password[], success)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerUpdate(playerid)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerStreamIn(playerid, forplayerid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerStreamOut(playerid, forplayerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnVehicleStreamIn(vehicleid, forplayerid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnVehicleStreamOut(vehicleid, forplayerid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  227. {
  228. return 1;
  229. }
  230. new Anuncios[][] =
  231. {
  232. "Información: Para ver tus estadisticas del servidor escribe /estadisticas.",
  233. "Información: Para mas informacion del servidor ve a Www.Puro-Lacreo.Es.Tl",
  234. "Información: Quieres ser administrador? ve a Www.Puro-Lacreo.Es.Tl y pide un admin apps.",
  235. "Información: ¿Eres nuevo en el servidor? Escribe /comandos y ve todos los comandos del servidor",
  236. "Información: ¿Quieres ser un Scripter del servidor? Contacta con el Dueño del Servidor.",
  237. "Información: Quieres saber cuales son las reglas del servidor? Escribe /reglas y podras ver las reglas.",
  238. "Información: Hay un cheat o hacker en el servidor? escribe /camara toma fotos y los publicas en la pagina web.",
  239. "Información: ¿Hay un bug? Contacta con el Dueño del servidor y le dices lo del 'Bug'.",
  240. "Información: ¿Quieres un auto o repararlo? Escribe /v para los autos y /reparar para reparar."
  241. };
  242. forward Anunciosx();
  243. public Anunciosx()
  244. {
  245. SendClientMessageToAll(COLOR_NARANJA, Anuncios[random(sizeof(Anuncios))]);
  246. return 0;
  247. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement