Sziasztok.Szeretnék egy másik km/h a PPC módba ha valaki segítene ezt bele rakni örök hálás lennék
Ezt akarom bele rakni
////////////////////////////////////////////////////////////////////////////////
public CheckStatus()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
if(TextShow == false)
{
/*TextDrawShowForPlayer(i, Text:Black0);
TextDrawShowForPlayer(i, Text:Black1);
TextDrawShowForPlayer(i, Text:Black2);
TextDrawShowForPlayer(i, Text:Black3);
TextDrawShowForPlayer(i, Text:LightBlack);*/
TextShow = true;
}
new String[128];
new Float:X, Float:Y, Float:Z, Float:Speed;
new vehicle = GetPlayerVehicleID(i);
new Float:vehhealth;
GetVehicleHealth(vehicle, vehhealth);
GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 160.0);
format(String,sizeof(String),\"~B~Mûszerfal~n~~G~Sebességed: ~G~%i KM/H~n~~w~Autó törés: ~G~%.0f~n~~w~Benzin: ~G~%i %\", floatround(Speed, floatround_floor),vehhealth,Gas[vehicle]);
if(VHSCreated == true)
{
TextDrawDestroy(VHS);
}
VHS = TextDrawCreate(450.000000,360.000000,String);
TextDrawAlignment(VHS,0);
TextDrawBackgroundColor(VHS,0x000000ff);
TextDrawFont(VHS,2);
TextDrawLetterSize(VHS,0.4,1.000000);
TextDrawColor(VHS,0xffffffff);
TextDrawSetOutline(VHS,1);
TextDrawSetProportional(VHS,1);
TextDrawSetShadow(VHS,1);
TextDrawShowForPlayer(i, VHS);
VHSCreated = true;
}
else
{
if(TextShow == true)
{
/*TextDrawHideForPlayer(i, Text:Black0);
TextDrawHideForPlayer(i, Text:Black1);
TextDrawHideForPlayer(i, Text:Black2);
TextDrawHideForPlayer(i, Text:Black3);
TextDrawHideForPlayer(i, Text:LightBlack);*/
TextDrawHideForPlayer(i, Text:VHS);
TextShow = false;
}
}
}
}