[Ajuda] Velocimetro - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Velocimetro (
/showthread.php?tid=344323)
[Ajuda] Velocimetro -
Gutierrez_zikaloko - 20.05.2012
como coloco o velocimetro no meio da tela, la em baixo?
aki ta meu CODE:
pawn Код:
public Velocimetro()
{
new Float:Speedo_HP;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(gPlayerLogged[i] == 1 && IsPlayerInAnyVehicle(i))
{
new vehicle = GetPlayerVehicleID(i);
GetVehicleHealth(vehicle, Speedo_HP);
new string[256];
format(string,sizeof(string),"~y~Veiculo:~n~~r~%s~n~~y~Velocidade:~r~ %d KM/h~n~~y~Combustivel: ~r~%d%%~n~~y~Lataria: ~r~%0.0f%%~n~~y~Localizacao:~n~~r~%s" ,vehName[GetVehicleModel(vehicle)-400], GetPlayerSpeed(i, true), Gas[vehicle], Speedo_HP/10, ReturnPlayerZone(i));
TextDrawSetString(Speed[i], string);
if(TextShow[i] == false)
{
TextDrawShowForPlayer(i, Speed[i]);
TextShow[i] = true;
}
}
else
{
if(TextShow[i] == true)
{
TextDrawHideForPlayer(i, Speed[i]);
TextShow[i] = false;
}
}
}
}
Re: [Ajuda] Velocimetro -
BreakDriFT - 20.05.2012
Crie um textDraw Uai
Use zamaroth textDraw Editor Para pegar COrdenadas da tela !
Re: [Ajuda] Velocimetro -
Geo1996 - 20.05.2012
procura a textdraw Speed[i] no ongamemodeinit e muda as coordenadas dele (recomento zamaroth) dps disso divirtasse
Re: [Ajuda] Velocimetro -
Don_Speed - 20.05.2012
Podes Usar Este Site
http://bsndesign.webs.com/tde.htm