[AJUDA] Acabar [FS]
#1

Boas malta,eu fiz FS,so que agora,presico ajuda de voces,queria que quando o player fizesse o comando /tunar,apareзe-se uma caixa dialog,e que o players esconhesse o item que quisesse para o carro.

FS:
pawn Код:
/*
                 Sistema de Tunning Criado por J0T4R97
                 Obs:[FS] Tuna e salva os modos
                 SE UTILIZAR NГO RETIRE OS CREDITOS!
                 SE MODIFICAR VOCE ESTБ A FAZER PLAJIO E ISSO DБ PRISГO!*/


#include <a_samp>

#if defined FILTERSCRIPT

enum vInfo
{
    mod1,
    mod2,
    mod3,
    mod4,
    mod5,
    mod6,
    mod7,
    mod8,
    mod9,
    mod10,
    mod11,
    mod12,
    mod13,
    mod14,
    mod15,
    mod16,
    mod17,
    owner
};

new VehicleInfo[701][vInfo];

new tuned;

new spoiler[20][0] = {
    {1000},
    {1001},
    {1002},
    {1003},
    {1014},
    {1015},
    {1016},
    {1023},
    {1058},
    {1060},
    {1049},
    {1050},
    {1138},
    {1139},
    {1146},
    {1147},
    {1158},
    {1162},
    {1163},
    {1164}
};

new nitro[3][0] = {
    {1008},
    {1009},
    {1010}
};

new fbumper[23][0] = {
    {1117},
    {1152},
    {1153},
    {1155},
    {1157},
    {1160},
    {1165},
    {1167},
    {1169},
    {1170},
    {1171},
    {1172},
    {1173},
    {1174},
    {1175},
    {1179},
    {1181},
    {1182},
    {1185},
    {1188},
    {1189},
    {1192},
    {1193}
};

new rbumper[22][0] = {
    {1140},
    {1141},
    {1148},
    {1149},
    {1150},
    {1151},
    {1154},
    {1156},
    {1159},
    {1161},
    {1166},
    {1168},
    {1176},
    {1177},
    {1178},
    {1180},
    {1183},
    {1184},
    {1186},
    {1187},
    {1190},
    {1191}
};

new exhaust[28][0] = {
    {1018},
    {1019},
    {1020},
    {1021},
    {1022},
    {1028},
    {1029},
    {1037},
    {1043},
    {1044},
    {1045},
    {1046},
    {1059},
    {1064},
    {1065},
    {1066},
    {1089},
    {1092},
    {1104},
    {1105},
    {1113},
    {1114},
    {1126},
    {1127},
    {1129},
    {1132},
    {1135},
    {1136}
};

new bventr[2][0] = {
    {1142},
    {1144}
};

new bventl[2][0] = {
    {1143},
    {1145}
};

new bscoop[4][0] = {
    {1004},
    {1005},
    {1011},
    {1012}
};

new rscoop[17][0] = {
    {1006},
    {1032},
    {1033},
    {1035},
    {1038},
    {1053},
    {1054},
    {1055},
    {1061},
    {1067},
    {1068},
    {1088},
    {1091},
    {1103},
    {1128},
    {1130},
    {1131}
};

new lskirt[21][0] = {
    {1007},
    {1026},
    {1031},
    {1036},
    {1039},
    {1042},
    {1047},
    {1048},
    {1056},
    {1057},
    {1069},
    {1070},
    {1090},
    {1093},
    {1106},
    {1108},
    {1118},
    {1119},
    {1133},
    {1122},
    {1134}
};

new rskirt[21][0] = {
    {1017},
    {1027},
    {1030},
    {1040},
    {1041},
    {1051},
    {1052},
    {1062},
    {1063},
    {1071},
    {1072},
    {1094},
    {1095},
    {1099},
    {1101},
    {1102},
    {1107},
    {1120},
    {1121},
    {1124},
    {1137}
};

new hydraulics[1][0] = {
    {1087}
};

new base[1][0] = {
    {1086}
};

new rbbars[4][0] = {
    {1109},
    {1110},
    {1123},
    {1125}
};

new fbbars[2][0] = {
    {1115},
    {1116}
};

new wheels[17][0] = {
    {1025},
    {1073},
    {1074},
    {1075},
    {1076},
    {1077},
    {1078},
    {1079},
    {1080},
    {1081},
    {1082},
    {1083},
    {1084},
    {1085},
    {1096},
    {1097},
    {1098}
};

new lights[2][0] = {
    {1013},
    {1024}
};

