19.01.2017, 18:11
RepairVehicle й isto?
@Edit
Tenta usar assim
@Edit
Tenta usar assim
pawn Код:
if(Nitro(GetPlayerVehicleID(playerid)) && (oldkeys & 1 || oldkeys & 4))
{
if(Autotunning[playerid] == 1)
{
if(PlayerDados[playerid][Admin] == 1 || PlayerDados[playerid][Admin] == 2 || PlayerDados[playerid][Admin] == 3 || PlayerDados[playerid][Admin] == 4 || PlayerDados[playerid][Admin] == 5 || PlayerDados[playerid][VIP] == 1)
{
new var5 = 0;
var5 = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562) {
AddVehicleComponent(var5, 1046);
AddVehicleComponent(var5, 1171);
AddVehicleComponent(var5, 1149);
AddVehicleComponent(var5, 1035);
AddVehicleComponent(var5, 1147);
AddVehicleComponent(var5, 1036);
AddVehicleComponent(var5, 1040);
ChangeVehiclePaintjob(var5, 2);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560) {
AddVehicleComponent(var5, 1028);
AddVehicleComponent(var5, 1169);
AddVehicleComponent(var5, 1141);
AddVehicleComponent(var5, 1032);
AddVehicleComponent(var5, 1138);
AddVehicleComponent(var5, 1026);
AddVehicleComponent(var5, 1027);
ChangeVehiclePaintjob(var5, 2);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565) {
AddVehicleComponent(var5, 1046);
AddVehicleComponent(var5, 1153);
AddVehicleComponent(var5, 1150);
AddVehicleComponent(var5, 1054);
AddVehicleComponent(var5, 1049);
AddVehicleComponent(var5, 1047);
AddVehicleComponent(var5, 1051);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559) {
AddVehicleComponent(var5, 1065);
AddVehicleComponent(var5, 1160);
AddVehicleComponent(var5, 1159);
AddVehicleComponent(var5, 1067);
AddVehicleComponent(var5, 1162);
AddVehicleComponent(var5, 1069);
AddVehicleComponent(var5, 1071);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561) {
AddVehicleComponent(var5, 1064);
AddVehicleComponent(var5, 1155);
AddVehicleComponent(var5, 1154);
AddVehicleComponent(var5, 1055);
AddVehicleComponent(var5, 1158);
AddVehicleComponent(var5, 1056);
AddVehicleComponent(var5, 1062);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558) {
AddVehicleComponent(var5, 1089);
AddVehicleComponent(var5, 1166);
AddVehicleComponent(var5, 1168);
AddVehicleComponent(var5, 1088);
AddVehicleComponent(var5, 1164);
AddVehicleComponent(var5, 1090);
AddVehicleComponent(var5, 1094);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575) {
AddVehicleComponent(var5, 1044);
AddVehicleComponent(var5, 1174);
AddVehicleComponent(var5, 1176);
AddVehicleComponent(var5, 1042);
AddVehicleComponent(var5, 1099);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534) {
AddVehicleComponent(var5, 1126);
AddVehicleComponent(var5, 1179);
AddVehicleComponent(var5, 1180);
AddVehicleComponent(var5, 1122);
AddVehicleComponent(var5, 1101);
AddVehicleComponent(var5, 1125);
AddVehicleComponent(var5, 1123);
AddVehicleComponent(var5, 1100);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536) {
AddVehicleComponent(var5, 1104);
AddVehicleComponent(var5, 1182);
AddVehicleComponent(var5, 1184);
AddVehicleComponent(var5, 1108);
AddVehicleComponent(var5, 1107);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 535) {
AddVehicleComponent(var5, 1104);
AddVehicleComponent(var5, 1182);
AddVehicleComponent(var5, 1184);
AddVehicleComponent(var5, 1108);
AddVehicleComponent(var5, 1107);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567) {
AddVehicleComponent(var5, 1129);
AddVehicleComponent(var5, 1189);
AddVehicleComponent(var5, 1187);
AddVehicleComponent(var5, 1102);
AddVehicleComponent(var5, 1133);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
ChangeVehiclePaintjob(var5, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420) {
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
AddVehicleComponent(var5, 1139);
AddVehicleComponent(var5, 1147);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400) {
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1013);
AddVehicleComponent(var5, 1079);
AddVehicleComponent(var5, 1086);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 444) {
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 556) {
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 557) {
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401) {
AddVehicleComponent(var5, 1086);
AddVehicleComponent(var5, 1139);
AddVehicleComponent(var5, 1079);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1012);
AddVehicleComponent(var5, 1013);
AddVehicleComponent(var5, 1042);
AddVehicleComponent(var5, 1043);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1006);
AddVehicleComponent(var5, 1007);
AddVehicleComponent(var5, 1017);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 483) {
AddVehicleComponent(var5, 1028);
AddVehicleComponent(var5, 1169);
AddVehicleComponent(var5, 1141);
AddVehicleComponent(var5, 1032);
AddVehicleComponent(var5, 1138);
AddVehicleComponent(var5, 1026);
AddVehicleComponent(var5, 1027);
ChangeVehiclePaintjob(var5, 0);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576) {
ChangeVehiclePaintjob(var5, 2);
AddVehicleComponent(var5, 1191);
AddVehicleComponent(var5, 1193);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1079);
AddVehicleComponent(var5, 1134);
AddVehicleComponent(var5, 1137);
}
else{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1079);
}
RepairVehicle(var5);
}
}
}