Problem with fuel system
#2

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);
    }
}
Reply


Messages In This Thread
Problem with fuel system - by MrTinder - 09.11.2013, 17:53
Re: Problem with fuel system - by Loot - 09.11.2013, 18:02
Re: Problem with fuel system - by MrTinder - 09.11.2013, 18:17

Forum Jump:


Users browsing this thread: 2 Guest(s)