29.11.2011, 00:13
Simples Man
Codigos :
~n~ Pula Linha
~w~ Branco
~b~ Azul Escuro
~g~ Amarelo
~r~ Vermelho
~p~ Roxo Claro
Pra Modificar a Cor e Simples Tmb ^^
public Velocimetro()
[~g~]Veiculo:[~w~]%s[ ~n~ ]
[COR] [COR] [Pula Linha]
Velocidade:[~w~]%i[~b~]KM/H
[COR] [COR]
[~g~]Lataria:[~w~]%.0f%",nocarro,velocidade,vcarro);
[COR] [COR]
Se Localiza Akii
public Velocimetro()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
if(IsPlayerInAnyVehicle(i)) {
new Float:X, Float:Y, Float:Z, Float:Speed;
GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower( X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 200.0);
new Float:vcarro;
GetVehicleHealth(GetPlayerVehicleID(i), vcarro);
new velocidade;
velocidade = floatround(Speed, floatround_floor);
new string[256];
new PlayerVehicleModelID = GetVehicleModel(GetPlayerVehicleID(i));
PlayerVehicleModelID -= 400;
new nocarro[30];
format(nocarro,30,NomeCarro[PlayerVehicleModelID]);
format(string, 256,"~g~Veiculo:~w~%s~n~~g~Velocidade:~w~%i ~b~KM/H~n~~g~Lataria:~w~%.0f%",nocarro,velocidade,vcarro ); // AKI BOY ^^
TextDrawSetString(velo[i],string);
TextDrawShowForPlayer(i,velo[i]);
} else TextDrawHideForPlayer(i, velo[i]);
}else{
TextDrawHideForPlayer(i, velo[i]);
}
}
}
Qualqer Duvida So postar
Codigos :
~n~ Pula Linha
~w~ Branco
~b~ Azul Escuro
~g~ Amarelo
~r~ Vermelho
~p~ Roxo Claro
Pra Modificar a Cor e Simples Tmb ^^
public Velocimetro()
[~g~]Veiculo:[~w~]%s[ ~n~ ]
[COR] [COR] [Pula Linha]
Velocidade:[~w~]%i[~b~]KM/H
[COR] [COR]
[~g~]Lataria:[~w~]%.0f%",nocarro,velocidade,vcarro);
[COR] [COR]
Se Localiza Akii
public Velocimetro()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
if(IsPlayerInAnyVehicle(i)) {
new Float:X, Float:Y, Float:Z, Float:Speed;
GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower( X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 200.0);
new Float:vcarro;
GetVehicleHealth(GetPlayerVehicleID(i), vcarro);
new velocidade;
velocidade = floatround(Speed, floatround_floor);
new string[256];
new PlayerVehicleModelID = GetVehicleModel(GetPlayerVehicleID(i));
PlayerVehicleModelID -= 400;
new nocarro[30];
format(nocarro,30,NomeCarro[PlayerVehicleModelID]);
format(string, 256,"~g~Veiculo:~w~%s~n~~g~Velocidade:~w~%i ~b~KM/H~n~~g~Lataria:~w~%.0f%",nocarro,velocidade,vcarro ); // AKI BOY ^^
TextDrawSetString(velo[i],string);
TextDrawShowForPlayer(i,velo[i]);
} else TextDrawHideForPlayer(i, velo[i]);
}else{
TextDrawHideForPlayer(i, velo[i]);
}
}
}
Qualqer Duvida So postar