Limiting speedometer for cars
#2

Well get the vehicle model id's and then make the speedometer not show for them. Like OnPlayerStateChange when they get on the bike, just have it not show.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new
        vehicleid = GetPlayerVehicleID(playerid),
        modelid = GetPlayerVehicleModel(vehicleid);
    //
    if(modelid == /* bike id */ || /* another bike id*/ || /* and so fourth */)
        return TextDrawHideForPlayer(playerid, SpeedoTD[playerid]);
    /*
    The rest of your Speedo and OnPlayerStateChange code here. Hopefully you know what i
    mean.
    */

    return 1;
}
I know this isn't your exact coding but i hope it helps.
Reply


Messages In This Thread
Limiting speedometer for cars - by Abreezy - 12.01.2012, 02:11
Re: Limiting speedometer for cars - by Steven82 - 12.01.2012, 03:30
Re: Limiting speedometer for cars - by Abreezy - 12.01.2012, 03:44
Re: Limiting speedometer for cars - by Gamer_Z - 12.01.2012, 06:05
Re: Limiting speedometer for cars - by Abreezy - 12.01.2012, 11:57
Re: Limiting speedometer for cars - by Gamer_Z - 12.01.2012, 12:36
Re: Limiting speedometer for cars - by Abreezy - 12.01.2012, 20:09
Re: Limiting speedometer for cars - by Gamer_Z - 12.01.2012, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)