public SaveComponent(vehicleid,componentid)
{
    new playerid = GetDriverID(vehicleid);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
            if (strcmp(VehicleInfo[vehicleid][owner],PlInfo[playerid][name],false) == 0) {
                for(new s=0; s<20; s++) {
                    if(componentid == spoiler[s][0]) {
                        VehicleInfo[vehicleid][mod1] = componentid;
                    }
                }
                for(new s=0; s<3; s++) {
                    if(componentid == nitro[s][0]) {
                        VehicleInfo[vehicleid][mod2] = componentid;
                    }
                }
                for(new s=0; s<23; s++) {
                    if(componentid == fbumper[s][0]) {
                        VehicleInfo[vehicleid][mod3] = componentid;
                    }
                }
                for(new s=0; s<22; s++) {
                    if(componentid == rbumper[s][0]) {
                        VehicleInfo[vehicleid][mod4] = componentid;
                    }
                }
                for(new s=0; s<28; s++) {
                    if(componentid == exhaust[s][0]) {
                        VehicleInfo[vehicleid][mod5] = componentid;
                    }
                }
                for(new s=0; s<2; s++) {
                    if(componentid == bventr[s][0]) {
                        VehicleInfo[vehicleid][mod6] = componentid;
                    }
                }
                for(new s=0; s<2; s++) {
                    if(componentid == bventl[s][0]) {
                        VehicleInfo[vehicleid][mod7] = componentid;
                    }
                }
                for(new s=0; s<4; s++) {
                    if(componentid == bscoop[s][0]) {
                        VehicleInfo[vehicleid][mod8] = componentid;
                    }
                }
                for(new s=0; s<17; s++) {
                    if(componentid == rscoop[s][0]) {
                        VehicleInfo[vehicleid][mod9] = componentid;
                    }
                }
                for(new s=0; s<21; s++) {
                    if(componentid == lskirt[s][0]) {
                        VehicleInfo[vehicleid][mod10] = componentid;
                    }
                }
                for(new s=0; s<21; s++) {
                    if(componentid == rskirt[s][0]) {
                        VehicleInfo[vehicleid][mod11] = componentid;
                    }
                }
                for(new s=0; s<1; s++) {
                    if(componentid == hydraulics[s][0]) {
                        VehicleInfo[vehicleid][mod12] = componentid;
                    }
                }
                for(new s=0; s<1; s++) {
                    if(componentid == base[s][0]) {
                        VehicleInfo[vehicleid][mod13] = componentid;
                    }
                }
                for(new s=0; s<4; s++) {
                    if(componentid == rbbars[s][0]) {
                        VehicleInfo[vehicleid][mod14] = componentid;
                    }
                }
                for(new s=0; s<2; s++) {
                    if(componentid == fbbars[s][0]) {
                        VehicleInfo[vehicleid][mod15] = componentid;
                    }
                }
                for(new s=0; s<17; s++) {
                    if(componentid == wheels[s][0]) {
                        VehicleInfo[vehicleid][mod16] = componentid;
                    }
                }
                for(new s=0; s<2; s++) {
                    if(componentid == lights[s][0]) {
                        VehicleInfo[vehicleid][mod17] = componentid;
                    }
                }
                return 1;
            }
    }
    return 0;
}

public OnVehicleMod(vehicleid,componentid)
{
    SaveComponent(vehicleid, componentid);
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    ModVehicle(vehicleid);
    return 1;
}
stock ModVehicle(vehicleid)
{
    new tuned2 = 0;
    if(VehicleInfo[vehicleid][mod1] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod1]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod2] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod2]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod3] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod3]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod4] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod4]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod5] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod5]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod6] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod6]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod7] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod7]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod8] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod8]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod9] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod9]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod10] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod10]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod11] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod11]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod12] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod12]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod13] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod13]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod14] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod14]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod15] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod15]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod16] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod16]);
        tuned2 = 1;
    }
    if(VehicleInfo[vehicleid][mod17] != 0) {
        AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod17]);
        tuned2 = 1;
    }
    if(tuned2 == 1) {
        tuned++;
    }
}
stock GetDriverID(vehicleid)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(GetPlayerVehicleID(i) == vehicleid && GetPlayerState(i) == 2) return i;
    }
    return -1;
}
#endif
Este FS й 100% tunning,contem todas as partes tunnings existentes do GTA,so que queriavos pedir o comando /tunar,apareзe a dialogo e o player so escolher tunning. Por favor malta :S (FS feito por min 100%)
Reply
#2

Se o FS fosse feito por voce, vc saberia arrumar..
Reply
#3

Quote:
Originally Posted by Felipe_Wesker
Посмотреть сообщение
Se o FS fosse feito por voce, vc saberia arrumar..
O cara quer ajuda, se voce nao reparou o FS esta com os crйditos! -.-
Reply
#4

Acho que ele nгo deveria ter usado a palavra "eu fiz FS" pois estб obvio que nгo foi ele que fez! -.-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)