[Ajuda] Problemas com Keys
#1

Estou a tentar criar uma especie de tecla para ligar um veiculo no servidor ..
o problema que a tecla que estou querendo usar й o 'SHIFT' or 'KEY_JUMP'
o problema й que aperto a tecla, e a funзгo nгo й chamada, mбs se eu apertar a tecla 'S' a funзгo й chamada
se alguem puder ajudar

Code:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new vehid = GetPlayerVehicleID(playerid);
        if(newkeys & KEY_JUMP)
        {
            new ST[7];
            GetVehicleParamsEx(vehid, ST[0], ST[1], ST[2], ST[3], ST[4], ST[5], ST[6]);
            SetVehicleParamsEx(vehid, VEHICLE_PARAMS_ON, ST[1], ST[2], ST[3], ST[4], ST[5], ST[6]);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problemas com Keys - by VenoN - 18.02.2014, 13:23
Re: Problemas com Keys - by Wanderson_SAMP - 18.02.2014, 13:37
Re: Problemas com Keys - by VenoN - 18.02.2014, 14:13
Re: Problemas com Keys - by Wanderson_SAMP - 18.02.2014, 14:38
Re: Problemas com Keys - by PT - 18.02.2014, 15:00

Forum Jump:


Users browsing this thread: 3 Guest(s)