[Ajuda] Velocimetro textdraw bugado
#1

Meu amigo fez (eu acho) esse velocimetro pra mim em outro gm uma vez e tava tentando transferir ele de gm

Consegui apagar o outro e colocar esse, mas parece que aqui ele ficou todo bugado o lugar das text
alguem pode me ajudar?

Код:
	for(new i=0; i<GetMaxPlayers(); i++)
	{
		VelocimetroLosT[i] = 1;
  		VelocimetroL[i] = TextDrawCreate(115.000000,343.000000, " ");
    	        TextDrawAlignment(VelocimetroL[i],0);
     	        TextDrawBackgroundColor(VelocimetroL[i],0x000000ff);
      	        TextDrawFont(VelocimetroL[i],3);
		TextDrawLetterSize(VelocimetroL[i],0.299999,1.200000);
  		TextDrawSetProportional(VelocimetroL[i],1);
    	        TextDrawSetShadow(VelocimetroL[i],1);
                TextDrawSetOutline(VelocimetroL[i],1);
     	        TextDrawColor(VelocimetroL[i],0xffffffff);
Код:
		new LuxZone[MAX_ZONE_NAME];
			GetPlayer2DZone(i, LuxZone, MAX_ZONE_NAME);
			new LKPH = floatround(value/800);
                        format(lstr,sizeof(lstr)," ~n~ ~n~ ~n~ ~n~     %sVelocidade: ~w~%d KM/h",MPH_KPH_Color,LKPH);
			TextDrawSetString(Lmph[i], lstr);
                        format(lstring,sizeof(lstring),"~r~  Veiculo: ~w~%s~n~~r~    Lataria: ~w~%.2f~n~~r~     Altitude: ~w~%.1f metros~n~~r~      Local: ~w~%s",veehName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,LPosZ,LuxZone);
			TextDrawSetString(lLFunc[i], lstring);
                        format(HGG, sizeof(HGG), " ~n~ ~n~ ~n~ ~n~ ~n~    ~r~Combustivel:~w~ %d%", Gas[vehicle]);
			TextDrawSetString(Text:VelocimetroL[i], HGG);
                        TextDrawShowForPlayer(i, VelocimetroL[i]);
                        LuX_ReadPlayerPosition[i][ReadX] = LPosX, LuX_ReadPlayerPosition[i][ReadY] = LPosY,                      LuX_ReadPlayerPosition[i][ReadZ] = LPosZ;
                        TextDrawShowForPlayer(i, Lmph[i]);
    		        TextDrawShowForPlayer(i, lLFunc[i]);
			LuX_SpeedoMeter[i] = 1;
                        AntiSpeedHack(i);
Coloquei sу a parte das textdraw porque acho que й o que ta bugado apenas. Ela ta fora de escala no tamanho e no lugar errado, o unico que ta certo, no lugar e tamanho й combustivel
Reply
#2

Eu recomendo fazer suas TextDraws do seu jeito, isso й muito fбcil usando o Zamaroht TextDraw Editor: http://www.solidfiles.com/d/52e7cdb955/
Reply
#3

ss: http://imgur.com/dWI15Xk

era pra todos ficarem assim, em volta ali do radar, desse tamanho, agora quando fui tirar a ss as outras informaзхes nem chegaram aparecer
Reply
#4

Deve estб Ocorrendo Algum Conflito ^^
Tente :
Код:
for(new i=0; i<GetMaxPlayers(); i++)
	{
		VelocimetroLosT[i] = 1;
  		VelocimetroL[i] = TextDrawCreate(115.000000,343.000000, "_");
    	        TextDrawAlignment(VelocimetroL[i],0);
     	        TextDrawBackgroundColor(VelocimetroL[i],0x000000ff);
      	        TextDrawFont(VelocimetroL[i],3);
		TextDrawLetterSize(VelocimetroL[i],0.299999,1.200000);
  		TextDrawSetProportional(VelocimetroL[i],1);
    	        TextDrawSetShadow(VelocimetroL[i],1);
                TextDrawSetOutline(VelocimetroL[i],1);
     	        TextDrawColor(VelocimetroL[i],0xffffffff);
й

Код:
new LuxZone[MAX_ZONE_NAME];
GetPlayer2DZone(i, LuxZone, MAX_ZONE_NAME);
new LKPH = floatround(value/800);
format(lstr,sizeof(lstr)," ~n~ ~n~ ~n~ ~n~     %sVelocidade: ~w~%d KM/h",MPH_KPH_Color,LKPH);
TextDrawSetString(Lmph[i], lstr);
format(lstring,sizeof(lstring),"~r~  Veiculo: ~w~%s~n~~r~    Lataria: ~w~%.2f~n~~r~     Altitude: ~w~%.1f metros~n~~r~      Local: ~w~%s",veehName[GetVehicleModel(GetPlayerVehicleID(i))-400],L_VehHealth,LPosZ,LuxZone);
TextDrawSetString(lLFunc[i], lstring);
format(HGG, sizeof(HGG), " ~n~ ~n~ ~n~ ~n~ ~n~    ~r~Combustivel:~w~ %d%", Gas[vehicle]);
TextDrawSetString(Text:VelocimetroL[i], lstr);
TextDrawSetString(Text:VelocimetroL[i], lstring);
TextDrawSetString(Text:VelocimetroL[i], HGG);
TextDrawShowForPlayer(i, VelocimetroL[i]);
LuX_ReadPlayerPosition[i][ReadX] = LPosX, LuX_ReadPlayerPosition[i][ReadY] = LPosY,                      LuX_ReadPlayerPosition[i][ReadZ] = LPosZ;
TextDrawShowForPlayer(i, Lmph[i]);
TextDrawShowForPlayer(i, lLFunc[i]);
LuX_SpeedoMeter[i] = 1;
AntiSpeedHack(i);
+Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)