[HELP] how can I make working refill
#1

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
Reply
#2

Something like this...
pawn Код:
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;
Reply
#3

We wont write you a whole code, show us what you've done and we edit it for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)