Guest User

Car Customization(V3-BETA) by EvanA(Evan Abagail)

a guest
Aug 16th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.57 KB | None | 0 0
  1. // Car Customization System for Admins
  2. // By EvanA(Evan Abagail)
  3. // Version 3 with all new features!!
  4. // Added Wheel Arch Angels Customization for Sultan as a preview for the next version!
  5. // Added /sultanhelp
  6.  
  7. #include <a_samp>
  8. #include zcmd
  9.  
  10. #if defined FILTERSCRIPT
  11. #define pAdmin
  12. #define filterscript
  13.  
  14. CMD:gr(playerid, params[]) {
  15. return cmd_goldrims(playerid, params);
  16. }
  17.  
  18. CMD:cr(playerid, params[]) {
  19. return cmd_cutterrims(playerid, params);
  20. }
  21. CMD:goldrims(playerid, params[])
  22. {
  23. if(IsPlayerConnected(playerid)) {
  24. if(PlayerInfo[playerid][pAdmin] < 1) {
  25. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  26. return 1;
  27. }
  28. if(IsPlayerInAnyVehicle(playerid)) {
  29. AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
  30. SendClientMessageEx(playerid, COLOR_GREY, " Gold Rims Added to Vehicle!");
  31. }
  32. }
  33. return 1;
  34. }
  35.  
  36. CMD:cutterrims(playerid, params[])
  37. {
  38. if(IsPlayerConnected(playerid)) {
  39. if(PlayerInfo[playerid][pAdmin] < 1) {
  40. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  41. return 1;
  42. }
  43. if(IsPlayerInAnyVehicle(playerid)) {
  44. AddVehicleComponent(GetPlayerVehicleID(playerid), 1079);
  45. SendClientMessageEx(playerid, COLOR_GREY, " Cutter Rims Added to Vehicle!");
  46. }
  47. }
  48. return 1;
  49. }
  50.  
  51. CMD:rimshine(playerid, params[])
  52. {
  53. if(IsPlayerConnected(playerid)) {
  54. if(PlayerInfo[playerid][pAdmin] < 1) {
  55. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  56. return 1;
  57. }
  58. if(IsPlayerInAnyVehicle(playerid)) {
  59. AddVehicleComponent(GetPlayerVehicleID(playerid), 1075);
  60. SendClientMessageEx(playerid, COLOR_GREY, "You have added Rimshine wheels to your vehicle!");
  61. }
  62. }
  63. return 1;
  64. }
  65.  
  66. CMD:mega(playerid, params[])
  67. {
  68. if(IsPlayerConnected(playerid)) {
  69. if(PlayerInfo[playerid][pAdmin] < 1) {
  70. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  71. return 1;
  72. }
  73. if(IsPlayerInAnyVehicle(playerid)) {
  74. AddVehicleComponent(GetPlayerVehicleID(playerid), 1074);
  75. SendClientMessageEx(playerid, COLOR_GREY, "You have added Mega wheels to your vehicle!");
  76. }
  77. }
  78. return 1;
  79. }
  80.  
  81. CMD:shadow(playerid, params[])
  82. {
  83. if(IsPlayerConnected(playerid)) {
  84. if(PlayerInfo[playerid][pAdmin] < 1) {
  85. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  86. return 1;
  87. }
  88. if(IsPlayerInAnyVehicle(playerid)) {
  89. AddVehicleComponent(GetPlayerVehicleID(playerid), 1073);
  90. SendClientMessageEx(playerid, COLOR_GREY, "You have added Shadow wheels to your vehicle!");
  91. }
  92. }
  93. return 1;
  94. }
  95.  
  96. CMD:grove(playerid, params[])
  97. {
  98. if(IsPlayerConnected(playerid)) {
  99. if(PlayerInfo[playerid][pAdmin] < 1) {
  100. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  101. return 1;
  102. }
  103. if(IsPlayerInAnyVehicle(playerid)) {
  104. AddVehicleComponent(GetPlayerVehicleID(playerid), 1081);
  105. SendClientMessageEx(playerid, COLOR_GREY, "You have added Grove wheels to your vehicle!");
  106. }
  107. }
  108. return 1;
  109. }
  110.  
  111. CMD:import(playerid, params[])
  112. {
  113. if(IsPlayerConnected(playerid)) {
  114. if(PlayerInfo[playerid][pAdmin] < 1) {
  115. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  116. return 1;
  117. }
  118. if(IsPlayerInAnyVehicle(playerid)) {
  119. AddVehicleComponent(GetPlayerVehicleID(playerid), 1082);
  120. SendClientMessageEx(playerid, COLOR_GREY, "You have added Import wheels to your vehicle!");
  121. }
  122. }
  123. return 1;
  124. }
  125.  
  126. CMD:dollar(playerid, params[])
  127. {
  128. if(IsPlayerConnected(playerid)) {
  129. if(PlayerInfo[playerid][pAdmin] < 1) {
  130. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  131. return 1;
  132. }
  133. if(IsPlayerInAnyVehicle(playerid)) {
  134. AddVehicleComponent(GetPlayerVehicleID(playerid), 1083);
  135. SendClientMessageEx(playerid, COLOR_GREY, "You have added Rimshine wheels to your vehicle!");
  136. }
  137. }
  138. return 1;
  139. }
  140.  
  141. CMD:trance(playerid, params[])
  142. {
  143. if(IsPlayerConnected(playerid)) {
  144. if(PlayerInfo[playerid][pAdmin] < 1) {
  145. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  146. return 1;
  147. }
  148. if(IsPlayerInAnyVehicle(playerid)) {
  149. AddVehicleComponent(GetPlayerVehicleID(playerid), 1084);
  150. SendClientMessageEx(playerid, COLOR_GREY, "You have added Trance wheels to your vehicle!");
  151. }
  152. }
  153. return 1;
  154. }
  155.  
  156. CMD:hyd(playerid, params[])
  157. {
  158. if(IsPlayerConnected(playerid)) {
  159. if(PlayerInfo[playerid][pAdmin] < 1) {
  160. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  161. return 1;
  162. }
  163. if(IsPlayerInAnyVehicle(playerid)) {
  164. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  165. SendClientMessageEx(playerid, COLOR_GREY, "You have added Rimshine wheels to your vehicle!");
  166. }
  167. }
  168. return 1;
  169. }
  170.  
  171. CMD:stereo(playerid, params[])
  172. {
  173. if(IsPlayerConnected(playerid)) {
  174. if(PlayerInfo[playerid][pAdmin] < 1) {
  175. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  176. return 1;
  177. }
  178. if(IsPlayerInAnyVehicle(playerid)) {
  179. AddVehicleComponent(GetPlayerVehicleID(playerid), 1086);
  180. SendClientMessageEx(playerid, COLOR_GREY, "You have added a stereo system to your vehicle!");
  181. }
  182. }
  183. return 1;
  184. }
  185.  
  186. CMD:convertable(playerid, params[])
  187. {
  188. if(IsPlayerConnected(playerid)) {
  189. if(PlayerInfo[playerid][pAdmin] < 1) {
  190. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  191. return 1;
  192. }
  193. if(IsPlayerInAnyVehicle(playerid)) {
  194. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  195. SendClientMessageEx(playerid, COLOR_GREY, "You have converted your car to a convertable!");
  196. }
  197. }
  198. return 1;
  199. }
  200.  
  201. CMD:pro(playerid, params[])
  202. {
  203. if(IsPlayerConnected(playerid)) {
  204. if(PlayerInfo[playerid][pAdmin] < 1) {
  205. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  206. return 1;
  207. }
  208. if(IsPlayerInAnyVehicle(playerid)) {
  209. AddVehicleComponent(GetPlayerVehicleID(playerid), 1000);
  210. SendClientMessageEx(playerid, COLOR_GREY, "You have added a pro spoiler to your vehicle!");
  211. }
  212. }
  213. return 1;
  214. }
  215.  
  216. CMD:win(playerid, params[])
  217. {
  218. if(IsPlayerConnected(playerid)) {
  219. if(PlayerInfo[playerid][pAdmin] < 1) {
  220. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  221. return 1;
  222. }
  223. if(IsPlayerInAnyVehicle(playerid)) {
  224. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  225. SendClientMessageEx(playerid, COLOR_GREY, "You have added a win spoiler to your vehicle!");
  226. }
  227. }
  228. return 1;
  229. }
  230.  
  231. CMD:sultanhelp(playerid, params[])
  232. {
  233. if(IsPlayerConnected(playerid)) {
  234. if(PlayerInfo[playerid][pAdmin] < 1) {
  235. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  236. return 1;
  237. }
  238. SendClientMessageEx(playerid, COLOR_GREY, "___________Sultan Customization_________");
  239. SendClientMessageEx(playerid, COLOR_GREY, "Alien Sideskirts: Right - /raliensultan Left - /laliensultan");
  240. SendClientMessageEx(playerid, COLOR_GREY, "Exahusts: Alien -- /alienexsultan X-Flow -- /xflowexsultan ");
  241. SendClientMessageEx(playerid, COLOR_GREY, "X:Flow Sideskirts: Right -- /rxflowsultan Left -- /lxflowsultan ");
  242. SendClientMessageEx(playerid, COLOR_GREY, "Roof Vents: Alien - /alienroofsultan X:Flow - /xflowroofsultan ");
  243.  
  244. }
  245. }
  246. return 1;
  247. }
  248.  
  249. CMD:raliensultan(playerid, params[])
  250. {
  251. if(IsPlayerConnected(playerid)) {
  252. if(PlayerInfo[playerid][pAdmin] < 1) {
  253. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  254. return 1;
  255. }
  256. if(IsPlayerInAnyVehicle(playerid)) {
  257. AddVehicleComponent(GetPlayerVehicleID(playerid), 1026);
  258. SendClientMessageEx(playerid, COLOR_GREY, "You have added a win spoiler to your vehicle!");
  259. }
  260. }
  261. return 1;
  262. }
  263.  
  264. CMD:laliensultan(playerid, params[])
  265. {
  266. if(IsPlayerConnected(playerid)) {
  267. if(PlayerInfo[playerid][pAdmin] < 1) {
  268. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  269. return 1;
  270. }
  271. if(IsPlayerInAnyVehicle(playerid)) {
  272. AddVehicleComponent(GetPlayerVehicleID(playerid), 1027);
  273. SendClientMessageEx(playerid, COLOR_GREY, "You have added a Alien Side-Skirt to your Sultan!");
  274. }
  275. }
  276. return 1;
  277. }
  278.  
  279. CMD:alienexsultan(playerid, params[])
  280. {
  281. if(IsPlayerConnected(playerid)) {
  282. if(PlayerInfo[playerid][pAdmin] < 1) {
  283. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  284. return 1;
  285. }
  286. if(IsPlayerInAnyVehicle(playerid)) {
  287. AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
  288. SendClientMessageEx(playerid, COLOR_GREY, "You have added a Alien Exahust to your vehicle!");
  289. }
  290. }
  291. return 1;
  292. }
  293.  
  294. CMD:xflowexsultan(playerid, params[])
  295. {
  296. if(IsPlayerConnected(playerid)) {
  297. if(PlayerInfo[playerid][pAdmin] < 1) {
  298. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  299. return 1;
  300. }
  301. if(IsPlayerInAnyVehicle(playerid)) {
  302. AddVehicleComponent(GetPlayerVehicleID(playerid), 1029);
  303. SendClientMessageEx(playerid, COLOR_GREY, "You have added a X-Flow Exahust to your Sultan!");
  304. }
  305. }
  306. return 1;
  307. }
  308.  
  309. CMD:lxflowsultan(playerid, params[])
  310. {
  311. if(IsPlayerConnected(playerid)) {
  312. if(PlayerInfo[playerid][pAdmin] < 1) {
  313. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  314. return 1;
  315. }
  316. if(IsPlayerInAnyVehicle(playerid)) {
  317. AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
  318. SendClientMessageEx(playerid, COLOR_GREY, "You have added a X-Flow Side-Skirt(Left) to your Sultan!");
  319. }
  320. }
  321. return 1;
  322. }
  323.  
  324. CMD:rxflowsultan(playerid, params[])
  325. {
  326. if(IsPlayerConnected(playerid)) {
  327. if(PlayerInfo[playerid][pAdmin] < 1) {
  328. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  329. return 1;
  330. }
  331. if(IsPlayerInAnyVehicle(playerid)) {
  332. AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
  333. SendClientMessageEx(playerid, COLOR_GREY, "You have added a X-Flow Side-Skirt(Right) to your sultan!");
  334. }
  335. }
  336. return 1;
  337. }
  338.  
  339. CMD:alienroofsultan(playerid, params[])
  340. {
  341. if(IsPlayerConnected(playerid)) {
  342. if(PlayerInfo[playerid][pAdmin] < 1) {
  343. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  344. return 1;
  345. }
  346. if(IsPlayerInAnyVehicle(playerid)) {
  347. AddVehicleComponent(GetPlayerVehicleID(playerid), 1032);
  348. SendClientMessageEx(playerid, COLOR_GREY, "You have added an alien roof vent to your Sultan!");
  349. }
  350. }
  351. return 1;
  352. }
  353.  
  354. CMD:xflowroofsultan(playerid, params[])
  355. {
  356. if(IsPlayerConnected(playerid)) {
  357. if(PlayerInfo[playerid][pAdmin] < 1) {
  358. SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  359. return 1;
  360. }
  361. if(IsPlayerInAnyVehicle(playerid)) {
  362. AddVehicleComponent(GetPlayerVehicleID(playerid), 1033);
  363. SendClientMessageEx(playerid, COLOR_GREY, "You have added an alien roof vent to your Sultan!");
  364. }
  365. }
  366. return 1;
  367. }
  368.  
  369. #endif
Advertisement
Add Comment
Please, Sign In to add comment