Beiträge von walker008

    Hi,
    Unser Team suchen ein 3 echt hammer Design für unser Forum und wenns geht ein echt geiles Banner!
    Wir zahlen auch gut :D
    einfach in icq adden für infos:394-478-507

    public OnPlayerDisconnect(playerid, reason)
    {
    new pName[MAX_PLAYER_NAME], string[56];
    GetPlayerName(playerid, pName, sizeof(pName));
    switch(reason)
    {
    case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Timeout)", pName);
    case 1: format(string, sizeof(string), "%s hat den Server verlassen. (Leaving)", pName);
    case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kicked/Banned)", pName);
    }
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
    } <muss die nicht so { sein?

    #include <a_samp>
    enum pInfo
    {
    pKey[128],
    pLevel,
    pAdmin,
    pDonateRank,
    gPupgrade,
    pConnectTime,
    pReg,
    pSex,
    pAge,
    pOrigin,
    pCK,
    pMuted,
    pExp,
    pCash,
    pAccount,
    pCrimes,
    pKills,
    pDeaths,
    pArrested,
    pWantedDeaths,
    pPhoneBook,
    pLottoNr,
    pFishes,
    pBiggestFish,
    pJob,
    pPayCheck,
    pHeadValue,
    pJailed,
    pJailTime,
    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,
    pFlyLic,
    pBoatLic,
    pFishLic,
    pGunLic,
    pMopedLic,
    pMotorradLic,
    pGun1,
    pGun2,
    pGun3,
    pGun4,
    pAmmo1,
    pAmmo2,
    pAmmo3,
    pAmmo4,
    pCarTime,
    pPayDay,
    pPayDayHad,
    pCDPlayer,
    pWins,
    pLoses,
    pAlcoholPerk,
    pDrugPerk,
    pMiserPerk,
    pPainPerk,
    pTraderPerk,
    pTut,
    pMissionNr,
    pWarns,
    pAdjustable,
    pFuel,
    pMarried,
    pMarriedTo[128],
    };

    new PlayerInfo[MAX_PLAYERS][pInfo];
    new rob = 0;

    forward SendFamilyMessage(family, color, string[]);
    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
    forward robtimer();
    forward freezetimer(playerid);
    //-------------------------Einstellungen der Zeit---------------------------------------
    #define robtime 3000000 // Zeit wielange man nicht Klauen darf 3000000 = 30 Minuten
    #define freezetime 0 // Zeit wo man beim Ausrauhen gefreezt ist. 10000 = 10 Sekunden
    //--------------------------------------------------------------------------------------
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT

    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("");
    print("--------------------------------------\n");
    return 1;
    }

    public OnFilterScriptExit()
    {
    return 1;
    }

    #else


    #endif


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext, "/rob", true) == 0)
    {
    SendFamilyMessage(1, 0xAA3333AA,"Der User x hat die Bank in Los Santos ausgeraubt!");
    if(!PlayerToPoint(20.0,playerid,2316.6189,-7.3298,26.7422))
    {
    SendClientMessage(playerid,0xAA3333AA,"Du bist nicht in der Los Santos Bank!");
    return 1;
    }
    if(rob)
    {
    SendClientMessage(playerid,0xAA3333AA,"Die Bank wurde eben erst überfallen!");
    return 1;
    }
    new randmoney = 4000 + random (9999);
    GivePlayerMoney(playerid,randmoney);
    TogglePlayerControllable(playerid,1);
    rob = 1;
    SetTimer("robtimer",robtime,0);



    return 1;
    }
    return 0;
    }
    public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }
    public robtimer()
    {
    rob = 0;
    }
    public freezetimer(playerid)
    {
    TogglePlayerControllable(playerid,1);
    SendClientMessage(playerid,0x00FF00FF,"Du hast die Bank erfolgreich ausgeraubt.");
    }
    WantedPoints[playerid] += 2;
    SetPlayerCriminal(playerid,255, "Bank ausgeraubt");
    }
    public SendFamilyMessage(family, color, string[])
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == family || PlayerInfo[i][pLeader] == family)
    {

    }
    }
    }
    Bin zwar selbst net gut,
    aber so kriegt der Räuber nen Wanted...