Guest User

Car Customization by EvanA(Evan Abagail)

a guest
Aug 15th, 2013
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.38 KB | None | 0 0
  1. // Car Customization System for Admins
  2. // By EvanA
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include zcmd
  7.  
  8. #if defined FILTERSCRIPT
  9. #define pAdmin
  10. #define filterscript
  11.  
  12. CMD:gr(playerid, params[]) {
  13.     return cmd_goldrims(playerid, params);
  14. }
  15.  
  16. CMD:cr(playerid, params[]) {
  17.     return cmd_cutterrims(playerid, params);
  18. }
  19. CMD:goldrims(playerid, params[])
  20. {
  21.     if(IsPlayerConnected(playerid)) {
  22.         if(PlayerInfo[playerid][pAdmin] < 1) {
  23.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  24.             return 1;
  25.         }
  26.         if(IsPlayerInAnyVehicle(playerid)) {
  27.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
  28.             SendClientMessageEx(playerid, COLOR_GREY, "   Gold Rims Added to Vehicle!");
  29.         }
  30.     }
  31.     return 1;
  32. }
  33.  
  34. CMD:cutterrims(playerid, params[])
  35. {
  36.     if(IsPlayerConnected(playerid)) {
  37.         if(PlayerInfo[playerid][pAdmin] < 1) {
  38.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  39.             return 1;
  40.         }
  41.         if(IsPlayerInAnyVehicle(playerid)) {
  42.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1079);
  43.             SendClientMessageEx(playerid, COLOR_GREY, "   Cutter Rims Added to Vehicle!");
  44.         }
  45.     }
  46.     return 1;
  47. }
  48.  
  49. CMD:rimshine(playerid, params[])
  50. {
  51.     if(IsPlayerConnected(playerid)) {
  52.         if(PlayerInfo[playerid][pAdmin] < 1) {
  53.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  54.             return 1;
  55.         }
  56.         if(IsPlayerInAnyVehicle(playerid)) {
  57.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1075);
  58.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Rimshine wheels to your vehicle!");
  59.         }
  60.     }
  61.     return 1;
  62. }
  63.  
  64. CMD:mega(playerid, params[])
  65. {
  66.     if(IsPlayerConnected(playerid)) {
  67.         if(PlayerInfo[playerid][pAdmin] < 1) {
  68.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  69.             return 1;
  70.         }
  71.         if(IsPlayerInAnyVehicle(playerid)) {
  72.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1074);
  73.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Mega wheels to your vehicle!");
  74.         }
  75.     }
  76.     return 1;
  77. }
  78.  
  79. CMD:shadow(playerid, params[])
  80. {
  81.     if(IsPlayerConnected(playerid)) {
  82.         if(PlayerInfo[playerid][pAdmin] < 1) {
  83.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  84.             return 1;
  85.         }
  86.         if(IsPlayerInAnyVehicle(playerid)) {
  87.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1073);
  88.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Shadow wheels to your vehicle!");
  89.         }
  90.     }
  91.     return 1;
  92. }
  93.  
  94. CMD:grove(playerid, params[])
  95. {
  96.     if(IsPlayerConnected(playerid)) {
  97.         if(PlayerInfo[playerid][pAdmin] < 1) {
  98.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  99.             return 1;
  100.         }
  101.         if(IsPlayerInAnyVehicle(playerid)) {
  102.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1081);
  103.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Grove wheels to your vehicle!");
  104.         }
  105.     }
  106.     return 1;
  107. }
  108.  
  109. CMD:import(playerid, params[])
  110. {
  111.     if(IsPlayerConnected(playerid)) {
  112.         if(PlayerInfo[playerid][pAdmin] < 1) {
  113.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  114.             return 1;
  115.         }
  116.         if(IsPlayerInAnyVehicle(playerid)) {
  117.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1082);
  118.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Import wheels to your vehicle!");
  119.         }
  120.     }
  121.     return 1;
  122. }
  123.  
  124. CMD:dollar(playerid, params[])
  125. {
  126.     if(IsPlayerConnected(playerid)) {
  127.         if(PlayerInfo[playerid][pAdmin] < 1) {
  128.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  129.             return 1;
  130.         }
  131.         if(IsPlayerInAnyVehicle(playerid)) {
  132.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1083);
  133.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Rimshine wheels to your vehicle!");
  134.         }
  135.     }
  136.     return 1;
  137. }
  138.  
  139. CMD:trance(playerid, params[])
  140. {
  141.     if(IsPlayerConnected(playerid)) {
  142.         if(PlayerInfo[playerid][pAdmin] < 1) {
  143.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  144.             return 1;
  145.         }
  146.         if(IsPlayerInAnyVehicle(playerid)) {
  147.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1084);
  148.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Trance wheels to your vehicle!");
  149.         }
  150.     }
  151.     return 1;
  152. }
  153.  
  154. CMD:hyd(playerid, params[])
  155. {
  156.     if(IsPlayerConnected(playerid)) {
  157.         if(PlayerInfo[playerid][pAdmin] < 1) {
  158.             SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
  159.             return 1;
  160.         }
  161.         if(IsPlayerInAnyVehicle(playerid)) {
  162.             AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  163.             SendClientMessageEx(playerid, COLOR_GREY, "You have added Rimshine wheels to your vehicle!");
  164.         }
  165.     }
  166.     return 1;
  167. }
  168.  
  169. #endif
Advertisement
Add Comment
Please, Sign In to add comment