03.07.2014, 13:10
Hello how can I make for mechanics when he offer to player /refill and price then when player accept it he get fuel depend on which skill mechanics have if you know what I mean? Thanks
new
giveFuel;
switch ( mechanicSkill[ playerid ] ) // Change to your own variable
{
case 0: giveFuel = 20; // Mechanic level 0 - gives 20 fuel
case 1: giveFuel = 40; // Mechanic level 1 - gives 40 fuel
case 2: giveFuel = 60; // Mechanic level 2 - gives 60 fuel
case 3..4: giveFuel = 80; // Mechanic level 3 and 4 - gives 80 fuel
case 5: giveFuel = 100; // Mechanic level 5 - gives 100 fuel
}
vFuel[GetPlayerVehicleID(targetid)] += giveFuel;