Beiträge von Sergej

    Account daten:


    virtualworld=0


    interior=178 //Das kann ja nicht stimmen oder?


    x=249.592971


    y=65.127563


    z=1003.640625



    Das kommt bei OnlplayerSpawn hin:
    SetPlayerVirtualWorld(playerid, 0);
    new pname[MAX_PLAYER_NAME], path[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(path, sizeof(path), "/Accountsspawn/%s.ini", pname);
    if(!dini_Exists(path))
    {
    dini_Create(path);
    }


    SetPlayerInterior(playerid,dini_Int(path,"interior"));
    SetPlayerVirtualWorld(playerid,dini_Int(path,"virtualworld"));


    SetPlayerPos(playerid, dini_Float(path, "x"), dini_Float(path, "y"), dini_Float(path, "z"));


    Und das bei OnPlayerDisconnect: new virtualworld;new Float:x, Float:y, Float:z, pname[MAX_PLAYER_NAME], path[128];
    GetPlayerPos(playerid, x, y, z); GetPlayerInterior(playerid,pInt);
    GetPlayerVirtualWorld(playerid,virtualworld);
    GetPlayerName(playerid, pname, sizeof(pname));
    //format(path, sizeof(path), "/%s.ini", pname);
    format(path, sizeof(path), "/Accountsspawn/%s.ini", pname);
    if(!dini_Exists(path))
    {
    dini_Create(path);
    }dini_FloatSet(path, "x", x);
    dini_FloatSet(path, "y", y);
    dini_FloatSet(path, "z", z);
    pInt ist bei Spieler enum oben schon drinne.

    Zeile (4779) : Unbekannte Variable : "interior"


    Zeile (4780) : Unbekannte Variable : "virtualworld"


    SetPlayerInterior(playerid,dini_Int(path,"interior",interior));


    SetPlayerVirtualWorld(playerid,dini_Int(path,"virtualworld",virtualworld));
    Wie kriege ich das hin?

    Hey Jungs,
    Kann mir einer helfen? Es geht darum das mein Script beim Ausloggen die letzte Position speichert und Sie dan beim Einloggen wieder setzt.
    Beispiel: Ich laufe zum BSN und gehe da offline, komme an der selben Position wieder online.


    So nun speichert der kein Interior ab, wie mache ich das? Wen ich im Knast oder BSN bin fällt der einfach durch den Boden.
    Wen mir einer meine Zeilen vervollständigen könnte wäre ich ihm sehr dankbar.


    Das kommt bei OnlplayerSpawn hin:
    SetPlayerVirtualWorld(playerid, 0);
    new pname[MAX_PLAYER_NAME], path[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(path, sizeof(path), "/Accountsspawn/%s.ini", pname);
    if(!dini_Exists(path))
    {
    dini_Create(path);
    }


    SetPlayerPos(playerid, dini_Float(path, "x"), dini_Float(path, "y"), dini_Float(path, "z"));


    Und das bei OnPlayerDisconnect:
    new Float:x, Float:y, Float:z, pname[MAX_PLAYER_NAME], path[128];
    GetPlayerPos(playerid, x, y, z);
    GetPlayerName(playerid, pname, sizeof(pname));
    //format(path, sizeof(path), "/%s.ini", pname);
    format(path, sizeof(path), "/Accountsspawn/%s.ini", pname);
    if(!dini_Exists(path))
    {
    dini_Create(path);
    }


    dini_FloatSet(path, "x", x);
    dini_FloatSet(path, "y", y);
    dini_FloatSet(path, "z", z);

    Hey Mitglieder,
    ich habe einpaar fragen.
    Es ist ein GF.
    Ich möchte, dass wen Jemand einen auf der Straße killt das dieser 4 Wanteds bekommt.
    Reicht also bei OnPlayerDeath: SetPlayerWantedLevel(killerid,4);
    Nun möchte ich das wen ein Cop jemanden killt, das dieser keine Wanteds erhält. Wie mache ich das?
    Wen das jemand hat einfach einfügen wen es geht, ich schaue es mir dan an.


    Bei /suspect = /su
    möchte ich das ich es so eingeben muss: /su [id] [anzahl der Wanteds] [Verbrechen]
    Da ich zurzeit immer nur einen Wanted vergeben kann. Hier mein Befehl:
    if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(SpielerInfo[playerid][sMember] == 1 && OnDuty[playerid] == 0 || SpielerInfo[playerid][sLeader] == 1 && OnDuty[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_GREY," Du musst erst in den Dienst gehen (/duty).");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "FEHLER: (/su)spect [playerid] [Anklage]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if (gTeam[playerid] == 2 || IsACop(playerid))
    {
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if (gTeam[giveplayerid] != 2)
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "FEHLER: (/su)spect [playerid] [Vergehen]");
    return 1;
    }
    WantedPoints[giveplayerid]+= 2;
    SetPlayerCriminal(giveplayerid,playerid, result);
    SendClientMessage(playerid, COLOR_WHITE, "Du hast dem Spieler ein WantedLevel gegeben!");
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Du kannst keinem Cop ein WantedLevel geben!");
    }
    }
    }
    else
    {
    format(string, sizeof(string), " %d ist kein aktiver Spieler.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du bist kein Cop / Kripo / Army !");
    }
    }
    return 1;
    }


    Ich würde mich sehr freuen wen mir jemand hilft.

    Klasse! 10/10
    Nur bei mir wird kein Geld abgezogen, es wird abgezogen und wieder gegeben.
    Und wie mache ich das ich nur max 5 Bomben bei mir tragen kann?

    Guten Abend,
    Hiermit wollte ich mich bei euch Informieren welches Script am besten ist.
    Ich bin mit dem Godfather nun sehr vertraut und kann damit Scripten. Bei neuen System hängt es ein wenig.
    Ich suche ein Script das ich Editieren kann, wo aber schon: Fraktionen, Funktionierende Jobs sowie Trucker etc gehen.
    Haus und Biz system sollte auch drine sein. In der Liste der Gamemodes habe ich viele gesehen, es gibt positive aber auch negative feedbacks.
    Favorite ist also der Godfather, aber eventuell schon ein Edit verwenden.


    Ich hoffe Ihr könnt mir helfen ein Script zu finden, das ich Editieren kann.
    Gedacht für: Große Lan Partys und Hamachi server.


    MfG

    Edit: pwn
    und Errors
    public ShowStats(playerid,targetid)


    {


    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))


    {


    new coordsstring[6][256],string2[256];




    format(coordsstring[0], sizeof(coordsstring),"*** %s ***",name);


    format(coordsstring[1], sizeof(coordsstring), "Level:[%d] Alter:[%d] SpawnHealth:[%.1f] Geld:[$%d] Bank:[$%d] Ph:[%d]", level,age,shealth+50, cash, account, pnumber);


    format(coordsstring[2], sizeof(coordsstring), "PremiumRang:[%s] HeiratMit:[%s] GespielteStunden:[%d] LottoNr:[%d] Krankheit:[%s] Levelkosten:[%d]", drank,married,ptime,lotto,dtext,levelcost);


    format(coordsstring[3], sizeof(coordsstring), "Fische:[%d] GrößterFisch:[%d] Verbrechen:[%d] GefängnisZeiten:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );


    format(coordsstring[4], sizeof(coordsstring), "Kills:[%d] Tode:[%d] Respekt:[%d/%d] WantedLevel:[%d] PayDay:[%d/%d]",kills,deaths,exp,expamount,wanted,pday,maxpaydaytime);


    format(coordsstring[5], sizeof(coordsstring), "Drogen:[%d] ArmorDrogen:[%d] Materialien:[%d] Team:[%s] Organisation:[%s] Rang:[%s] Job:[%s]",drugs,adrugs,mats,ttext,ftext,rtext,jtext);


    format(string2,sizeof(string2),"%s\n%s\n%s",coordsstring[0],coordsstring[1],coordsstring[2],coordsstring[3],coordsstring[4],coordsstring[5]);


    ShowPlayerDialog(playerid,DIALOG_STATS,"Titel",string2,"Schließen","Schließen");


    }


    }
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16603) : error 017: undefined symbol "name"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16604) : error 017: undefined symbol "level"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16605) : error 017: undefined symbol "drank"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16606) : error 017: undefined symbol "fishes"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16607) : error 017: undefined symbol "kills"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16608) : error 017: undefined symbol "drugs"
    C:\Users\Sergej\Desktop\gamemodes\life.pwn(16610) : error 035: argument type mismatch (argument 3)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    7 Errors.

    Kann da einer helfen?

    Hey Jungs könnt Ihr mir eventuell helfen?
    Ich habe ein Problem, und zwar lässt sich bei mir /stats im Dialog nicht richtig machen.
    Ich habe es schon 15 mal probiert. Falls es einer schnell kann.
    public ShowStats(playerid,targetid)
    {
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
    new cash = PlayerMoney[targetid];
    new atext[20];
    if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
    else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
    new otext[20];
    if(PlayerInfo[targetid][pOrigin] == 1) { otext = "USA"; }
    else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europa"; }
    else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asien"; }
    else
    {
    otext = "Unbekannt";
    }
    new ttext[20];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medic"; }
    else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civilian"; }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "LS Polizist"; }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "FBI Agent"; }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "National Guard"; }
    else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Firemen/Paramedic"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "LCN"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Ballas"; }
    else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "Mayor"; }
    else if(PlayerInfo[playerid][pHitman] == 1 || PlayerInfo[playerid][pHitman] == 2) { ttext = "Civilian"; }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "News Reporter"; }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxi"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "School Instructor"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "Groove Street"; }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { ttext = "Yakuza"; }
    else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "ADAC"; }
    else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "Transporter"; }
    else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ttext = "Special Force"; }

    else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { ttext = "San Trans"; }

    new dtext[20];
    if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
    else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
    else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
    else { dtext = "Nichts"; }
    new ftext[40];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
    { ftext = "Paramedics"; }
    else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
    { ftext = "La Cosa Nostra"; }
    else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
    { ftext = "Ballas"; }
    else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
    { ftext = "Fahrschule"; }
    else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
    { ftext = "Groove Street"; }
    else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
    { ftext = "The Transporter"; }
    else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)
    { ftext = "San Trans Family"; }
    else
    { ftext = "Nichts"; }
    new rtext[64];
    new member = PlayerInfo[targetid][pMember];
    new leader = PlayerInfo[targetid][pLeader];
    if(member == 13 || leader == 13)
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Oyabun"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Komon"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Saiko"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Gashira"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Kyodai"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Wakashu"; }
    else { rtext = "Wakashu"; }
    }
    if(member == 5 || member == 6 || member == 12 || leader == 5|| leader == 6 || leader == 12)
    {
    if(PlayerInfo[targetid][pRank] == 6) { rtext = "Godfather"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Underboss"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Capo"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldier"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Associate"; }
    else if(PlayerInfo[targetid][pRank] == 1) { rtext = "Outsider"; }
    else { rtext = "Outsider"; }
    }
    else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Cadet"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Officer"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Sergeant"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Captain"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Chief"; }
    else { rtext = "Cadet"; }
    }
    else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)//Yakuza Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Laie"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Yakuza"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Rechtehand"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Leader"; }
    else { rtext = "Anfänger"; }
    }
    else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)//PD Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Member"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Profi"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Inhaber"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Inhaber"; }
    else { rtext = "Trainee"; }
    }
    else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
    {
    if(PlayerInfo[targetid][pRank] >= 1 &&PlayerInfo[targetid][pRank] <= 6) { rtext = "Director"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)//Special Force Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Professional Staff"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Special Agent Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Special Agent"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Special Agent in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Assistant Director in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Director"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Rekrut"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Gefreiter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Unteroffizier"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Feldwebel"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Major"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
    else { rtext = "Private"; }
    }
    else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Local Reporter"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Local Editor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Network Anchor"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Network Editor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
    else { rtext = "Intern"; }
    }
    else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)//Transporter Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Transporter Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Transporter Rekrut"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Transporter Soldier"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Transporter Ass"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Transporter Manager"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Transporter Chef"; }
    else { rtext = "Transporter Trainee"; }
    }
    else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
    else { rtext = "Trainee"; }
    }
    else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
    else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
    else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
    else { rtext = "Trainee"; }
    }
    else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
    {
    if(PlayerInfo[targetid][pRank] == 1) { rtext = "Bombenbastler"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Terrorist"; }
    else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Attentäter"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Bombenführer"; }
    else { rtext = "Bombenbastler"; }
    }
    else
    {
    rtext = "Keinen";
    }
    new jtext[20];
    if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
    else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Anwalt"; }
    else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Hure"; }
    else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogen Dealer"; }
    else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Car Jacker"; }
    else if(PlayerInfo[targetid][pJob] == 6) { jtext = "News Reporter"; }
    else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Automechanicker"; }
    else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
    else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffen Dealer"; }
    else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autoverkäufer"; }
    else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
    else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
    else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Trucker"; }
    else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Farmer"; }
    else { jtext = "Keinen"; }
    new drank[20];
    if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Power User"; }
    else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "Donater"; }
    else { drank = "Keinen"; }
    new married[20];
    strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);

    new pday = PlayerInfo[targetid][pPayDayTime];
    new age = PlayerInfo[targetid][pAge];
    new ptime = PlayerInfo[targetid][pConnectTime];
    new lotto = PlayerInfo[targetid][pLottoNr];
    new deaths = PlayerInfo[targetid][pDeaths];
    new fishes = PlayerInfo[targetid][pFishes];
    new bigfish = PlayerInfo[targetid][pBiggestFish];
    new crimes = PlayerInfo[targetid][pCrimes];
    new arrests = PlayerInfo[targetid][pArrested];
    new warrests = PlayerInfo[targetid][pWantedDeaths];
    new drugs = PlayerInfo[targetid][pDrugs];
    new mats = PlayerInfo[targetid][pMats];
    new wanted = WantedLevel[targetid];
    new level = PlayerInfo[targetid][pLevel];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new pnumber = PlayerInfo[targetid][pPnumber];
    new account = PlayerInfo[targetid][pAccount];
    new nxtlevel = PlayerInfo[targetid][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    new housekey = PlayerInfo[targetid][pPhousekey];
    new bizkey = PlayerInfo[targetid][pPbiskey];
    new intir = GetPlayerInterior(targetid);
    new local = PlayerInfo[targetid][pLocal];
    new Float:shealth = PlayerInfo[targetid][pSHealth];
    new adrugs = PlayerInfo[targetid][armordrugs];
    //new Float:health;
    new name[MAX_PLAYER_NAME];
    new joblock[256];
    new jobinvite[256];
    new maxpaydaytime;
    if(PlayerInfo[targetid][pDonateRank] >= 1)
    {
    maxpaydaytime = 50;
    }
    else
    {
    maxpaydaytime = 60;
    }
    GetPlayerName(targetid, name, sizeof(name));
    new nextlevel = PlayerInfo[targetid][pLevel]+1;
    new levelcost = nextlevel*5000;
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(targetid, px, py, pz);
    new coordsstring[256], carstring[256];
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    format(coordsstring, sizeof(coordsstring),"*** Account: %s ***",name);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Level:[%d] Alter:[%d] SpawnHealth:[%.1f] Geld:[$%d] Bank:[$%d] Ph:[%d]", level,age,shealth+50, cash, account, pnumber);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "PremiumRang:[%s] HeiratMit:[%s] GespielteStunden:[%d] LottoNr:[%d] Krankheit:[%s] Levelkosten:[%d]", drank,married,ptime,lotto,dtext,levelcost);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Fische:[%d] GrößterFisch:[%d] Verbrechen:[%d] GefängnisZeiten:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Kills:[%d] Tode:[%d] Respekt:[%d/%d] WantedLevel:[%d] PayDay:[%d/%d]",kills,deaths,exp,expamount,wanted,pday,maxpaydaytime);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Drogen:[%d] ArmorDrogen:[%d] Materialien:[%d] Team:[%s] Organisation:[%s] Rang:[%s] Job:[%s]",drugs,adrugs,mats,ttext,ftext,rtext,jtext);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);

    if(PlayerInfo[targetid][pWarns] > 0)
    {
    format(coordsstring, sizeof(coordsstring), "Warnungen: %d", PlayerInfo[targetid][pWarns]);
    SendClientMessage(playerid, COLOR_RED,coordsstring);
    }
    if(PlayerInfo[targetid][pJobLock] >= 1)
    {
    new string[256];
    if(PlayerInfo[targetid][pJobLockMonth] == 1) { string = "Januar"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 2) { string = "Februar"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 3) { string = "März"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 4) { string = "April"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 5) { string = "Mai"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 6) { string = "Juni"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 7) { string = "Juli"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 8) { string = "August"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 9) { string = "September"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 10) { string = "Oktober"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 11) { string = "November"; }
    else if(PlayerInfo[targetid][pJobLockMonth] == 12) { string = "Dezember"; }
    format(joblock, sizeof(joblock), "%d. %s", PlayerInfo[targetid][pJobLockDate], string);
    format(coordsstring, sizeof(coordsstring), "JobLock seit: [%s], Stunden [%d]",joblock, PlayerInfo[targetid][pJobLockHours]);
    SendClientMessage(playerid, COLOR_RED2,coordsstring);
    }
    if(PlayerInfo[targetid][pJobInvite] == 1)
    {
    new string[256];
    if(PlayerInfo[targetid][pJobInviteMonth] == 1) { string = "Januar"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 2) { string = "Februar"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 3) { string = "März"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 4) { string = "April"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 5) { string = "Mai"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 6) { string = "Juni"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 7) { string = "Juli"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 8) { string = "August"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 9) { string = "September"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 10) { string = "Oktober"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 11) { string = "November"; }
    else if(PlayerInfo[targetid][pJobInviteMonth] == 12) { string = "Dezember"; }
    format(jobinvite, sizeof(jobinvite), "%d. %s ", PlayerInfo[targetid][pJobInviteDate], string);
    format(coordsstring, sizeof(coordsstring), "JobInvite seit: [%s], Stunden[%d]",jobinvite, PlayerInfo[targetid][pJobHours]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE,coordsstring);
    }
    if (PlayerInfo[playerid][pAdmin] >= 1331)
    {
    format(coordsstring, sizeof(coordsstring), "Haus key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
    SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
    format(carstring, sizeof(carstring), "BuyCarID [%d] BuyCarModel[%d] BuyBoatID [%d] BuyBoatModel [%d] BuyHeliID [%d] BuyHeliModel [%d]",BuyCarID[targetid], CarModel[targetid], BuyBoatID[targetid], BoatModel[targetid], BuyHeliID[targetid], HeliModel[targetid]);
    SendClientMessage(playerid, COLOR_GRAD6,carstring);
    }
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    }
    }

    GangSafeInfo[GetPlayerGangSafeInfo(playerid)-1][sMoney] += GangZoneInfo[gangzoneid][zMoney];
    Hast du mir ja geschickt, war in meinem Script schon drine.
    Wie mache ich jetzt das wen ich gewonnen habe 50k bar auf die Hand kriege xD

    if(MaxGangWarTime >= 180) einfach in if(MaxGangWarTime >= 6000) Für 10 Minuten.
    Und wie ist das mit dem Gewinn, wen ich da die Zahl eingebe bekomme ich einen Error. Danke das du dir die mühe machst..

    public AttackGangZone()
    {
    new AttackerID, DefenderID, string[256];

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(Invade[i] != 255)
    {
    format(string, sizeof(string), "Kills: ~r~%d",GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sKills]);
    TextDrawSetString(gkills[i], string);
    format(string, sizeof(string), "Punkte: ~g~%d",GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints]);
    TextDrawSetString(gpoints[i], string);
    pointtimer ++;
    if(pointtimer == 30)
    {

    if(PlayerInfo[i][pMember] == AttackerGang || PlayerInfo[i][pLeader] == AttackerGang)
    {
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] += Attackers;
    }
    if(PlayerInfo[i][pMember] == DefenderGang || PlayerInfo[i][pLeader] == DefenderGang)
    {
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] += Defenders;
    }
    format(string, sizeof(string), "Kills: ~r~%d",GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sKills]);
    TextDrawSetString(gkills[i], string);
    format(string, sizeof(string), "Punkte: ~g~%d",GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints]);
    TextDrawSetString(gpoints[i], string);
    pointtimer = 0;
    }
    if(GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] >= 150)
    {
    GangWarEnd(i, Invade[i]);
    }
    if(PlayerInfo[i][pMember] == AttackerGang || PlayerInfo[i][pLeader] == AttackerGang)
    {
    if(IsPlayerInRangeOfPoint(i,15.0, GangZoneInfo[Invade[i]][zSpawn1X], GangZoneInfo[Invade[i]][zSpawn1Y], GangZoneInfo[Invade[i]][zSpawn1Z]))
    {
    SpawnCampingTime[i] ++;
    if(SpawnCampingTime[i] == 15)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 18)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 20)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] == 25)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] >= 30)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    }
    else if(IsPlayerInRangeOfPoint(i,15.0, GangZoneInfo[Invade[i]][zSpawn2X], GangZoneInfo[Invade[i]][zSpawn2Y], GangZoneInfo[Invade[i]][zSpawn2Z]))
    {
    SpawnCampingTime[i] ++;
    if(SpawnCampingTime[i] == 3)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 6)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 9)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] == 12)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] >= 15)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    }
    else SpawnCampingTime[i] = 0;
    }
    if(PlayerInfo[i][pMember] == DefenderGang || PlayerInfo[i][pLeader] == DefenderGang)
    {
    if(IsPlayerInRangeOfPoint(i,15.0, GangZoneInfo[Invade[i]][zSpawn2X], GangZoneInfo[Invade[i]][zSpawn2Y], GangZoneInfo[Invade[i]][zSpawn2Z]))
    {
    SpawnCampingTime[i] ++;
    if(SpawnCampingTime[i] == 15)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 18)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 20)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] == 25)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] >= 30)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im eigenen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    }
    else if(IsPlayerInRangeOfPoint(i,15.0, GangZoneInfo[Invade[i]][zSpawn1X], GangZoneInfo[Invade[i]][zSpawn1Y], GangZoneInfo[Invade[i]][zSpawn1Z]))
    {
    SpawnCampingTime[i] ++;
    if(SpawnCampingTime[i] == 3)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 6)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    }
    if(SpawnCampingTime[i] == 9)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] == 12)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    if(SpawnCampingTime[i] >= 15)
    {
    SendClientMessage(i, COLOR_LIGHTBLUE, "* Du befindest dich im feindlichen Spawngebiet, verlasse es.");
    GangSafeInfo[GetPlayerGangSafeInfo(i)-1][sPoints] --;
    }
    }
    else SpawnCampingTime[i] = 0;
    }
    }
    }
    }
    MaxGangWarTime++;
    if(MaxGangWarTime >= 180)
    {
    for(new attacker = 0; attacker < MAX_PLAYERS; attacker++)
    {
    if(IsPlayerConnected(attacker))
    {
    if(PlayerInfo[attacker][pMember] == AttackerGang || PlayerInfo[attacker][pLeader] == AttackerGang)
    {
    AttackerID = attacker;
    for(new defender = 0; defender < MAX_PLAYERS; defender++)
    {
    if(IsPlayerConnected(defender))
    {
    if(PlayerInfo[defender][pMember] == DefenderGang || PlayerInfo[attacker][pLeader] == DefenderGang)
    {
    DefenderID = defender;
    }
    }
    }
    }
    }
    }
    if(GangSafeInfo[GetPlayerGangSafeInfo(DefenderID)-1][sPoints] > GangSafeInfo[GetPlayerGangSafeInfo(AttackerID)-1][sPoints])
    {
    GangWarEnd(DefenderID, Invade[DefenderID]);
    }
    if(GangSafeInfo[GetPlayerGangSafeInfo(AttackerID)-1][sPoints] > GangSafeInfo[GetPlayerGangSafeInfo(DefenderID)-1][sPoints])
    {
    GangWarEnd(AttackerID, Invade[AttackerID]);
    }
    if(GangSafeInfo[GetPlayerGangSafeInfo(AttackerID)-1][sPoints] == GangSafeInfo[GetPlayerGangSafeInfo(DefenderID)-1][sPoints])
    {
    GangWarEnd(DefenderID, Invade[DefenderID]);
    }
    }
    }