03.02.2010, 12:46
Tipo galera estou tentando por um filter script de tunar so para os drifters mais eu nao consiguo alguem pode me dar uma forзa? o numero da org e 13
Code:
#include <a_samp> #define filterscitps #pragma tabsize 0 #define DIALOGID 3301 #define nitro 1010 #define rodawire 1081 #define suspensao 1087 public OnFilterScriptInit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/tuning", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tuning Menu v1 - by: Xeretta ;D", "Rodas\nCores\nPaintjobs\nNitro\nSuspensгo\nAutoTuning", "Okay", "Cancelar"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new car; car = GetPlayerVehicleID(playerid); if(dialogid == DIALOGID) // Menu { if(response) { if(listitem == 0) // Rodas { ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Rodas", "Estilo 1 \nEstilo 2 \nEstilo 3 \nEstilo 4 \nEstilo 5 \nEstilo 6 \nVoltar", "Okay", "Cancelar"); } if(listitem == 1) // Cores { ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Cores", "Preto \nBranco \nAzul Escuro \nAzul Claro \nVerde \nVermelho \nAmarelo \nRosa \nVoltar", "Pintar!", "Cancelar"); } if(listitem == 2) // Paintjobs { ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Paintjobs", "Estilo 1 \nEstilo 2 \nEstilo 3 \nVoltar", "Pintar!", "Cancelar"); } if(listitem == 3) // Nitro { AddVehicleComponent(car,1010); } if(listitem == 4) // Suspensгo { AddVehicleComponent(car,1087); } if(listitem == 5) // AutoTuning { new idcarro; idcarro = GetPlayerVehicleID(playerid); if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562) { AddVehicleComponent(idcarro,1046); AddVehicleComponent(idcarro,1171); AddVehicleComponent(idcarro,1149); AddVehicleComponent(idcarro,1035); AddVehicleComponent(idcarro,1147); AddVehicleComponent(idcarro,1036); AddVehicleComponent(idcarro,1040); ChangeVehiclePaintjob(idcarro, 2); ChangeVehicleColor(idcarro, 6, 6); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560) { AddVehicleComponent(idcarro,1028); AddVehicleComponent(idcarro,1169); AddVehicleComponent(idcarro,1141); AddVehicleComponent(idcarro,1032); AddVehicleComponent(idcarro,1138); AddVehicleComponent(idcarro,1026); AddVehicleComponent(idcarro,1027); ChangeVehiclePaintjob(idcarro, 2); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565) { AddVehicleComponent(idcarro,1046); AddVehicleComponent(idcarro,1153); AddVehicleComponent(idcarro,1150); AddVehicleComponent(idcarro,1054); AddVehicleComponent(idcarro,1049); AddVehicleComponent(idcarro,1047); AddVehicleComponent(idcarro,1051); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 2); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559) { AddVehicleComponent(idcarro,1065); AddVehicleComponent(idcarro,1160); AddVehicleComponent(idcarro,1159); AddVehicleComponent(idcarro,1067); AddVehicleComponent(idcarro,1162); AddVehicleComponent(idcarro,1069); AddVehicleComponent(idcarro,1071); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 1); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561) { AddVehicleComponent(idcarro,1064); AddVehicleComponent(idcarro,1155); AddVehicleComponent(idcarro,1154); AddVehicleComponent(idcarro,1055); AddVehicleComponent(idcarro,1158); AddVehicleComponent(idcarro,1056); AddVehicleComponent(idcarro,1062); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 2); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558) { AddVehicleComponent(idcarro,1089); AddVehicleComponent(idcarro,1166); AddVehicleComponent(idcarro,1168); AddVehicleComponent(idcarro,1088); AddVehicleComponent(idcarro,1164); AddVehicleComponent(idcarro,1090); AddVehicleComponent(idcarro,1094); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 2); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575) { AddVehicleComponent(idcarro,1044); AddVehicleComponent(idcarro,1174); AddVehicleComponent(idcarro,1176); AddVehicleComponent(idcarro,1042); AddVehicleComponent(idcarro,1099); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 0); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534) { AddVehicleComponent(idcarro,1126); AddVehicleComponent(idcarro,1179); AddVehicleComponent(idcarro,1180); AddVehicleComponent(idcarro,1122); AddVehicleComponent(idcarro,1101); AddVehicleComponent(idcarro,1125); AddVehicleComponent(idcarro,1123); AddVehicleComponent(idcarro,1100); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 2); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536) { AddVehicleComponent(idcarro,1104); AddVehicleComponent(idcarro,1182); AddVehicleComponent(idcarro,1184); AddVehicleComponent(idcarro,1108); AddVehicleComponent(idcarro,1107); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 1); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567) { AddVehicleComponent(idcarro,1129); AddVehicleComponent(idcarro,1189); AddVehicleComponent(idcarro,1187); AddVehicleComponent(idcarro,1102); AddVehicleComponent(idcarro,1133); AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); ChangeVehiclePaintjob(idcarro, 2); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420) { AddVehicleComponent(idcarro,1010); AddVehicleComponent(idcarro,1087); AddVehicleComponent(idcarro,1081); AddVehicleComponent(idcarro,1139); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400) { AddVehicleComponent(idcarro,1010); AddVehicleComponent(idcarro,1087); AddVehicleComponent(idcarro,1018); AddVehicleComponent(idcarro,1013); AddVehicleComponent(idcarro,1081); AddVehicleComponent(idcarro,1086); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401) { AddVehicleComponent(idcarro,1086); AddVehicleComponent(idcarro,1139); AddVehicleComponent(idcarro,1081); AddVehicleComponent(idcarro,1010); AddVehicleComponent(idcarro,1087); AddVehicleComponent(idcarro,1012); AddVehicleComponent(idcarro,1013); AddVehicleComponent(idcarro,1042); AddVehicleComponent(idcarro,1043); AddVehicleComponent(idcarro,1018); AddVehicleComponent(idcarro,1006); AddVehicleComponent(idcarro,1007); AddVehicleComponent(idcarro,1017); } if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576) { ChangeVehiclePaintjob(idcarro,2); AddVehicleComponent(idcarro,1191); AddVehicleComponent(idcarro,1193); AddVehicleComponent(idcarro,1010); AddVehicleComponent(idcarro,1018); AddVehicleComponent(idcarro,1081); AddVehicleComponent(idcarro,1087); AddVehicleComponent(idcarro,1134); AddVehicleComponent(idcarro,1137); } else { AddVehicleComponent(idcarro,nitro); AddVehicleComponent(idcarro,rodawire); AddVehicleComponent(idcarro,suspensao); } } } return 1; } if(dialogid == DIALOGID+1) // Rodas { if(response) { if(listitem == 0) // Estilo 1 { AddVehicleComponent(car,1084); } if(listitem == 1) // Estilo 2 { AddVehicleComponent(car,1073); } if(listitem == 2) // Estilo 3 { AddVehicleComponent(car,1075); } if(listitem == 3) // Estilo 4 { AddVehicleComponent(car,1077); } if(listitem == 4) // Estilo 5 { AddVehicleComponent(car,1079); } if(listitem == 5) // Estilo 6 { AddVehicleComponent(car,1080); } if(listitem == 6) // Voltar { ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tuning Menu v1 - by: Xeretta ;D", "Rodas\nCores\nPaintjobs\nNitro\nSuspensгo\nAutoTuning", "Okay", "Cancelar"); } } return 1; } if(dialogid == DIALOGID+2) // Cores { if(response) { if(listitem == 0) // Preto { ChangeVehicleColor(car,0,0); } if(listitem == 1) // Branco { ChangeVehicleColor(car,1,1); } if(listitem == 2) // Azul Escuro { ChangeVehicleColor(car,425,425); } if(listitem == 3) // Azul Claro { ChangeVehicleColor(car,2,2); } if(listitem == 4) // Verde { ChangeVehicleColor(car,16,16); } if(listitem == 5) // Vermelho { ChangeVehicleColor(car,3,3); } if(listitem == 6) // Amarelo { ChangeVehicleColor(car,6,6); } if(listitem == 7) // Rosa { ChangeVehicleColor(car,146,146); } if(listitem == 8) // Voltar { ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tuning Menu v1 - by: Xeretta ;D", "Rodas\nCores\nPaintjobs\nNitro\nSuspensгo\nAutoTuning", "Okay", "Cancelar"); } } return 1; } if(dialogid == DIALOGID+3) // Paintjobs { if(response) { if(listitem == 0) // Estilo 1 { ChangeVehiclePaintjob(car,0); } if(listitem == 1) // Estilo 2 { ChangeVehiclePaintjob(car,1); } if(listitem == 2) // Estilo 3 { ChangeVehiclePaintjob(car,2); } if(listitem == 4) // Voltar { ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Tuning Menu v1 - by: Xeretta ;D", "Rodas\nCores\nPaintjobs\nNitro\nSuspensгo\nAutoTuning", "Okay", "Cancelar"); } } return 1; } return 0; }