SA-MP Forums Archive
Speedo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Speedo (/showthread.php?tid=177019)



Speedo - FireCat - 15.09.2010

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


Re: Speedo - willsuckformoney - 15.09.2010

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


Re: Speedo - pmk1 - 15.09.2010

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