03.10.2015, 01:39
(
Последний раз редактировалось tiiP; 03.10.2015 в 04:02.
)
@Resolvido
Fala galerinha.
Estou com uma nova dъvida :c
Tenho o meu velocimetro, e nele, tenho os textos, e preciso alterar o nome da linha se ele estiver em um tipo de carro diferente...
Exemplo:
Se entrar em um carro comum a gasolina > Velocнmetro muda para: "Gasolina:"
Se entrar em um caminhгo ou фnibus a diesel > Velocнmetro muda para: "Diesel:"
Porйm, esse texto aparece na OnPlayerConnect, onde nгo tem 'playerid'.
Tenho uma stock chamada 'VeiculoDiesel' onde verifica se й um veiculo diesel.
Tentei fazer o seguinte:
Porйm, new vehicleid = GetPlayerVehicleID(playerid); nгo consegue retornar o 'PLAYERID'.
Onde serб mais adequado eu colocar a textdraw amigos?
PS. Desculpa pelo tamanho da 'Dъvida' rs. (Fiz isso para vocкs entenderem <3)
@Edit:
Uhuu х/ 69 posts ( ͡° ͜ʖ ͡°)
Atenciosamente,
TiiP
Fala galerinha.
Estou com uma nova dъvida :c
Tenho o meu velocimetro, e nele, tenho os textos, e preciso alterar o nome da linha se ele estiver em um tipo de carro diferente...
Exemplo:
Se entrar em um carro comum a gasolina > Velocнmetro muda para: "Gasolina:"
Se entrar em um caminhгo ou фnibus a diesel > Velocнmetro muda para: "Diesel:"
Porйm, esse texto aparece na OnPlayerConnect, onde nгo tem 'playerid'.
PHP код:
textVelocimetro[4] = TextDrawCreate(531.000000, 387.000000, "Veiculo~n~~n~Velocidade~n~~n~TipoCombustivel~n~~n~Lataria");
TextDrawAlignment(textVelocimetro[4], 3);
TextDrawBackgroundColor(textVelocimetro[4], 0);
TextDrawFont(textVelocimetro[4], 2);
TextDrawLetterSize(textVelocimetro[4], 0.210000, 0.799999);
TextDrawColor(textVelocimetro[4], -186);
TextDrawSetOutline(textVelocimetro[4], 0);
TextDrawSetProportional(textVelocimetro[4], 1);
TextDrawSetShadow(textVelocimetro[4], 1);
TextDrawSetSelectable(textVelocimetro[4], 0);
Tentei fazer o seguinte:
PHP код:
new vehicleid = GetPlayerVehicleID(playerid);
if(VeiculoDiesel(vehicleid))
{
textVelocimetro[4] = TextDrawCreate(531.000000, 387.000000, "Veiculo~n~~n~Velocidade~n~~n~Diesel~n~~n~Lataria");
TextDrawAlignment(textVelocimetro[4], 3);
TextDrawBackgroundColor(textVelocimetro[4], 0);
TextDrawFont(textVelocimetro[4], 2);
TextDrawLetterSize(textVelocimetro[4], 0.210000, 0.799999);
TextDrawColor(textVelocimetro[4], -186);
TextDrawSetOutline(textVelocimetro[4], 0);
TextDrawSetProportional(textVelocimetro[4], 1);
TextDrawSetShadow(textVelocimetro[4], 1);
TextDrawSetSelectable(textVelocimetro[4], 0);
}
Onde serб mais adequado eu colocar a textdraw amigos?

PS. Desculpa pelo tamanho da 'Dъvida' rs. (Fiz isso para vocкs entenderem <3)
@Edit:
Uhuu х/ 69 posts ( ͡° ͜ʖ ͡°)
Atenciosamente,
TiiP
