Guest User

FS made by RASCAL

a guest
Oct 27th, 2010
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. //u Liniji 7 '#define BojaTexta 0' promjenite boju texta u koju zelite... 0 = zelena(defaultna),
  2. //, 1 =zelena,2 =plava
  3. //FS napravio rascal dana 26.10.2010. godine...
  4.  
  5.  
  6. #include <a_samp>
  7. #define FILTERSCRIPT
  8. #if defined FILTERSCRIPT
  9. #define BojaTexta 0
  10.  
  11. new ImenaVozila[212][] = {
  12. {"Landstalker"},
  13. {"Bravura"},
  14. {"Buffalo"},
  15. {"Linerunner"},
  16. {"Perrenial"},
  17. {"Sentinel"},
  18. {"Dumper"},
  19. {"Firetruck"},
  20. {"Trashmaster"},
  21. {"Stretch"},
  22. {"Manana"},
  23. {"Infernus"},
  24. {"Voodoo"},
  25. {"Pony"},
  26. {"Mule"},
  27. {"Cheetah"},
  28. {"Ambulance"},
  29. {"Leviathan"},
  30. {"Moonbeam"},
  31. {"Esperanto"},
  32. {"Taxi"},
  33. {"Washington"},
  34. {"Bobcat"},
  35. {"Mr Whoopee"},
  36. {"BF Injection"},
  37. {"Hunter"},
  38. {"Premier"},
  39. {"Enforcer"},
  40. {"Securicar"},
  41. {"Banshee"},
  42. {"Predator"},
  43. {"Bus"},
  44. {"Rhino"},
  45. {"Barracks"},
  46. {"Hotknife"},
  47. {"Trailer 1"},
  48. {"Previon"},
  49. {"Coach"},
  50. {"Cabbie"},
  51. {"Stallion"},
  52. {"Rumpo"},
  53. {"RC Bandit"},
  54. {"Romero"},
  55. {"Packer"},
  56. {"Monster"},
  57. {"Admiral"},
  58. {"Squalo"},
  59. {"Seasparrow"},
  60. {"Pizzaboy"},
  61. {"Tram"},
  62. {"Trailer 2"},
  63. {"Turismo"},
  64. {"Speeder"},
  65. {"Reefer"},
  66. {"Tropic"},
  67. {"Flatbed"},
  68. {"Yankee"},
  69. {"Caddy"},
  70. {"Solair"},
  71. {"Berkley's RC Van"},
  72. {"Skimmer"},
  73. {"PCJ-600"},
  74. {"Faggio"},
  75. {"Freeway"},
  76. {"RC Baron"},
  77. {"RC Raider"},
  78. {"Glendale"},
  79. {"Oceanic"},
  80. {"Sanchez"},
  81. {"Sparrow"},
  82. {"Patriot"},
  83. {"Quad"},
  84. {"Coastguard"},
  85. {"Dinghy"},
  86. {"Hermes"},
  87. {"Sabre"},
  88. {"Rustler"},
  89. {"ZR-350"},
  90. {"Walton"},
  91. {"Regina"},
  92. {"Comet"},
  93. {"BMX"},
  94. {"Burrito"},
  95. {"Camper"},
  96. {"Marquis"},
  97. {"Baggage"}
  98. ,{"Dozer"},
  99. {"Maverick"},
  100. {"News Chopper"},
  101. {"Rancher"},
  102. {"FBI Rancher"},
  103. {"Virgo"},
  104. {"Greenwood"},
  105. {"Jetmax"},
  106. {"Hotring"},
  107. {"Sandking"},
  108. {"Blista Compact"},
  109. {"Police Maverick"},
  110. {"Boxville"},
  111. {"Benson"},
  112. {"Mesa"},
  113. {"RC Goblin"},
  114. {"Hotring Racer A"},
  115. {"Hotring Racer B"},
  116. {"Bloodring Banger"},
  117. {"Rancher"},
  118. {"Super GT"},
  119. {"Elegant"},
  120. {"Journey"},
  121. {"Bike"},
  122. {"Mountain Bike"},
  123. {"Beagle"},{"Cropdust"},
  124. {"Stunt"},
  125. {"Tanker"},
  126. {"Roadtrain"},
  127. {"Nebula"},
  128. {"Majestic"},
  129. {"Buccaneer"},
  130. {"Shamal"},
  131. {"Hydra"},
  132. {"FCR-900"},
  133. {"NRG-500"},
  134. {"HPV1000"},
  135. {"Cement Truck"},
  136. {"Tow Truck"},
  137. {"Fortune"},
  138. {"Cadrona"},
  139. {"FBI Truck"},
  140. {"Willard"},
  141. {"Forklift"},
  142. {"Tractor"},
  143. {"Combine"},
  144. {"Feltzer"},
  145. {"Remington"},
  146. {"Slamvan"},
  147. {"Blade"},
  148. {"Freight"},
  149. {"Streak"},
  150. {"Vortex"},
  151. {"Vincent"},
  152. {"Bullet"},
  153. {"Clover"},
  154. {"Sadler"},
  155. {"Firetruck LA"},
  156. {"Hustler"},
  157. {"Intruder"},
  158. {"Primo"},
  159. {"Cargobob"},
  160. {"Tampa"},
  161. {"Sunrise"},
  162. {"Merit"},
  163. {"Utility"},
  164. {"Nevada"},
  165. {"Yosemite"},
  166. {"Windsor"},
  167. {"Monster A"},
  168. {"Monster B"},
  169. {"Uranus"},
  170. {"Jester"},
  171. {"Sultan"},
  172. {"Stratum"},
  173. {"Elegy"},
  174. {"Raindance"},
  175. {"RC Tiger"},
  176. {"Flash"},
  177. {"Tahoma"},
  178. {"Savanna"},
  179. {"Bandito"},
  180. {"Freight Flat"},
  181. {"Streak Carriage"},
  182. {"Kart"},
  183. {"Mower"},
  184. {"Duneride"},
  185. {"Sweeper"},
  186. {"Broadway"},
  187. {"Tornado"},
  188. {"AT-400"},
  189. {"DFT-30"},
  190. {"Huntley"},
  191. {"Stafford"},
  192. {"BF-400"},
  193. {"Newsvan"},
  194. {"Tug"},
  195. {"Trailer 3"},
  196. {"Emperor"},
  197. {"Wayfarer"},
  198. {"Euros"},
  199. {"Hotdog"},
  200. {"Club"},
  201. {"Freight Carriage"},
  202. {"Trailer 3"},
  203. {"Andromada"},
  204. {"Dodo"},
  205. {"RC Cam"},
  206. {"Launch"},
  207. {"Police Car (LSPD)"},
  208. {"Police Car (SFPD)"},
  209. {"Police Car (LVPD)"},
  210. {"Police Ranger"},
  211. {"Picador"},
  212. {"S.W.A.T. Van"},
  213. {"Alpha"},
  214. {"Phoenix"},
  215. {"Glendale"},
  216. {"Sadler"},
  217. {"Luggage Trailer A"},
  218. {"Luggage Trailer B"},
  219. {"Stair Trailer"},
  220. {"Boxville"},
  221. {"Farm Plow"},
  222. {"Utility Trailer"}
  223. };
  224.  
  225. new ModelVozila[MAX_PLAYERS];
  226. new ImeVozilaTimer;
  227. forward ProvjeraPromjeneMjesta(playerid);
  228. forward PokazujeTextIgracu(playerid);
  229.  
  230. public ProvjeraPromjeneMjesta(playerid)
  231. {
  232. if(GetVehicleModel(GetPlayerVehicleID(playerid)) != ModelVozila[playerid])
  233. {
  234. ModelVozila[playerid] = GetVehicleModel(GetPlayerVehicleID(playerid));
  235. PokazujeTextIgracu(playerid);
  236. }
  237. return 1;
  238. }
  239. public PokazujeTextIgracu(playerid)
  240. {
  241. new string[32];
  242. switch(BojaTexta)
  243. {
  244. case 0: format(string,sizeof(string),"~g~%s",ImenaVozila[ModelVozila[playerid]-400]); //zelena
  245. case 1: format(string,sizeof(string),"~b~%s",ImenaVozila[ModelVozila[playerid]-400]); //plava
  246. }
  247. GameTextForPlayer(playerid,string,1000,1);
  248. ImeVozilaTimer = SetTimerEx("ProvjeraPromjeneMjesta",1000,true,"i",playerid);
  249. return 1;
  250. }
  251.  
  252. public OnFilterScriptInit()
  253. {
  254. print("\n--------------------------------------");
  255. print(" FS [ImenaVozila] by rascal LOADED");
  256. print("--------------------------------------\n");
  257. return 1;
  258. }
  259.  
  260. public OnFilterScriptExit()
  261. {
  262. print("\n--------------------------------------");
  263. print(" FS [ImenaVozila] by rascal UNLOADED");
  264. print("--------------------------------------\n");
  265. return 1;
  266. }
  267.  
  268. public OnPlayerStateChange(playerid, newstate, oldstate)
  269. {
  270. if(newstate == PLAYER_STATE_DRIVER)
  271. {
  272. ModelVozila[playerid] = GetVehicleModel(GetPlayerVehicleID(playerid));
  273. PokazujeTextIgracu(playerid);
  274. return 1;
  275. }
  276. if(newstate != PLAYER_STATE_DRIVER && (oldstate == PLAYER_STATE_DRIVER))
  277. KillTimer(ImeVozilaTimer);
  278. return 1;
  279. }
  280.  
  281. #endif
  282.  
  283. //Nemojte maknuti kredite(CREDITSE)!!!!
Advertisement
Add Comment
Please, Sign In to add comment