SA-MP Forums Archive
[Ajuda] TextDraw's nos carros. - 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] TextDraw's nos carros. (/showthread.php?tid=450991)



TextDraw's nos carros. - FraX - 15.07.2013

Boas, o meu problema й o seguinte:
Quero por umas textdrawґs no servidor, mas sу quero que apareзam quando entro no carro e saiam quando saiu do carro, alguйm me podia ajudar? +REP a quem ajudar

Obrigado

Tenho as seguintes text draws, mas с sei aonde mete-las e como mete-las

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;

Textdraw0 = TextDrawCreate(239.000000, 33.000000, "Veiculo de Aluguel");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 0.990000, 4.000000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, -260.000000);

Textdraw1 = TextDrawCreate(786.000000, -5.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 1.220000, 12.49999;
TextDrawColor(Textdraw1, 16777215);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, -10.000000, 40.000000);

Textdraw2 = TextDrawCreate(249.000000, 23.000000, "-");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 0);
TextDrawLetterSize(Textdraw2, 17.410030, 1.000000);
TextDrawColor(Textdraw2, 16777215);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);

Textdraw3 = TextDrawCreate(249.000000, 76.000000, "-");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 0);
TextDrawLetterSize(Textdraw3, 17.410030, 1.000000);
TextDrawColor(Textdraw3, 16777215);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);


Re: TextDraw's nos carros. - Standby - 15.07.2013

nгo se usa isso
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
https://sampwiki.blast.hk/wiki/Create3DTextLabel


Respuesta: TextDraw's nos carros. - Parka - 15.07.2013

1.- Vocк sу pode dar rep quando vocк tem mais de 50 mensagens.

2.- quando anexar um script colocб-lo asimm [ pawn ] [ /pawn ] sem limites.

3.- vai em OnGameModeInit

pawn Код:
//Acima de sua GM
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;


//OnGameModeInit
Textdraw0 = TextDrawCreate(239.000000, 33.000000, "Veiculo de Aluguel");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 0.990000, 4.000000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, -260.000000);

Textdraw1 = TextDrawCreate(786.000000, -5.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 1.220000, 12.49999;
TextDrawColor(Textdraw1, 16777215);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, -10.000000, 40.000000);

Textdraw2 = TextDrawCreate(249.000000, 23.000000, "-");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 0);
TextDrawLetterSize(Textdraw2, 17.410030, 1.000000);
TextDrawColor(Textdraw2, 16777215);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);

Textdraw3 = TextDrawCreate(249.000000, 76.000000, "-");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 0);
TextDrawLetterSize(Textdraw3, 17.410030, 1.000000);
TextDrawColor(Textdraw3, 16777215);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);


//OnPlayerConnect
TextDrawShowForPlayer( playerid, Textdraw0);
TextDrawShowForPlayer( playerid, Textdraw1);
TextDrawShowForPlayer( playerid, Textdraw2);
TextDrawShowForPlayer( playerid, Textdraw3);



Respuesta: TextDraw's nos carros. - FraX - 15.07.2013

Quote:
Originally Posted by Parka
Посмотреть сообщение
1.- Vocк sу pode dar rep quando vocк tem mais de 50 mensagens.

2.- quando anexar um script colocб-lo asimm [ pawn ] [ /pawn ] sem limites.

3.- vai em OnGameModeInit

pawn Код:
//Acima de sua GM
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;


//OnGameModeInit
Textdraw0 = TextDrawCreate(239.000000, 33.000000, "Veiculo de Aluguel");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 0.990000, 4.000000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, -260.000000);

Textdraw1 = TextDrawCreate(786.000000, -5.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 1.220000, 12.49999;
TextDrawColor(Textdraw1, 16777215);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, -10.000000, 40.000000);

Textdraw2 = TextDrawCreate(249.000000, 23.000000, "-");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 0);
TextDrawLetterSize(Textdraw2, 17.410030, 1.000000);
TextDrawColor(Textdraw2, 16777215);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);

Textdraw3 = TextDrawCreate(249.000000, 76.000000, "-");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 0);
TextDrawLetterSize(Textdraw3, 17.410030, 1.000000);
TextDrawColor(Textdraw3, 16777215);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);


//OnPlayerConnect
TextDrawShowForPlayer( playerid, Textdraw0);
TextDrawShowForPlayer( playerid, Textdraw1);
TextDrawShowForPlayer( playerid, Textdraw2);
TextDrawShowForPlayer( playerid, Textdraw3);
Nгo aparece nada quando entro no carro...


Respuesta: TextDraw's nos carros. - FraX - 15.07.2013

Alguem ajuda


Re: TextDraw's nos carros. - Delta 4 - 15.07.2013

Inicio do gamemode:

pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
OnGameModeInit:

pawn Код:
Textdraw0 = TextDrawCreate(239.000000, 33.000000, "Veiculo de Aluguel");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 0);
TextDrawLetterSize(Textdraw0, 0.990000, 4.000000);
TextDrawColor(Textdraw0, 16777215);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, -260.000000);

Textdraw1 = TextDrawCreate(786.000000, -5.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 1.220000, 12.49999;
TextDrawColor(Textdraw1, 16777215);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, -10.000000, 40.000000);

Textdraw2 = TextDrawCreate(249.000000, 23.000000, "-");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 0);
TextDrawLetterSize(Textdraw2, 17.410030, 1.000000);
TextDrawColor(Textdraw2, 16777215);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);

Textdraw3 = TextDrawCreate(249.000000, 76.000000, "-");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 0);
TextDrawLetterSize(Textdraw3, 17.410030, 1.000000);
TextDrawColor(Textdraw3, 16777215);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
OnPlayerEnterVehicle:

pawn Код:
TextDrawShowForPlayer( playerid, Textdraw0);
TextDrawShowForPlayer( playerid, Textdraw1);
TextDrawShowForPlayer( playerid, Textdraw2);
TextDrawShowForPlayer( playerid, Textdraw3);
OnPlayerExitVehicle:

pawn Код:
TextDrawHideForPlayer( playerid, Textdraw0);
TextDrawHideForPlayer( playerid, Textdraw1);
TextDrawHideForPlayer( playerid, Textdraw2);
TextDrawHideForPlayer( playerid, Textdraw3);