[FilterScript] [FS] Fuel System with Display
#1

Fuel System V 0.2

This is my new FuelSystem Filterscript with a new Gas Display i hope you like it



Info:
Gas Stations in all Citys
/fill to Fillup your car
Price per Liter = 10$ change it to yours


Download:
German Version: BenzinSystem.zip (6 KB)
English Version: FuelSystem.rar (6 KB)
Reply
#2

not bad
Reply
#3

Looks nice.
Reply
#4

3rd post. its nice.!
Reply
#5

Nice
Reply
#6

Benzin? Lol. You mean Fuel.
Reply
#7

Quote:
Originally Posted by eXchainZ-FoReVeR
Benzin? Lol. You mean Fuel.
You fail.

German Version: BenzinSystem.zip (6 KB)
English Version: FuelSystem.rar (6 KB)

Can you see it now? Benzin = Petrol. You, are this thread's official nub.
Reply
#8

WOW nice! I thought when I saw "benzin" that you're from Slovakia, forgot that in Germany it's same xD xD xD
Reply
#9

in russian benzin is the same as fuel or petrol xD
Reply
#10

its good how u made this
Reply
#11

pastebin link?
Reply
#12

looks nice, good idea to use these |||||||
Reply
#13

very nice script man ..
but i got 1 problem
if i loaded the fs my main commands (in my gm) are not working any more
i only get : You are not an a Gas Station!

help pls
Reply
#14

Quote:
Originally Posted by G_ROW_Chez
in russian benzin is the same as fuel or petrol xD
In dutch is benzine same as fuel or petrol.
Reply
#15

Quote:
Originally Posted by Maikel
Quote:
Originally Posted by G_ROW_Chez
in russian benzin is the same as fuel or petrol xD
In dutch is benzine same as fuel or petrol.
Croatian = Benzin xD
Reply
#16

Quote:
Originally Posted by 1337pr0
Quote:
Originally Posted by eXchainZ-FoReVeR
Benzin? Lol. You mean Fuel.
You fail.

German Version: BenzinSystem.zip (6 KB)
English Version: FuelSystem.rar (6 KB)

Can you see it now? Benzin = Petrol. You, are this thread's official nub.
Correction - He is SA:MP's official nub, He always spams useless shit, Nice script BTW
Reply
#17

I can get it working togheter with the gamemod pen1ls. When i activate this fs, the login system on pen1ls dont work. Can anyone tell me how to fix this ?

regard kenni
Reply
#18

This filterscript is heavily bugged - it blocks other commands (add return 0 at the end of OnPlayerCommandText to fix it) and causes monstrous lags on other clients because of 1ms timer and a lot of unnecesary n-iterations loops =/ Even after heavy modifying I can't make it work properly, so I suggest finding another fuel script...
Reply
#19

didok have you made one ?
Reply
#20

No, I'm using this after a lot of modifications and adjustments (so I won't release it because it works only on my server). To fix it:

- replace whole OnPlayerCommandText with this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new cmd[256];
    if(strcmp(cmd, "/fill", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
                if(IsAtGasStation(playerid))
                {
                    // nдhste Tankstelle finden
                    new Float:olddistance = 999999;
                    new Float:newdistance;
                    new closest = -1;
                    new Float:GasX,Float:GasY,Float:GasZ;
                    for (new i = 0; i < sizeof(gGasStationLocations); i++)
                    {
                        GasX = gGasStationLocations[i][0];
                        GasY = gGasStationLocations[i][1];
                        GasZ = gGasStationLocations[i][2];
                        newdistance = GetDistanceBetweenPlayerToPoint(playerid,GasX,GasY,GasZ);
                        if (newdistance < olddistance)
                        {
                          olddistance = newdistance;
                            closest = i;
                        }
                    }
                    GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Refuel! Please wait....",2000,3);
                    SetTimer("Fillup",RefuelWait,0);
                    gGasBiz[playerid] = closest+12;
                    Refueling[playerid] = 1;
                }
                else
                {
                    SendClientMessage(playerid,COLOR_GREY,"  You are not an a Gas Station!");
                }
            }
    }
    return 0;
}
- under OnFilterScriptInit replace
pawn Код:
BenzinUpdatetimer = SetTimer("BenzinUpdate", 1, 1);
with:
pawn Код:
BenzinUpdatetimer = SetTimer("BenzinUpdate", 1000, 1);
(1ms timer X/ WTF man?)
Then it should work KINDA correctly (there are more bugs...) If commands are still bugged, tell me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)