10.08.2014, 00:14
Bem Logo no servidor o velocimetro aparece
Entro no carro o velocimetro some (Nгo esta completo)
CODIGOS
Textdraw
Public
Me ajudem por favor , Obrigado
Entro no carro o velocimetro some (Nгo esta completo)
CODIGOS
Textdraw
PHP код:
box[i] = TextDrawCreate(198.000000,395.000000,"_");
TextDrawUseBox(box[i],1);
TextDrawBoxColor(box[i],0x00000066);
TextDrawTextSize(box[i],460.000000,0.000000);
TextDrawAlignment(box[i],0);
TextDrawBackgroundColor(box[i],0x00000033);
TextDrawFont(box[i],3);
TextDrawLetterSize(box[i],0.500000, 4.800000);
//TextDrawLetterSize(box[i],1.000000,3.000000);
TextDrawColor(box[i],0xffffffff);
TextDrawSetOutline(box[i],1);
TextDrawSetProportional(box[i],1);
TextDrawSetShadow(box[i],1);
fahrzeug[i] = TextDrawCreate(198.000000,396.000000," ");
TextDrawAlignment(fahrzeug[i],0);
TextDrawBackgroundColor(fahrzeug[i],0x000000ff);
TextDrawFont(fahrzeug[i],1);
TextDrawLetterSize(fahrzeug[i],0.299999,1.000000);
TextDrawColor(fahrzeug[i],0xffffffff);
TextDrawSetOutline(fahrzeug[i],1);
TextDrawSetProportional(fahrzeug[i],1);
TextDrawSetShadow(fahrzeug[i],1);
mph[i] = TextDrawCreate(368.000000,396.000000," ");
TextDrawAlignment(mph[i],0);
TextDrawBackgroundColor(mph[i],0x000000ff);
TextDrawFont(mph[i],1);
TextDrawLetterSize(mph[i],0.299999,1.000000);
TextDrawColor(mph[i],0xffffffff);
TextDrawSetOutline(mph[i],1);
TextDrawSetProportional(mph[i],1);
TextDrawSetShadow(mph[i],1);
combustivelt[i] = TextDrawCreate(198.000000,408.000000," ");
TextDrawAlignment(combustivelt[i],0);
TextDrawBackgroundColor(combustivelt[i],0x000000ff);
TextDrawFont(combustivelt[i],1);
TextDrawLetterSize(combustivelt[i],0.299999,1.000000);
TextDrawColor(combustivelt[i],0xffffffff);
TextDrawSetOutline(combustivelt[i],1);
TextDrawSetProportional(combustivelt[i],1);
TextDrawSetShadow(combustivelt[i],1);
zustand[i] = TextDrawCreate(368.000000,408.000000," ");
TextDrawAlignment(zustand[i],0);
TextDrawBackgroundColor(zustand[i],0x000000ff);
TextDrawFont(zustand[i],1);
TextDrawLetterSize(zustand[i],0.299999,1.000000);
TextDrawColor(zustand[i],0xffffffff);
TextDrawSetOutline(zustand[i],1);
TextDrawSetProportional(zustand[i],1);
TextDrawSetShadow(zustand[i],1);
gps[i] = TextDrawCreate(198.000000,420.000000," ");
TextDrawAlignment(gps[i],0);
TextDrawBackgroundColor(gps[i],0x000000ff);
TextDrawFont(gps[i],1);
TextDrawLetterSize(gps[i],0.299999,1.000000);
TextDrawColor(gps[i],0xffffffff);
TextDrawSetOutline(gps[i],1);
TextDrawSetProportional(gps[i],1);
TextDrawSetShadow(gps[i],1);
hoehe[i] = TextDrawCreate(368.000000,420.000000," ");
TextDrawAlignment(hoehe[i],0);
TextDrawBackgroundColor(hoehe[i],0x000000ff);
TextDrawFont(hoehe[i],1);
TextDrawLetterSize(hoehe[i],0.299999,1.000000);
TextDrawColor(hoehe[i],0xffffffff);
TextDrawSetOutline(hoehe[i],1);
TextDrawSetProportional(hoehe[i],1);
TextDrawSetShadow(hoehe[i],1);
SPS[i] = TextDrawCreate(558.000000,418.000000," SPS 6.0");
TextDrawBackgroundColor(SPS[i], COR_WHITE);
TextDrawFont(SPS[i], 3);
TextDrawLetterSize(SPS[i], 0.500000,2.000000);
TextDrawColor(SPS[i], 255);
TextDrawSetOutline(SPS[i], 1);
TextDrawSetProportional(SPS[i], 1);
url[i] = TextDrawCreate(198.000000,432.000000,URLTHIAGO);
TextDrawAlignment(url[i],0);
TextDrawBackgroundColor(url[i],0x000000ff);
TextDrawFont(url[i],1);
TextDrawLetterSize(url[i],0.299999,1.000000);
TextDrawColor(url[i],0xffffffff);
TextDrawSetOutline(url[i],1);
TextDrawSetProportional(url[i],1);
TextDrawSetShadow(url[i],1);
PHP код:
public VeloThiago()
{
new Float:Speedo_X,Float:Speedo_Y,Float:Speedo_Z;
new Float:Speedo_HP;
for(new i=0; i<MAX_PLAYERS; i++)
{
new vehicle = GetPlayerVehicleID(i);
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
GetPlayerPos(i, Speedo_X, Speedo_Y, Speedo_Z);
GetPlayerVehicleID(i);
new newcar = GetPlayerVehicleID(i);
GetVehicleHealth(GetPlayerVehicleID(i), Speedo_HP);
new str1[256],str2[256],str3[256],str4[256],str5[256],str6[256],str7[256];
if(SpeedoON[i] == 0)
{
TextDrawShowForPlayer(i, box[i]);
TextDrawShowForPlayer(i, fahrzeug[i]);
TextDrawShowForPlayer(i, mph[i]);
TextDrawShowForPlayer(i, combustivelt[i]);
TextDrawShowForPlayer(i, zustand[i]);
TextDrawShowForPlayer(i, gps[i]);
TextDrawShowForPlayer(i, hoehe[i]);
TextDrawShowForPlayer(i, url[i]);
SpeedoON[i] = 1;
}
format(str1,sizeof(str1),"~w~~d~Veiculo: ~b~~h~~h~%s",vehName[GetVehicleModel(vehicle)-400]);
TextDrawSetString(fahrzeug[i], str1);
format(str2,sizeof(str2),"~w~~d~KM/H: ~y~%d",GetPlayerSpeed(i, true));
TextDrawSetString(mph[i], str2);
format(str3,sizeof(str3),"~w~~d~Combustivel: ~g~~h~%d%%", Gas[vehicle]);
TextDrawSetString(combustivelt[i], str3);
if(IsACopCar(newcar) || IsAExCar(newcar) || IsAnAmbulanceCar(newcar) || IsAPoliciaCivilCar(newcar) || IsAPFCar(newcar) || IsABOPEsCar(newcar) || IsAGOVCar(newcar))
{
format(str4,sizeof(str4),"~w~~d~Blindagem: ~r~~h~Sim");
}
else
{
format(str4,sizeof(str4),"~w~~d~Lataria: ~r~~h~%0.0f%%", Speedo_HP/10);
}
TextDrawSetString(zustand[i], str4);
format(str5,sizeof(str5),"~w~~d~GPS: ~p~~h~%s", ReturnPlayerZone(i));
TextDrawSetString(gps[i], str5);
format(str6,sizeof(str6),"~w~~d~Altura: ~p~~h~%.1f", Speedo_Z);
TextDrawSetString(hoehe[i], str6);
format(str7,sizeof(str7),URLTHIAGO);
TextDrawSetString(url[i], str7);
}
SavePlayerPos[i][sX] = Speedo_X, SavePlayerPos[i][sY] = Speedo_Y, SavePlayerPos[i][sZ] = Speedo_Z;
}
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerInAnyVehicle(i))
{
TextDrawHideForPlayer(i, box[i]);
TextDrawHideForPlayer(i, fahrzeug[i]);
TextDrawHideForPlayer(i, mph[i]);
TextDrawHideForPlayer(i, combustivelt[i]);
TextDrawHideForPlayer(i, zustand[i]);
TextDrawHideForPlayer(i, gps[i]);
TextDrawHideForPlayer(i, hoehe[i]);
TextDrawHideForPlayer(i, url[i]);
SpeedoON[i] = 0;
}
if(spawnado[i] == 1)
{
if(SpeedoON[i] >= 1)
{
TextDrawHideForPlayer(i, forum[i]);
}
if(SpeedoON[i] <= 0)
{
TextDrawShowForPlayer(i, forum[i]);
}
}
}
}