Advertisement
Guest User

Untitled

a guest
Sep 28th, 2012
840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. new Text:Time, Text:Date;
  6. forward settime(playerid);
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. SetTimer("settime",1000,true);
  11. Date = TextDrawCreate(547.000000,28.000000,"--");
  12. TextDrawFont(Date,3);
  13. TextDrawAlignment(Date, 0);
  14. TextDrawBackgroundColor(Date, 0x000000ff);
  15. TextDrawSetOutline(Date, 1);
  16. TextDrawSetProportional(Date, 1);
  17. TextDrawSetShadow(Date, 1);
  18. TextDrawLetterSize(Date,0.399999,1.600000);
  19. TextDrawColor(Date,0xffffffff);
  20. Time = TextDrawCreate(547.000000,11.000000,"--");
  21. TextDrawFont(Time,3);
  22. TextDrawAlignment(Time, 0);
  23. TextDrawBackgroundColor(Time, 0x000000ff);
  24. TextDrawSetOutline(Time, 1);
  25. TextDrawSetProportional(Time, 1);
  26. TextDrawSetShadow(Time, 1);
  27. TextDrawLetterSize(Time,0.499999,1.800000);
  28. TextDrawColor(Time,0xffffffff);
  29. print("\n--------------------------------------");
  30. print(" Time & Date FilterScript By MoDe");
  31. print("--------------------------------------\n");
  32. return 1;
  33. }
  34.  
  35. public OnFilterScriptExit()
  36. {
  37. TextDrawDestroy(Time), TextDrawDestroy(Date);
  38. return 1;
  39. }
  40.  
  41. public OnPlayerRequestClass(playerid, classid)
  42. {
  43. TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
  44. return 1;
  45. }
  46.  
  47. public OnPlayerConnect(playerid)
  48. {
  49. return 1;
  50. }
  51.  
  52. public OnPlayerDisconnect(playerid, reason)
  53. {
  54. TextDrawHideForPlayer(playerid, Time), TextDrawHideForPlayer(playerid, Date);
  55. return 1;
  56. }
  57.  
  58. public OnPlayerSpawn(playerid)
  59. {
  60. return 1;
  61. }
  62.  
  63. public OnPlayerDeath(playerid, killerid, reason)
  64. {
  65. return 1;
  66. }
  67.  
  68. public OnVehicleSpawn(vehicleid)
  69. {
  70. return 1;
  71. }
  72.  
  73. public OnVehicleDeath(vehicleid, killerid)
  74. {
  75. return 1;
  76. }
  77.  
  78. public OnPlayerText(playerid, text[])
  79. {
  80. return 1;
  81. }
  82.  
  83. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  84. {
  85. return 1;
  86. }
  87.  
  88. public OnPlayerExitVehicle(playerid, vehicleid)
  89. {
  90. return 1;
  91. }
  92.  
  93. public OnPlayerStateChange(playerid, newstate, oldstate)
  94. {
  95. return 1;
  96. }
  97.  
  98. public OnPlayerEnterCheckpoint(playerid)
  99. {
  100. return 1;
  101. }
  102.  
  103. public OnPlayerLeaveCheckpoint(playerid)
  104. {
  105. return 1;
  106. }
  107.  
  108. public OnPlayerEnterRaceCheckpoint(playerid)
  109. {
  110. return 1;
  111. }
  112.  
  113. public OnPlayerLeaveRaceCheckpoint(playerid)
  114. {
  115. return 1;
  116. }
  117.  
  118. public OnRconCommand(cmd[])
  119. {
  120. return 1;
  121. }
  122.  
  123. public OnPlayerRequestSpawn(playerid)
  124. {
  125. return 1;
  126. }
  127.  
  128. public OnObjectMoved(objectid)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerObjectMoved(playerid, objectid)
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnPlayerPickUpPickup(playerid, pickupid)
  139. {
  140. return 1;
  141. }
  142.  
  143. public OnVehicleMod(playerid, vehicleid, componentid)
  144. {
  145. return 1;
  146. }
  147.  
  148. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnPlayerSelectedMenuRow(playerid, row)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnPlayerExitedMenu(playerid)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnRconLoginAttempt(ip[], password[], success)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnPlayerUpdate(playerid)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnPlayerStreamIn(playerid, forplayerid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerStreamOut(playerid, forplayerid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnVehicleStreamIn(vehicleid, forplayerid)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnVehicleStreamOut(vehicleid, forplayerid)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  214. {
  215. return 1;
  216. }
  217.  
  218. public settime(playerid)
  219. {
  220. new string[256],year,month,day,hours,minutes;
  221. getdate(year, month, day), gettime(hours, minutes);
  222. format(string, sizeof string, "%s%d.%s%d.%d", (year < 10) ? ("0") : (""), year, ((month < 10) ? ("0") : ("")), month, day);
  223. TextDrawSetString(Date, string);
  224. format(string, sizeof string, "%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes);
  225. TextDrawSetString(Time, string);
  226. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement