Speedo
#1

hi, well i was following that tutorial on how to make a speed meter and stuff
i got it correct and i changed the position to what i wanted but how can i change the size?
code under the image:

Код:
new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
    vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid != 0)
    {
        GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
        final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
        final_speed_int = floatround(final_speed,floatround_round);
        format(speed_string,256,"~g~S~r~p~y~ee~r~d: ~w~%ikm",final_speed_int); //~g~for green
        TextDrawSetString(SPEEDOS[playerid], speed_string);
    }
    else
    {
        TextDrawSetString(SPEEDOS[playerid], " ");
    }
    return 1;
}
help
Reply
#2

under TextDrawSetString maybe set the text size and find textdraw create and change the coordinates
Reply
#3

TextDrawLetterSize(SPEEDOS, X(width), Y(height);

will do it

and you can download a textdraw maker, it will help you get the size you want, that's what i do..:P
i think i should add in my tut a section on how to make the colors/size/style of textdraws... lots of people asking for this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)