Removal off Fuel for Bikes
#1

So basicly i have been shootin around trying to find a way how to do this but still can't :/
And this is all what i could do to remove engine for bikes but still i cant understand how to do that with fuel :/

PHP код:
if(vehicleid != 509 && vehicleid != 481 && vehicleid != 510)
    {
        
SetVehicleParamsEx(vehicleid1000000);
        foreach(
Playeri)
        { 
Would be grate if somone could give me an example of fuel removal

PHP код:
new Fuel[MAX_VEHICLES];
new 
FuelVar[MAX_VEHICLES];
new 
fMeter[MAX_PLAYERS];
new 
Refill[MAX_PLAYERS]; 
Reply
#2

There is a difference between GetPlayerVehicleID and GetVehicleModel.
Are you sure you are checking the right parameter?
Reply
#3

Fixed onmy own like this:
PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
      if(
vehicleid == 509 || vehicleid == 481 || vehicleid == 510)
      {
       
Fuel[vehicleid] = 0;
       
fMeter[vehicleid] = 0;
      } 
Thanks anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)