SA-MP Forums Archive
[Pedido] Detectar movimento do veiculo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Detectar movimento do veiculo (/showthread.php?tid=477489)



Detectar movimento do veiculo - MichelScripter - 24.11.2013

qual й a funзгo que detectar se um veiculo estar dando rй?


Re: Detectar movimento do veiculo - MichelScripter - 24.11.2013

Alguйm?


Re: Detectar movimento do veiculo - WLSF - 24.11.2013

Verifica se o cara tб dentro de um carro, e verifica se a tecla que ele tб apertando й a tecla 'S'.


Re: Detectar movimento do veiculo - MichelScripter - 24.11.2013

vou tentar aki!


Re: Detectar movimento do veiculo - MichelScripter - 24.11.2013

Fiz assim vey n funfou :/

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInAnyVehicle(playerid) && newkeys == 32)
    {
    PlayerPlaySound(playerid, 1077, 0.0, 0.0, 10.0);
    }
    return 1;
}



Re: Detectar movimento do veiculo - CharlieBrown - 24.11.2013

tenta
pawn Код:
if(!IsPlayerInAnyVehicle(playerid)



Re: Detectar movimento do veiculo - WLSF - 24.11.2013

Quote:
Originally Posted by CharlieBrown
Посмотреть сообщение
tenta
pawn Код:
if(!IsPlayerInAnyVehicle(playerid)
Assim vai verificar se ele nгo tб no veнculo, nгo й isso que o cara quer.


@Tуpico

Verifica se a tecla й para quando tб no veнculo mesmo, e tenta usar a verificaзгo (newkeys & id), creio que seja mais apropriada pelo que tem escrito na WIKI.

Abraзos.


Re: Detectar movimento do veiculo - MichelScripter - 25.11.2013

Conseguir vlw, ae quem me deu umas dicas