03.01.2015, 09:50
i have a problem with fuel and speedometter, i can see the speedo and fuel for everyone when i /tog speedo or /tog fuel
codes for speedo
codes for speedo
pawn Код:
// Speedometer
if(Speedo[playerid] && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[64], speed = GetVehicleSpeed(GetPlayerVehicleID(playerid), 0);
//format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~~n~~n~~r~Speedometer: ~w~%d MPH", speed);
format(string,sizeof(string),"MPH: %d", speed);
TextDrawSetString(speedometer, string);
//GameTextForPlayer(playerid, string,1000, 3);
}
pawn Код:
// Speedometer
speedometer = TextDrawCreate(292.000000, 432.000000, "MPH:");
TextDrawBackgroundColor(speedometer, 255);
TextDrawFont(speedometer, 1);
TextDrawLetterSize(speedometer, 0.500000, 1.000000);
TextDrawColor(speedometer, 16777215);
TextDrawSetOutline(speedometer, 0);
TextDrawSetProportional(speedometer, 1);
TextDrawSetShadow(speedometer, 1);
TextDrawSetSelectable(speedometer, 0);