[HELP] fuel system
#8

yea that could work....

I personally wouldn't move it completely but, either just call the function again, or manually set it to 15 when creating the bike
if you don't know what vehicle is created, you could just create a nother function that just sets the fuel of the new vehicle and not of all (it's a little bit more effective, although you might not even notice the difference)
could be like
pawn Код:
stock SetVehicleFuel(vehicleid)
{
    new modelid = GetVehicleModel(vehicleid);
    if(IsATruck(modelid)) Fuel[vehicleid] = 100.0;
    else if(IsABus(modelid)) Fuel[vehicleid] = 80.0;
    else if(IsABike(modelid)) Fuel[vehicleid] = 15.0;
    else Fuel[vehicleid] = 40.0;
    return 1;
}
Reply


Messages In This Thread
[HELP] fuel system - by Luca12 - 02.10.2014, 20:22
Re: [HELP] fuel system - by Sascha - 02.10.2014, 20:55
Re: [HELP] fuel system - by Luca12 - 02.10.2014, 21:06
Re: [HELP] fuel system - by Sascha - 02.10.2014, 21:11
Re: [HELP] fuel system - by Luca12 - 02.10.2014, 21:20
Re: [HELP] fuel system - by Sascha - 02.10.2014, 21:24
Re: [HELP] fuel system - by Luca12 - 02.10.2014, 21:27
Re: [HELP] fuel system - by Sascha - 02.10.2014, 21:32
Re: [HELP] fuel system - by Luca12 - 02.10.2014, 21:46
Re: [HELP] fuel system - by JJack - 03.10.2014, 03:02

Forum Jump:


Users browsing this thread: 2 Guest(s)