Mein FEUER HAT IMMER NOCH NE MAKE !

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
  • Hi ,


    Ich hab eproblem und zwar habe ich alles so gemacht wie hier ( download , ... ) und das Fuerer lässt sich trotzdem nicht löschen


    [ FILTERSCRIPT ] Löschbares Feuer v0.4


    Bitte um hilfe


    if(listitem==1)
    {
    SendClientMessageToAll(dunkelrot,"__________________ ALARMIERUNG ________________");
    SendClientMessageToAll(lila,"Einsatzbezirk : Los Santos");
    SendClientMessageToAll(lila,"Stichwort : FEU_1");
    SendClientMessageToAll(lila,"weitere Infos : Buschbrand");
    SendClientMessageToAll(lila,"Einheiten benötigt : 1 Löschtrupp");
    SendClientMessageToAll(lila,"Einsatznavigation : /0001");
    SendClientMessageToAll(dunkelrot,"________________________________________________");
    AddFire(2513.2,-1685,14);
    }


    public AddFire(Float:x, Float:y, Float:z)
    {
    new slot = GetFlameSlot();
    if(slot == -1) {return slot;}
    Flame[slot][Flame_Exists] = 1;
    Flame[slot][Flame_pos][0] = x;
    Flame[slot][Flame_pos][1] = y;
    Flame[slot][Flame_pos][2] = z - Z_DIFFERENCE;
    Flame[slot][Flame_id] = CreateObject(18689, Flame[slot][Flame_pos][0], Flame[slot][Flame_pos][1], Flame[slot][Flame_pos][2], 0.0, 0.0, 0.0);
    return slot;
    }


    public KillFire(id)
    {
    DestroyObject(Flame[id][Flame_id]);
    Flame[id][Flame_Exists] = 0;
    Flame[id][Flame_pos][0] = 0.0;
    Flame[id][Flame_pos][1] = 0.0;
    Flame[id][Flame_pos][2] = 0.0;
    DestroyTheSmokeFromFlame(id);
    }


    // FEUER


    #pragma tabsize 0


    #define VERSION "0.4"


    #define MAX_FLAMES 100 // maxmimal flames
    #define BurnOthers // Should other players burn, too, if they are touching a burning player?
    //#define EarnMoney // Do you want to earn money for extinguish a fire?
    #define FireMessageColor 0x00FF55FF // color used for the extinguish-message
    //#define German // German or English?
    //#define MessageToAll // Should the extinguish-message be sent to all players?


    #define FLAME_ZONE 1.2 // radius in which you start burning if you're too close to a flame
    #define ONFOOT_RADIUS 1.5 // radius in which you can extinguish the flames by foot
    #define PISSING_WAY 2.0 // radius in which you can extinguish the flames by peeing
    #define CAR_RADIUS 8.0 // radius in which you can extinguish the flames by firetruck/SWAT Van
    #define Z_DIFFERENCE 2.5 // height which is important for the accurancy of extinguishing. please do not change
    #define EXTINGUISH_TIME_VEHICLE 1 // time you have to spray at the fire with a firetruck (seconds)
    #define EXTINGUISH_TIME_ONFOOT 4 // time you have to spray at the fire onfoot (seconds)
    #define EXTINGUISH_TIME_PEEING 10 // time you have to pee at the fire (seconds)
    #define EXTINGUISH_TIME_PLAYER 3 // time it takes to extinguish a player (seconds)
    #define FIRE_OBJECT_SLOT 1 // the slot used with SetPlayerAttachedObject and RemovePlayerAttachedObject


    #if !defined SPECIAL_ACTION_PISSING
    #define SPECIAL_ACTION_PISSING 68
    #endif


    //===================== forwards ====================


    forward AddFire(Float:x, Float:y, Float:z);
    forward KillFire(id);
    forward AddSmoke(Float:x, Float:y, Float:z);
    forward KillSmoke(id);
    forward DestroyTheSmokeFromFlame(id);
    forward OnFireUpdate();
    forward FireTimer(playerid, id);
    forward SetPlayerBurn(playerid);
    forward BurningTimer(playerid);
    forward StopPlayerBurning(playerid);


    //===================== Variables ====================


    enum FlameInfo
    {
    Flame_id,
    Flame_Exists,
    Float:Flame_pos[3],
    Smoke[5],
    }


    new Flame[MAX_FLAMES][FlameInfo];
    new ExtTimer[MAX_PLAYERS];
    new PlayerOnFire[MAX_PLAYERS];
    new PlayerOnFireTimer[MAX_PLAYERS];
    new PlayerOnFireTimer2[MAX_PLAYERS];
    new Float:PlayerOnFireHP[MAX_PLAYERS];


    Danke im Vorraus :)
    Mfg.
    Niknew