Gangfight | Du bist in Keiner Gang/Mafia

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
  • "Passt alles nicht in ein Betrag" Jemand etwas Posten pls


    #include <streamer>
    #undef MAX_PLAYERS
    #define MAX_PLAYERS 250



    enum pInfo
    {
    pKey[128],
    pLevel,
    pAdmin,
    pSupporter,
    pDonateRank,
    gPupgrade,
    pConnectTime,
    pReg,
    pSex,
    pAge,
    pOrigin,
    pCK,
    pRest,
    pMuted,
    pExp,
    pCash,
    Float:pGWD,
    pAccount,
    pPlayerKreditDauer,
    pPlayerKredit,
    pCrimes,
    pKills,
    pDeaths,
    pArrested,
    pWantedDeaths,
    pPhoneBook,
    pLottoNr,
    pFishes,
    pBiggestFish,
    pJob,
    pPayCheck,
    pHeadValue,
    pJailed,
    pRobTime,
    pJailTime,
    pDuty,
    pGangJailed,
    pwJailed,
    pMauled,
    pMats,
    pDrugs,
    pLeader,
    pMember,
    pFMember,
    pRank,
    pChar,
    pContractTime,
    pDetSkill,
    pSexSkill,
    pBoxSkill,
    pLawSkill,
    pMechSkill,
    pJackSkill,
    pCarSkill,
    pNewsSkill,
    pDrugsSkill,
    pCookSkill,
    pFishSkill,
    Float:pHealth,
    Float:pSHealth,
    pInt,
    pLocal,
    pTeam,
    pModel,
    pPnumber,
    pPhousekey,
    pPbiskey,
    Float:pPos_x,
    Float:pPos_y,
    Float:pPos_z,
    pCarLic,
    pNewLic,
    pFlyLic,
    pBoatLic,
    pFishLic,
    pGunLic, //Definition des Scheines zb die Aufgabe später
    pLKWLic,
    pRollerLic,
    pMotoLic,
    pZig,
    pKekse,
    pZigSucht,
    pGun1,
    pGun2,
    pGun3,
    pGun4,
    pAmmo1,
    pAmmo2,
    pAmmo3,
    pAmmo4,
    pCarTime,
    pMulltime,
    pPayDay,
    pPayDayHad,
    pCDPlayer,
    pWins,
    pLoses,
    pAlcoholPerk,
    pDrugPerk,
    pMiserPerk,
    pPainPerk,
    pTraderPerk,
    pTut,
    pWarns,
    pAdjustable,
    pFuel,
    pMarried,
    pMarriedTo[128],
    pInvWeapon,
    pInvAmmo,
    pInvWeapon2,
    pInvAmmo2,
    pInvDrugs,
    pInvMats,
    pFlugTime,
    pRoadblock,
    pPlayMinutes,
    pGesamtMinutes,
    pMinutesSinceLogin,
    pMinutesSinceAn,
    pSFPASS,
    pLVPASS,
    pHandyGeld,
    pHandyVer,
    pUhrID,
    pHandyID,
    pOwnPerso,
    pOwnAntrag,
    pPersoStop,
    pGehalt,
    pFrakSperre,
    pBoxMats,
    pBoxDrugs,
    pban,
    Text:LetterboxTop,Text:LetterboxBottom2, Text:LetterboxBottom,
    pTot,
    pFarmTime,
    pGDeaths,
    pGKills,
    pMeldung,
    sWaffenScheinVerbot,
    Float:pTx,
    Float:pTy,
    Float:pTz


    };
    new PlayerInfo[MAX_PLAYERS][pInfo];



    #include <a_samp>
    forward GetPlayerAdmin(playerid);
    forward GetPlayerLeader(playerid);
    forward GetPlayerMember(playerid);


    #define FS_COL_GREY (0xAFAFAFAA)
    #define FS_COL_YELLOW (0xFFFF00FF)
    forward Fight_Init();
    forward Fight_Close();
    forward IsAMember(playerid);
    forward FightUpdate_1();
    forward FightUpdate_2();
    enum fsSyS{
    Float:fsMinX,
    Float:fsMinY,
    Float:fsMaxX,
    Float:fsMaxY,
    Float:fsCTFx,
    Float:fsCTFy,
    Float:fsCTFz,
    fsOwnerFaction,
    fsAttackFaction,
    fsKillsOfOwner,
    fsKillsOfAttack,
    fsFightTime,
    fsCTF[3],
    fsLastFight,
    fsZoneID,
    fsFlag,
    Text:fsWinFaction,
    Text:fsLoseFaction,
    Text:fsWinKills,
    Text:fsLoseKills,
    Text:fsTime
    };
    new FightSystem[][fsSyS]={
    /*MinX, MinY, MaxX, MaxY, CTFx, CTFy, CTFz*/
    {1060.145,-1721.339,1166.624,-1583.168,1072.4016,-1619.3834,20.4583},//Kaufhaus
    {990.2909,1821.38,1177.724,2057.332,1067.5798,1884.2932,10.8203},//Container
    {-887.5186,1377.989,-583.8938,1634.903,-813.6335,1525.2080,26.5065},//Wüste
    {-2506.7,740.0255,-2383.094,826.8147,2459.4094,787.3281,35.1719},//Markt
    {-1850.044,1438.284,-1710.987,1584.248,-1789.1478,1543.3608,7.1875},//Hafen
    {-1891.4263,857.8361,-1722.0261,1095.5897,-1720.0752,1018.2902,17.5859},//Bank
    {1828.318,-1938.465,2071.699,-1760.817,1958.6156,-1853.2424,4.3392},//Tanke
    {1828.0573,-2161.2705,1956.4136,-2057.7964,1924.0941,-2125.0146,13.5826}//Airport(LS)
    };
    new Text:Fight,Text:FightUnderline;
    new FightTimer[2];


    public OnGameModeInit()
    {
    Fight_Init();
    return 1;
    }


    public IsAMember(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==8 || member==12 || member==13 || member==14 || member==14 || member==16 || member==17 || member==18 || member==19 || member==20 || member==21 || member==22 || member==23 || member==24)
    {
    return 1;
    }
    if(leader==5 || leader==6 || leader==8 || leader==12 || leader==13 || leader==14 || leader==15 || leader==16 || leader==17 || leader==18 || leader==19 || leader==20 || leader==21 || leader==22 || leader==23 || leader==24)
    {
    return 1;
    }
    }
    return 0;
    }


    public OnGameModeExit()
    {
    Fight_Close();
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    for(new fs;fs<sizeof(FightSystem);fs++){
    GangZoneShowForPlayer(playerid,FightSystem[fs][fsZoneID],GetZoneColorOfFaction(FightSystem[fs][fsOwnerFaction]));
    }
    // return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public GetPlayerAdmin(playerid){
    if(IsPlayerAdmin(playerid))
    return 2000;


    if(PlayerInfo[playerid][pAdmin])
    return PlayerInfo[playerid][pAdmin];


    return 0;
    }

    German Projekt Reallife

    87.98.244.35:3434

  • Kommt davon wen man die Scheiße von RGR nimmt obwohl man keinen Plan hat.


    Ich kann es dir über Tv machen.