[AJUDA] Bicicletas
#4

Quote:
Originally Posted by Sergiosousa
Посмотреть сообщение
nao da para o impedir mas sem o tirar do veiculo? "bicicleta"
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK) && IsPlayerInAnyVehicle(playerid))
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid) == 509 || 481 || 510)
        {
            return false;
        }
    }
    return 1;
}
Pode ser que assim funcione, pelo que eu prevejo, ao segurar a tecla o servidor irб retornar um valor nulo, assim anulando a aзгo...
Reply


Messages In This Thread
[AJUDA] Bicicletas - by Sergiosousa - 09.05.2012, 20:31
Re: [AJUDA] Bicicletas - by Linow - 09.05.2012, 20:47
Re: [AJUDA] Bicicletas - by Sergiosousa - 09.05.2012, 22:03
Re: [AJUDA] Bicicletas - by Linow - 09.05.2012, 22:49
Re: [AJUDA] Bicicletas - by Sergiosousa - 09.05.2012, 22:57

Forum Jump:


Users browsing this thread: 3 Guest(s)