SA-MP Forums Archive
[Ajuda] Animaзгo - 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: [Ajuda] Animaзгo (/showthread.php?tid=291014)



[Ajuda] Animaзгo - Nobiin - 18.10.2011

Estou querendo um simples comando que faзa parar uma animaзгo quando eu entrar em um determinado veнculo.


Re: [Ajuda] Animaзгo - Vai_Besta - 18.10.2011

public OnPlayerEnterVehicle
pawn Код:
if(vehicleid == id) return ClearAnimations(playerid);



Re: [Ajuda] Animaзгo - Mattos - 18.10.2011

na funзгo utilize

pawn Код:
public OnPlayerEnterVehicle
{
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
return 1;
}



Re: [Ajuda] Animaзгo - Nobiin - 18.10.2011

Код:
error 017: undefined symbol "id"
Precisa declarar alguma coisa?


Re: [Ajuda] Animaзгo - Vai_Besta - 18.10.2011

Troque o id pelo id do veiculo


Re: [Ajuda] Animaзгo - Nobiin - 18.10.2011

Mas tipo, agora eu estou querendo que faзa isso com todos os veнculos que eu entrar, vi que sу com um nгo vai adiantar aki.


Re: [Ajuda] Animaзгo - Vai_Besta - 18.10.2011

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    ClearAnimations(playerid);
    return 0x1;
}



Re: [Ajuda] Animaзгo - Nobiin - 18.10.2011

Os dois comandos funcionando perfeitamente.
Vlw Vai_Besta e Mateuscm...