[Ajuda] TextDraw's nos carros.
#1

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);
Reply
#2

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

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);
Reply
#4

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...
Reply
#5

Alguem ajuda
Reply
#6

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)