[Ajuda] Mesma Tecla 2 Funзхes.
#4

pawn Код:
if ((newkeys == 256)) // Q para ligar o carro.
    {
        if (IsPlayerInAnyVehicle(playerid) && motor[playerid] == 0)
        {
            new mot, lu, alar, por, cap, porma, ob;
            new carro = GetPlayerVehicleID(playerid);
            if (carro != INVALID_VEHICLE_ID)

            GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
            SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
            motor[playerid] = 1;
            SendClientMessage(playerid, Branco, "Veiculo {2F991A}Ligado!");
            return 1;
        }
        if (IsPlayerInAnyVehicle(playerid) && motor[playerid] == 1)
        {
            new mot, lu, alar, por, cap, porma, ob;
            new carro = GetPlayerVehicleID(playerid);
            if (carro != INVALID_VEHICLE_ID)

            GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
            SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
            motor[playerid] = 0;
            SendClientMessage(playerid, Branco, "Veiculo {E31919}Desligado!");
            return 1;  
        }
   }
Reply


Messages In This Thread
Mesma Tecla 2 Funзхes. - by Lucas-Fc - 04.12.2012, 22:58
Re: Mesma Tecla 2 Funзхes. - by Schocc - 04.12.2012, 23:07
Re: Mesma Tecla 2 Funзхes. - by Lucas-Fc - 04.12.2012, 23:10
Re: Mesma Tecla 2 Funзхes. - by Dolby - 04.12.2012, 23:12
Re: Mesma Tecla 2 Funзхes. - by Schocc - 04.12.2012, 23:20
Re: Mesma Tecla 2 Funзхes. - by Dolby - 04.12.2012, 23:23
Re: Mesma Tecla 2 Funзхes. - by Lucas-Fc - 04.12.2012, 23:25
Re: Mesma Tecla 2 Funзхes. - by Schocc - 04.12.2012, 23:36
Re: Mesma Tecla 2 Funзхes. - by Lucas-Fc - 04.12.2012, 23:47
Re: Mesma Tecla 2 Funзхes. - by ViniBorn - 05.12.2012, 00:10

Forum Jump:


Users browsing this thread: 4 Guest(s)