[Ajuda] Ajuda com des/ligar motor
#1

Tipo meu sistema ta com ums bug tipo o passageiro pode desligar o motor da moto

e o oltro bug e tipo entro num carro ele ta desligado ta ae ligo ae depois entro em oltro desligado ae do /motor tem que desligar ele sem que ele ja esta desligado e depois do /motor de novo ae que ele liga ae o sistema

e com o farol a mema coisa dos bug

PHP код:
    if (strcmp("/farol"cmdtexttrue10) == 0)
    {
        new 
vehveh GetPlayerVehicleID(playerid);
        new 
enginelightsalarmdoorsbonnetbootobjective;
        {
            if(
GetPVarInt(playerid"lights") == 0)
            {
                
GetVehicleParamsEx(vehvehenginelightsalarmdoorsbonnetbootobjective);
                
SetVehicleParamsEx(vehvehengine,VEHICLE_PARAMS_ONalarmdoorsbonnetbootobjective);
                
SendClientMessage(playerid, -1"{32CD32}Farol do veiculo Ligado.");
                
SetPVarInt(playerid"lights"1);
                return 
1;
            }
            else if(
GetPVarInt(playerid"lights") == 1)
            {
                
GetVehicleParamsEx(vehvehenginelightsalarmdoorsbonnetbootobjective);
                
SetVehicleParamsEx(vehvehengineVEHICLE_PARAMS_OFFalarmdoorsbonnetbootobjective);
                
SendClientMessage(playerid, -1"{32CD32}Farol do veiculo Desligado.");
                
SetPVarInt(playerid"lights"0);
                return 
1;
            }
        }
    }
    if (
strcmp("/motor"cmdtexttrue10) == 0)
    {
        new 
vehveh GetPlayerVehicleID(playerid);
        new 
enginelightsalarmdoorsbonnetbootobjective;
        {
            if(
GetPVarInt(playerid"engine") == 0)
            {
                 
GetVehicleParamsEx(vehvehenginelightsalarmdoorsbonnetbootobjective);
                 
SetVehicleParamsEx(vehvehVEHICLE_PARAMS_ONlightsalarmdoorsbonnetbootobjective);
                 
SendClientMessage(playerid, -1"{32CD32}Motor do veiculo Ligado.");
                 
SetPVarInt(playerid"engine"1);
                 return 
1;
            }
            else if(
GetPVarInt(playerid"engine") == 1)
            {
                 
GetVehicleParamsEx(vehvehenginelightsalarmdoorsbonnetbootobjective);
                 
SetVehicleParamsEx(vehvehVEHICLE_PARAMS_OFFlightsalarmdoorsbonnetbootobjective);
                 
SendClientMessage(playerid, -1"{32CD32}Motor do veiculo Desligado.");
                 
SetPVarInt(playerid"engine"0);
                 return 
1;
            }
        }
    } 
Me Ajuda
Reply


Messages In This Thread
Ajuda com des/ligar motor - by zDbruno - 12.06.2014, 16:54
Re: Ajuda com des/ligar motor - by MultiKill - 12.06.2014, 17:29
Re: Ajuda com des/ligar motor - by zDbruno - 12.06.2014, 22:34
Re: Ajuda com des/ligar motor - by MultiKill - 12.06.2014, 22:52
Re: Ajuda com des/ligar motor - by zDbruno - 12.06.2014, 22:59

Forum Jump:


Users browsing this thread: 1 Guest(s)