12.01.2012, 03:30
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.
I know this isn't your exact coding but i hope it helps.
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;
}