[Ajuda] Sistema de Ligar/Desligar & Veiculos
#4

Tentei assim nгo funciona sou obrigado a aperta Caps para ligar igual :/

pawn Код:
if(IsPlayerInAnyVehicle(playerid) && newkeys == 1)
    {
        if(motor[playerid] == 0)
        {
            if(GetVehicleModel(GetPlayerVehicleID(playerid) == 509 || GetPlayerVehicleID(playerid) == 510 || GetPlayerVehicleID(playerid)) == 481)
            {
                new car = GetPlayerVehicleID(playerid), wi, ll, ia, n, dlc, dmais, he;
                GetVehicleParamsEx(car, wi, ll, ia, n, dlc, dmais, he);
                SetVehicleParamsEx(car, VEHICLE_PARAMS_ON, ll, ia, n, dlc, dmais, he);
                motor[playerid] = 1;
                return 1;
            }
            new car = GetPlayerVehicleID(playerid), wi, ll, ia, n, dlc, dmais, he;
            GetVehicleParamsEx(car, wi, ll, ia, n, dlc, dmais, he);
            SetVehicleParamsEx(car, VEHICLE_PARAMS_ON, ll, ia, n, dlc, dmais, he);
            motor[playerid] = 1;
            SendClientMessage(playerid, 0x40C1FFAA, "Vocк ligou o veiculo!");
            return 1;
        }
        else if(motor[playerid] == 1)
        {
            new car = GetPlayerVehicleID(playerid), wi, ll, ia, n, dlc, dmais, he;
            GetVehicleParamsEx(car, wi, ll, ia, n, dlc, dmais, he);
            SetVehicleParamsEx(car, VEHICLE_PARAMS_OFF, ll, ia, n, dlc, dmais, he);
            motor[playerid] = 0;
            return 1;
        }
        return 1;
    }
Reply


Messages In This Thread
Sistema de Ligar/Desligar & Veiculos - by MichelScripter - 02.06.2013, 13:38
Re: Sistema de Ligar/Desligar & Veiculos - by Cromado - 02.06.2013, 13:40
Re: Sistema de Ligar/Desligar & Veiculos - by AlucardSnow - 02.06.2013, 13:42
Re: Sistema de Ligar/Desligar & Veiculos - by MichelScripter - 02.06.2013, 13:46
Re: Sistema de Ligar/Desligar & Veiculos - by VivendoVirtual - 02.06.2013, 15:45
Re: Sistema de Ligar/Desligar & Veiculos - by MichelScripter - 02.06.2013, 15:51
Re: Sistema de Ligar/Desligar & Veiculos - by VivendoVirtual - 02.06.2013, 16:45

Forum Jump:


Users browsing this thread: 2 Guest(s)