[HELP] how can I make working refill - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] how can I make working refill (
/showthread.php?tid=523690)
[HELP] how can I make working refill -
Luca12 - 03.07.2014
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
Re: [HELP] how can I make working refill -
greentarch - 03.07.2014
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;
Re: [HELP] how can I make working refill -
Beckett - 03.07.2014
We wont write you a whole code, show us what you've done and we edit it for you.