public Velocimetro()
{
for( new i = 0; i <GetMaxPlayers( ) ; i++ )
{
if(IsPlayerInAnyVehicle(i) == 1)
{
new string[255];
new vid = GetPlayerVehicleID(i);
format(string, sizeof(string), "Velocidade: ~w~%d", GetVehicleSpeed(vid));
TextDrawSetString(Velocidade[i],string);
format(string, sizeof(string), "Modelo: ~w~%s", VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
TextDrawSetString(Modelo[i],string);
TextDrawShowForPlayer(i, Combustivel[i]);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Modelo[i]);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Velocidade[i]);
}
else
{
TextDrawHideForPlayer(i, Velocidade[i]);
TextDrawHideForPlayer(i, Modelo[i]);
TextDrawHideForPlayer(i, Combustivel[i]);
TextDrawHideForPlayer(i, Textdraw0);
TextDrawHideForPlayer(i, Textdraw1);
TextDrawHideForPlayer(i, Textdraw2);
TextDrawHideForPlayer(i, Textdraw3);
TextDrawHideForPlayer(i, Textdraw4);
TextDrawHideForPlayer(i, Textdraw5);
}
}
return 1;
}
Obs: Quem ajudar ganha + Rep. |
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Velocidade[MAX_PLAYERS];
new Text:Modelo[MAX_PLAYERS];
new Text:Combustivel[MAX_PLAYERS];
forward Velocimetro();
public OnGameModeInit( )
{
SetTimer( "Velocimetro", 300, 1 ) ;
for( new i = 0; i <GetMaxPlayers( ) ; i++ )
{
Velocidade[i] = TextDrawCreate(517.000000, 335.000000, "Velocidade:");
TextDrawBackgroundColor(Velocidade[i], 255);
TextDrawFont(Velocidade[i], 1);
TextDrawLetterSize(Velocidade[i], 0.379999, 1.399999);
TextDrawColor(Velocidade[i], -16776961);
TextDrawSetOutline(Velocidade[i], 1);
Modelo[i] = TextDrawCreate(516.000000, 349.000000, "Modelo:");
TextDrawBackgroundColor(Modelo[i], 255);
TextDrawFont(Modelo[i], 1);
TextDrawLetterSize(Modelo[i], 0.379999, 1.399999);
TextDrawColor(Modelo[i], -16776961);
TextDrawSetOutline(Modelo[i], 1);
TextDrawSetProportional(Modelo[i], 1);
Combustivel[i] = TextDrawCreate(516.000000, 363.000000, "Combustivel: ~w~100");
TextDrawBackgroundColor(Combustivel[i], 255);
TextDrawFont(Combustivel[i], 1);
TextDrawLetterSize(Combustivel[i], 0.359999, 1.399999);
TextDrawColor(Combustivel[i], -16776961);
TextDrawSetOutline(Combustivel[i], 1);
TextDrawSetProportional(Combustivel[i], 1);
}
Textdraw0 = TextDrawCreate(634.000000, 313.000000, "_");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 7.899999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, -222);
TextDrawTextSize(Textdraw0, 506.000000, 24.000000);
Textdraw1 = TextDrawCreate(634.000000, 309.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, -0.200000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 506.000000, 0.000000);
Textdraw2 = TextDrawCreate(634.000000, 386.000000, "_");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, -0.200000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 255);
TextDrawTextSize(Textdraw2, 506.000000, 0.000000);
Textdraw3 = TextDrawCreate(634.000000, 390.000000, "_");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, -9.700000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 255);
TextDrawTextSize(Textdraw3, 624.000000, 0.000000);
Textdraw4 = TextDrawCreate(512.000000, 390.000000, "_");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, -9.700000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 255);
TextDrawTextSize(Textdraw4, 509.000000, 0.000000);
Textdraw5 = TextDrawCreate(515.000000, 311.000000, "~h~~g~Play ~y~Boy ~w~City ~r~RPG");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.349999, 1.399999);
TextDrawColor(Textdraw5, -16776961);
TextDrawSetOutline(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);
return 1;
}
public Velocimetro()
{
for( new i = 0; i <GetMaxPlayers( ) ; i++ )
{
if(IsPlayerInAnyVehicle(i) == 1)
{
new string[255];
new vid = GetPlayerVehicleID(i);
format(string, sizeof(string), "Velocidade: ~w~%d", GetVehicleSpeed(vid));
TextDrawSetString(Velocidade[i],string);
format(string, sizeof(string), "Modelo: ~w~%s", VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
TextDrawSetString(Modelo[i],string);
TextDrawShowForPlayer(i, Combustivel[i]);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Modelo[i]);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Velocidade[i]);
}
else
{
TextDrawHideForPlayer(i, Velocidade[i]);
TextDrawHideForPlayer(i, Modelo[i]);
TextDrawHideForPlayer(i, Combustivel[i]);
TextDrawHideForPlayer(i, Textdraw0);
TextDrawHideForPlayer(i, Textdraw1);
TextDrawHideForPlayer(i, Textdraw2);
TextDrawHideForPlayer(i, Textdraw3);
TextDrawHideForPlayer(i, Textdraw4);
TextDrawHideForPlayer(i, Textdraw5);
}
}
return 1;
}
public Velocimetro()
{
for( new i = 0; i <GetMaxPlayers( ) ; i++ )
{
if(IsPlayerInAnyVehicle(i) == 1)
{
new string[255];
new vid = GetPlayerVehicleID(i);
format(string, sizeof(string), "Velocidade: ~w~%d", GetVehicleSpeed(vid));
TextDrawSetString(Velocidade[i],string);
TextDrawShowForPlayer(i, Velocidade[i]);
format(string, sizeof(string), "Modelo: ~w~%s", VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
TextDrawSetString(Modelo[i],string);
TextDrawShowForPlayer(i, Modelo[i]);
TextDrawShowForPlayer(i, Combustivel[i]);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
}
else
{
TextDrawHideForPlayer(i, Velocidade[i]);
TextDrawHideForPlayer(i, Modelo[i]);
TextDrawHideForPlayer(i, Combustivel[i]);
TextDrawHideForPlayer(i, Textdraw0);
TextDrawHideForPlayer(i, Textdraw1);
TextDrawHideForPlayer(i, Textdraw2);
TextDrawHideForPlayer(i, Textdraw3);
TextDrawHideForPlayer(i, Textdraw4);
TextDrawHideForPlayer(i, Textdraw5);
}
}
return 1;
}
aff que chato -qq manda as textdraw para eu ver uma coisa, e tentar resolver . manda a do combustivel, modelo, e velocidade |
Sem ofensas ! mбs Projetos й com 'J' e nгo com 'G' sу avisando ^^ hsuahsua s2
|
Sem ofensas ! mбs Projetos й com 'J' e nгo com 'G' sу avisando ^^ hsuahsua s2
|