Speedo on textdraw help please
#3

pawn Код:
Timer:SpeedoCheck[1000]()
{
    foreach(Player, i)
    {
        if(GetPlayerState(i) == PLAYER_STATE_DRIVER && PlayerInfo[i][pSpeedoOn] == 1)
        {
            new Float:Speed = GetVehicleSpeed(veh, 0),
                string[128];

            format(string,sizeof(string),"%d MPH",floatround(Speed/1.609));
            PlayerTextDrawSetString(i,Speedo6[i],string);
            format(string,sizeof(string),"%.2f Gal",VehicleFuel[GetPlayerVehicleID(i)]);
            PlayerTextDrawSetString(i,Speedo7[i],string);
            format(string,sizeof(string),"%s", UsingSB{i} == 0 ? ("Off") : ("On"));
            PlayerTextDrawSetString(i,Speedo8[i], string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Speedo on textdraw help please - by KaliKs - 09.03.2014, 09:30
Re: Speedo on textdraw help please - by Aerotactics - 09.03.2014, 09:44
Re: Speedo on textdraw help please - by PT - 09.03.2014, 10:17
Re: Speedo on textdraw help please - by KaliKs - 09.03.2014, 11:16
Re: Speedo on textdraw help please - by PT - 09.03.2014, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)