SA-MP Forums Archive
[Ajuda] 3DTEXTLABEL Carro ! - 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] 3DTEXTLABEL Carro ! (/showthread.php?tid=498741)



3DTEXTLABEL Carro ! - sonmook - 04.03.2014

Fazer esse code Sumir quando o player entrar no carro e quando ele sair voltar dnv , Tipo quando ele tivйr fora do carro mostrar e quando tivйr dentro nгo mostrar.

ele mostra quando um veiculo й criado .

pawn Код:
new string[100];
        format(string, sizeof(string), "{00E138}| {FFFF2F}ЧBBS DMЧ {00E138}|\n {FFFFFF}Veiculo Criado por {00E138}%s",PlayerName(playerid));
        TextoCarros = Create3DTextLabel(string,AmareloS,0.000,0.000,0.000,10.0,0);
        Attach3DTextLabelToVehicle(TextoCarros, sCar[playerid], 0.0, 0.0, 0.1);



Re: 3DTEXTLABEL Carro ! - Dieguinho - 04.03.2014

use:

quando o jogador entra no carro
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

      Delete3DTextLabel(TextoCarros);
}
public OnPlayerExitVehicle(playerid, vehicleid)
{

      format(string, sizeof(string), "{00E138}| {FFFF2F}ЧBBS DMЧ {00E138}|\n {FFFFFF}Veiculo Criado por {00E138}%s",PlayerName(playerid));
      TextoCarros = Create3DTextLabel(string,AmareloS,0.000,0.000,0.000,10.0,0);
      Attach3DTextLabelToVehicle(TextoCarros, sCar[playerid], 0.0, 0.0, 0.1);



Re: 3DTEXTLABEL Carro ! - sonmook - 05.03.2014

Vou tentar aqui se Der certo dou edit .

deeu +REP .