09.11.2013, 18:02
pawn Код:
stock IsBike(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 448, 461 .. 463, 468, 471, 481, 509, 510, 521, 522, 581: return 1; // bike models
}
return 0;
}
pawn Код:
if(GetVehicleModel(vehicleid) != 509 || GetVehicleModel(vehicleid) != 510 || GetVehicleModel(vehicleid) != 481)
{
if(!IsBike(vehicleid)) // check also if he's NOT driving a bike to show other textdraws
{
// show other stuff,.. etc
format(string,sizeof(string),"~g~ Health: %d",floatround(hp));
TextDrawSetString(health[i],string);
format(string,sizeof(string),"~r~ Fuel: %dL",VehicleFuel[vehicleid]);
TextDrawSetString(fuel[i],string);
}
}