[AJUDA]SISTEMA DE ENGINE NO SAMP 0.3C
#2

pawn Код:
new motor[MAX_PLAYERS], luz[MAX_PLAYERS], alarme[MAX_PLAYERS], portas[MAX_PLAYERS], capф[MAX_PLAYERS], portamalas[MAX_PLAYERS], objetivo[MAX_PLAYERS];
pawn Код:
new sistemadecarro = GetPlayerVehicleID(playerid);
pawn Код:
public OnGameModeInit()
{
    ManualVehicleEngineAndLights();
}
pawn Код:
if (strcmp("/ligar motor", cmdtext, true, 10) == 0)
{
    new mot, lu, alar, por, cap, porma, ob;

    if(motor[playerid] == 0)//Quando estб desligado.
    {
        GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
        SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
        motor[playerid] = 1;//1 й igual a ligado e 0 й igual a desligado.
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)