09.06.2012, 01:35
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:
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;
}
}