[Ajuda] Colocando placa nos veнculos
#4

Quote:
Originally Posted by claudiosoares
Посмотреть сообщение
Use os seguintes cуdigos:

Coloque no topo da sua GM:

forward Velocimetro(playerid);

Coloque em OnGameModeInit()

SetTimer("Velocimetro", 1000, 1);

Crie uma nova Public e coloque:

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[128];
format(string,sizeof(string),"~>~Nome: ~r~%s~n~~>~~w~Velocidade: ~r~%d KM/h~n~~>~~w~Gasolina: ~r~%d%%~n~~>~~w~Saude: ~r~%0.0f%%~n~~w~~>~Local:~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;
}
}
}
}

Depois sу compilar, espero ter ajudado.
hum interressante e como funciona esse codigo seu ae me explica ?
Reply


Messages In This Thread
Colocando placa nos veнculos - by 17uK - 06.11.2012, 16:17
Re: Colocando placa nos veнculos - by duuuwh - 06.11.2012, 16:43
Re: Colocando placa nos veнculos - by claudiosoares - 06.11.2012, 17:18
Re: Colocando placa nos veнculos - by Q.I - 06.11.2012, 18:01
Re: Colocando placa nos veнculos - by SirUndead - 06.11.2012, 19:33
Re: Colocando placa nos veнculos - by @Riichard - 06.11.2012, 19:44
Re: Colocando placa nos veнculos - by SirUndead - 06.11.2012, 19:44
Re: Colocando placa nos veнculos - by DrTHE - 06.11.2012, 20:02

Forum Jump:


Users browsing this thread: 4 Guest(s)