[Ajuda] Carros ligados
#2

Testa ai

pawn Код:
// Callback chamada quando o player entra no veiculo
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    // Cria as variaveis
    new engine, lights, alarm, doors, bonnet, boot, objective;

    // Liga Motor e luzes
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);

    return 1;
}



// Callback chamada quando o player sai do veiculo
public OnPlayerExitVehicle(playerid, vehicleid)
{
    // Cria as variaveis
    new engine, lights, alarm, doors, bonnet, boot, objective;

    // Verifica se o jogador e motorista do veiculo
    if (GetPlayerVehicleSeat(playerid) == 0)
    {
        // Desliga Motor e luzes
        GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(vehicleid, 0, 0, alarm, doors, bonnet, boot, objective);
    }

    return 1;
}
Reply


Messages In This Thread
Carros ligados - by HHwilliamHH - 05.01.2014, 00:45
Re: Carros ligados - by Eudes - 05.01.2014, 01:38
Re: Carros ligados - by HHwilliamHH - 05.01.2014, 13:49
Re: Carros ligados - by Schocc - 05.01.2014, 14:10
Re: Carros ligados - by HHwilliamHH - 05.01.2014, 15:00
Re: Carros ligados - by Schocc - 05.01.2014, 21:19
Re: Carros ligados - by HHwilliamHH - 05.01.2014, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)