Gas | Frage

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hey,
    Wollte Fragen wie ich das in mein "Tankstellen 'System'" einbaue?

    Spoiler anzeigen
    Jedes FAhrzeug hat einen Eigenen Tank :

    Tanks :
    Spoiler anzeigen

    new GasMax[] = {
    60, //"Landstalker",
    50,//"Bravura",
    50,//"Buffalo",
    110,//"Linerunner",
    45,//"Pereniel",
    50,//"Sentinel",
    200,//"Dumper",
    80,//"Firetruck",
    75,//"Trashmaster",
    60,//"Stretch",
    40,//"Manana",
    50,//"Infernus",
    50,//"Voodoo",
    90,//"Pony",
    90,//"Mule",
    48,//"Cheetah",
    70,//"Ambulance",
    60,//"Leviathan",
    60,//"Moonbeam",
    50,//"Esperanto",
    45,//"Taxi",
    40,//"Washington",
    60,//"Bobcat",
    64,//"Mr Whoopee",
    60,//"BF Injection",
    250,//"Hunter",
    50,//"Premier",
    80,//"Enforcer",
    70,//"Securicar",
    52,//"Banshee",
    50,//"Predator",
    80,//"Bus",
    100,//"Rhino",
    50,//"Barracks",
    55,//"Hotknife",
    100,//"Trailer",
    58,//"Previon",
    95,//"Coach",
    48,//"Cabbie",
    45,//"Stallion",
    70,//"Rumpo",
    100,//"RC Bandit",
    50,//"Romero",
    130,//"Packer",
    120,//"Monster Truck",
    45,//"Admiral",
    50,//"Squalo",
    80,//"Seasparrow",
    30,//"Pizzaboy",
    100,//"Tram",
    100,//"Trailer",
    55,//"Turismo",
    55,//"Speeder",
    60,//"Reefer",
    60,//"Tropic",
    160,//"Flatbed",
    80,//"Yankee",
    20,//"Caddy",
    48,//"Solair",
    75,//"Berkley's RC Van",
    100,//"Skimmer",
    50,//"PCJ-600",
    20,//"Roller",
    45,//"Freeway",
    100,//"RC Baron",
    100,//"RC Raider",
    60,//"Glendale",
    55,//"Oceanic",
    45,//"Sanchez",
    80,//"Sparrow",
    95,//"Patriot",
    25,//"Quad",
    50,//"Coastguard",
    50,//"Dinghy",
    50,//"Hermes",
    55,//"Sabre",
    90,//"Rustler",
    60,//"ZR-350",
    60,//"Walton",
    58,//"Regina",
    55,//"Comet",
    100,//"Fahrrad",
    100,//"Burrito",
    100,//"Camper",
    60,//"Marquis",
    35,//"Baggage",
    150,//"Dozer",
    100,//"Maverick",
    100,//"News Chopper",
    80,//"Rancher",
    80,//"FBI Rancher",
    50,//"Virgo",
    50,//"Greenwood",
    100,//"Jetmax",
    70,//"Hotring",
    80,//"Sandking",
    50,//"Blista Compact",
    80,//"Police Maverick",
    80,//"Boxville",
    58,//"Benson",
    80,//"Mesa",
    100,//"RC Goblin",
    75,//"Hotring Racer",
    75,//"Hotring Racer",
    75,//"Bloodring Banger",
    75,//"Rancher",
    60,//"Super GT",
    45,//"Elegant",
    110,//"Journey",
    100,//"Bike",
    100,//"Mountain Bike",
    50,//"Beagle",
    50,//"Cropdust",
    50,//"Stunt",
    140,//"Tanker",
    100,//"RoadTrain",
    50,//"Nebula",
    50,//"Majestic",
    48,//"Buccaneer",
    150,//"Shamal",
    175,//"Hydra",
    45,//"FCR-900",
    45,//"NRG-500",
    48,//"HPV1000",
    135,//"Cement Truck",
    75,//"Tow Truck",
    60,//"Fortune",
    60,//"Cadrona",
    65,//"FBI Truck",
    55,//"Willard",
    30,//"Forklift",
    35,//"Traktor",
    60,//"Combine",
    50,//"Feltzer",
    50,//"Remington",
    55,//"Slamvan",
    55,//"Blade",
    100,//"Freight",
    100,//"Streak",
    100,//"Vortex",
    48,//"Vincent",
    55,//"Bullet",
    58,//"Clover",
    60,//"Sadler",
    90,//"Firetruck",
    60,//"Hustler",
    50,//"Intruder",
    40,//"Primo",
    130,//"Cargobob",
    60,//"Tampa",
    60,//"Sunrise",
    60,//"Merit",
    100,//"Utility",
    50,//"Nevada",
    80,//"Yosemite",
    60,//"Windsor",
    100,//"Monster Truck",
    100,//"Monster Truck",
    55,//"Uranus",
    60,//"Jester",
    60,//"Sultan",
    60,//"Stratum",
    60,//"Elegy",
    150,//"Raindance",
    100,//"RC Tiger",
    50,//"Flash",
    50,//"Tahoma",
    55,//"Savanna",
    60,//"Bandito",
    100,//"Freight",
    100,//"Trailer",
    20,//"Kart",
    20,//"Mower",
    200,//"Duneride",
    35,//"Sweeper",
    50,//"Broadway",
    50,//"Tornado",
    200,//"AT-400",
    200,//"DFT-30",
    65,//"Huntley",
    60,//"Stafford",
    40,//"BF-400",
    70,//"Newsvan",
    30,//"Tug",
    100,//"Trailer",
    50,//"Emperor",
    40,//"Wayfarer",
    60,//"Euros",
    90,//"Hotdog",
    60,//"Club",
    100,//"Trailer",
    100,//"Trailer",
    200,//"Andromada",
    95,//"Dodo",
    100,//"RC Cam",
    50,//"Launch",
    60,//"Streifenwagen",
    60,//"Streifenwagen",
    60,//"Streifenwagen",
    75,//"Polizei Ranger",
    50,//"Picador",
    75,//"S.W.A.T. Van",
    55,//"Alpha",
    55,//"Phoenix",
    50,//"Glendale",
    50,//"Sadler",
    100,//"Luggage Trailer",
    100,//"Luggage Trailer",
    100,//"Stair Trailer",
    52,//"Boxville",
    100,//"Farm Plow",
    100//"Utility Trailer"
    };


    Fill Timer

    Spoiler anzeigen
    public Fillup(playerid)
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(Refueling[i] == 1)
    {
    new vid = GetPlayerVehicleID(i);
    new FillUp = 100-Gas[vid];
    new FillUpPrice = FillUp*SPRITPREIS;
    new string[256];
    Gas[vid] += FillUp;
    Refueling[i] = 0;
    TogglePlayerControllable(i,1);
    GivePlayerMoney(i, -FillUpPrice);
    format(string, sizeof(string), "Fahrzeug für %i€ Betankt!", FillUpPrice);
    SendClientMessage(playerid, COLOR_WHITE, string);
    UnFreezePlayer(playerid);
    }
    }
    }
    return 1;
    }


    LG
    Crocky