[AJUDA] /Veh
#10

Quote:
Originally Posted by [uGd]vSilv4_.
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/veh", true) == 0)
{
    if(IsPlayerConnected(playerid)) {
        if (strcmp(sendername,"Hugo_RooTz",true)==0 || strcmp(sendername,"leozin_staff",true)==0 || strcmp(sendername,"vazio_vazio",true)==0) {
            if(CreatedCar >= 200) {
                SendClientMessage(playerid, COLOR_GRAD1, "Jб criaram muitos carros, destrua alguns primeiro /destruirid");
                return true;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /veh [IDCARRO] [COR1] [COR2]");
                return true;
            }
            new car;
            car = strval(tmp);
            if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   Modelo Do Carro Tem Que Ser Entre 411 e 600 !"); return true; }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /veh [IDCARRO] [COR1] [COR2]");
                return true;
            }
            new COLOR1;
            COLOR1 = strval(tmp);
            if(COLOR1 < 0 || COLOR1 > 236) { SendClientMessage(playerid, COLOR_GREY, "   Nъmero Da Cor tem que ser entre 0 e 126 !"); return true; }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /veh [IDCARRO] [COR1] [COR2]");
                return true;
            }
            new COLOR2;
            COLOR2 = strval(tmp);
            if(COLOR2 < 0 || COLOR2 > 236) { SendClientMessage(playerid, COLOR_GREY, "   Nъmero Da Cor tem que ser entre 0 e 126 !"); return true; }
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(playerid, X,Y,Z);
            new carid = CreateVehicle(car, X,Y,Z, 0.0, COLOR1, COLOR2, 60000);
            new i;
            CreatedCars[CreatedCar] = carid;
            CreatedCar ++;
            format(string, sizeof(string), "   Veiculo %d Criado.", carid);
            SendClientMessage(playerid, COLOR_GREY, string);
            SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,0);
        }
    }
    return true;
}
Carro continua vindo trancado
Reply


Messages In This Thread
[AJUDA] /Veh - by Hugo_Matos - 02.03.2012, 15:45
Re: [AJUDA] /Veh - by paulor - 02.03.2012, 15:48
Re: [AJUDA] /Veh - by Hugo_Matos - 02.03.2012, 16:09
Re: [AJUDA] /Veh - by [uGd]vSilv4_. - 02.03.2012, 16:13
Re: [AJUDA] /Veh - by Hugo_Matos - 02.03.2012, 16:17
Re: [AJUDA] /Veh - by paulor - 02.03.2012, 16:19
Re: [AJUDA] /Veh - by [uGd]vSilv4_. - 02.03.2012, 16:24
Re: [AJUDA] /Veh - by Hugo_Matos - 02.03.2012, 16:33
Re: [AJUDA] /Veh - by [uGd]vSilv4_. - 02.03.2012, 16:35
Re: [AJUDA] /Veh - by Hugo_Matos - 02.03.2012, 16:38

Forum Jump:


Users browsing this thread: 2 Guest(s)