[HELP] Textdraw
#1

I can't get it to be like the second picture help !!



Код:
                new String[128];
                new Float:X, Float:Y, Float:Z, Float:Speed;
                new vehicle = GetPlayerVehicleID(i);
                GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
                Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)),  floatpower(Z, 2))), 100.0);
                format(String,sizeof(String),"~b~~n~~r~Fuel: ~w~%i~n~~r~Mp/h: ~w~%i", Gas[vehicle], floatround(Speed, floatround_floor));
                if(VHSCreated[i] == true)
                {
                    TextDrawDestroy(VHS[i]);
                }
                VHS[i] = TextDrawCreate(496.000000,100.000000,String);
                TextDrawFont(VHS[i],1);
                TextDrawLetterSize(VHS[i],0.360000, 1.000000);
                TextDrawColor(VHS[i],0xffffffff);
                TextDrawSetProportional(VHS[i],1);
                TextDrawSetShadow(VHS[i],1);
                TextDrawBackgroundColor(VHS[i], 255);
                TextDrawUseBox(VHS[i], 0);
                TextDrawShowForPlayer(i, VHS[i]);
                VHSCreated[i] = true;
Reply
#2

Код:
format(String,sizeof(String),"~b~~n~~r~Fuel: ~w~%i ~r~Mp/h: ~w~%i", Gas[vehicle], floatround(Speed, floatround_floor));
Reply
#3

Thanks alot man !
Reply
#4

Strange how come when you get out of the vehicle the fuel and mp/h still appears.
Reply
#5

Add textdraw hide function on OnVehicleExit.
Reply
#6

Oh nothing working ! xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)