23.08.2010, 12:48
pawn Код:
if(strcmp(cmd, "/tunarcarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nгo esta autorizado a usar este comando!");
return 1;
}
if(admtrampando[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trampo)");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
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, 4);
ChangeVehicleColor(var5, 6, 6);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
}
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, 0);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
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, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1087);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1139);
AddVehicleComponent(var5, 1147);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1087);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1013);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1086);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 444)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 556)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 557)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
{
AddVehicleComponent(var5, 1086);
AddVehicleComponent(var5, 1139);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1087);
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)) == 576)
{
ChangeVehiclePaintjob(var5, 0);
AddVehicleComponent(var5, 1191);
AddVehicleComponent(var5, 1193);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
AddVehicleComponent(var5, 1134);
AddVehicleComponent(var5, 1137);
}
else
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
}
return 1;
}
}
return 1;
}