21.05.2016, 14:23
Under OnGameModeInit should be the above code:
Ofc that you don't have to use those Ifs Its just a better RP situation. If you won't check Bikes then they will have fuel too. Btw you probably don't have the Cars & Bikes function so i recommand creating them.
pawn Код:
public OnGameModeInit()
{
for(new v = 0; v < MAX_VEHICLES; v++)
{
if(Cars(v))
{
VehicleFuel[v] = 100;
}
if(Bikes(v))
{
VehicleFuel[v] = 999;
}
}
}