Link a value to a vehicle?
#1

How could I link a value, for example fuel, to a vehicle? That way so its dynamic for every vehicle.
Reply
#2

you could create for cars and when you write the command like /vehiclefuel[vehicleid][fuel] it sets the fuel to the amount you wrote like
pawn Код:
new VehicleGas[MAX_VEHICLES];
and use ZCMD to make the command or.. and when he writes it :
pawn Код:
VehicleGas[vehicleid] = fuel; //use ZCMD or..to define vehicleid as the first parameter and the fuel as the second paameter.
Reply
#3

Ah thanks, I totally forgot about MAX_VEHICLES
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)