[Pedido] Ligar Veiculo Para Andar !!
#1

Opa, como eu faзo pra que quando o player entre no veiculo ele tenha qe digitar o comando /veiculo e tenha qe ligar o veiculo para poder andar...

TIPO: entra veiculo = veiculo desligado

MEU DIALOG:
pawn Код:
if(listitem==3)
{
if(Engine[playerid]==0)
 {
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
Engine[playerid]=1;
}
else if(Engine[playerid]==1)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Engine[playerid]=0;
}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)