Beiträge von wNdRkNd

    Habe hier mal ein paar Stellen rausgesucht, die vielleicht damit was zutun haben könnten



    //Ticketsystem
    PlayerInfo[playerid][pTID] = 0;
    if (PlayerInfo[playerid][pAdmin] > 0)
    {
    format(string2, sizeof(string2), "SERVER: Du hast dich als Admin eingeloggt. Level: %d ",PlayerInfo[playerid][pAdmin]);
    SendClientMessage(playerid, COLOR_WHITE,string2);
    TextDrawShowForPlayer(playerid,tBox);
    TextDrawShowForPlayer(playerid,tBox2);
    TextDrawShowForPlayer(playerid,tBox3);
    TextDrawShowForPlayer(playerid,tBox4);
    TextDrawShowForPlayer(playerid,tBox5);
    TextDrawShowForPlayer(playerid,tBox6);
    TextDrawShowForPlayer(playerid,tBox7);
    TextDrawShowForPlayer(playerid,tBox8);
    TextDrawShowForPlayer(playerid,tBox9);
    TextDrawShowForPlayer(playerid,tBox10);
    TextDrawShowForPlayer(playerid,tBox11);
    TextDrawShowForPlayer(playerid,tBox12);
    TextDrawShowForPlayer(playerid,tBox99);
    }
    if(GetPlayerMoney(playerid) >= 5000000)
    {
    ResetPlayerMoney(playerid);// Denke mal das hier wird damit zutun haben <-------------------------------------
    GivePlayerMoney(playerid,50000);// Denke mal das hier wird damit zutun haben <-------------------------------------
    }
    if(PlayerInfo[playerid][pAccount] >= 5000000)
    {
    PlayerInfo[playerid][pAccount] = 50000;
    }
    SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
    if(gTeam[playerid] == 0)
    {
    gTeam[playerid] = 3;
    }
    else
    {
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
    }
    gPlayerLogged[playerid] = 1;
    SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
    SpawnPlayer(playerid);
    format(tmp2, sizeof(tmp2), "~w~Willkommen ~n~~y~ %s", playername2);
    DateProp(playerid);
    GameTextForPlayer(playerid, tmp2, 5000, 1);
    SendClientMessage(playerid, COLOR_WHITE, motd);
    if(PlayerInfo[playerid][pFMember] < 255)
    {
    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
    }
    if(WantedLevel[playerid] == 1) { WantedPoints[playerid] = 3; }
    else if(WantedLevel[playerid] == 2) { WantedPoints[playerid] = 5; }
    else if(WantedLevel[playerid] == 3) { WantedPoints[playerid] = 7; }
    else if(WantedLevel[playerid] == 4) { WantedPoints[playerid] = 9; }
    else if(WantedLevel[playerid] == 5) { WantedPoints[playerid] = 11; }
    else if(WantedLevel[playerid] == 6) { WantedPoints[playerid] = 13; }
    // if(WantedLevel[playerid] < 6) {(playerid,WantedLevel[playerid]); }
    // else {}
    }
    return 1;
    }


    oder


    new dollah = 50000; // Amount player recieves on spawn.
    Denke mal das hat aber nur damit zutun wenn ein neuer Spieler auf den Server joint also sich registriert (das Startgeld)



    Was sagt ihr dazu :>?


    mfG

    Servus,


    ich frage mich irgendwie ob hier jeder ne WBB 3 Lizenz hat oder einfach nur ne cracked Version genommen hat.
    Ich betreibe mein Forum mit Wbb lite (http://www.go-simple.de) habe auch eine TLD..


    Jetzt sehe ich hier fast jeden Tag Leute mit einer .tk Domain oder .de.vu oder sonst ein kack ;( und direkt eine dicke wbb3 Version drauf :(


    Was denkt ihr davon :>?

    Wie meinst du das?
    Normalerweise savet der das automatisch in der userini Datei..
    Es wird irgendein Cmd im Gamemode sein, der das immer zurücksetzt.
    (Wäre meine Vermutung.)



    mfG

    Servus,


    mein Problem ist, wenn jemand Geld auf der Bank hat (egal was (1mio. 10$)),
    derjenige verliert das Geld beim relog, also es wird jedesmal auf 50000 gesetzt beim rejoin.


    Kennt jemand das Comment dafür :>?


    Werde erst morgen zurückschreiben :)!!


    mfG

    public OnPlayerSpawn(playerid)
    {
    //====NODMBSN====
    GangZoneShowForPlayer(playerid, bsnzone, 0xFF000096);
    //====NODMBSN====


    //====AUTOHAUS====//
    SetPlayerMapIcon(playerid, 30, DtcSonstiges[1][0],DtcSonstiges[1][1],DtcSonstiges[1][2], 55, COLOR_YELLOW);
    //====AUTOHAUS====//




    //=============================================ICONS=============================================
    SetPlayerMapIcon(playerid, 4, 1544.4790,-1673.6595,13.5585, 30, COLOR_YELLOW); // LSPD
    SetPlayerMapIcon(playerid, 7, 1183.8340,-1330.6833,13.5796, 22, COLOR_YELLOW); // Hospital
    //=============================================ICONS=============================================




    GangZoneShowForAll(yak_zone, 0xFF000088);
    InitLockDoors(playerid);
    STDPlayer[playerid] = 0;
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team




    /* //TOT
    if(PlayerInfo[playerid][pTot] == 1)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_YELLOW, "|________ Am Krankenhaus ________|");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Durch deine schweren Verletzungnen liegst du im Koma!");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Sie sind fü 2-3 Minuten im Krankenhaus! In 2-3 Minuten kommen Sie wieder raus, da Sie gearde behandelt werden!");
    ResetPlayerWeapons(playerid);
    return 1;
    }
    else if(PlayerInfo[playerid][pTot] == 0)
    {
    DestroyPickup(TotenKopf[playerid][0]);
    }
    //TOT*/




    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
    gTeam[playerid] = 3;
    }
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Du Wurdest rausgeschmisssen weil du dich erst einloggen musst! (Kicked) **");
    KickPlayer[playerid] = 1;
    }
    if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du bist nicht Leader dieser Fraktion!");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    if(gTeam[playerid] == 5)
    {
    if(PlayerInfo[playerid][pMember] < 1)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du bist in keiner Familie!");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    }
    if(gTeam[playerid] == 10)
    {
    if(PlayerInfo[playerid][pMember] != 8)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du bist kein Mitglied !");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    }
    if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
    {
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du hast es nicht verdient Officer zu sein, du bist nun wieder ein Zivilist !");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    if(gTeam[playerid] == 3)
    {
    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist ein Teil einer Familie/Organisation, du hast zur richtigen Klasse+Charakter gewechselt!");
    MedicBill[playerid] = 0;
    new model = PlayerInfo[playerid][pChar];
    if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    }
    }
    if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
    else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
    SetPlayerWeapons(playerid);
    SetPlayerSpawn(playerid);
    SetPlayerToTeamColor(playerid);
    PlayerFixRadio(playerid);
    for(new i = 0; i < sizeof(Turfs); i++)
    {
    GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);
    }
    if(MapIconsShown[playerid] != 1)
    {
    MapIconsShown[playerid] = 1;
    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    SetPlayerMapIcon(playerid,i + 1,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ],36,COLOR_LIGHTRED);
    }
    for(new i = 0; i < sizeof(SBizzInfo); i++)
    {
    SetPlayerMapIcon(playerid,i + 20,SBizzInfo[i][sbEntranceX],SBizzInfo[i][sbEntranceY],SBizzInfo[i][sbEntranceZ],36,COLOR_LIGHTRED);
    }
    }
    return 1;



    Hier mal ein Ausschnit

    Könnte da einer mal mit Teamviewer nachgucken?
    Am besten könnte mir ja einer eine PN schicken, dann würde ich ID und PW schicken..


    Finde nichts was mir so ins Auge sticht :(!!



    mfG

    Servus,


    ich benutze den GRC RL Gamemod, irgendwie bekommt jeder Spieler wenn er joint eine Shotgun und wieder sofort gebannt wegen (Weapon Hack) als Begründung.
    Weiß wer wo das stehen kann, oder jemand nachher mal mit Teamviewer nachgucken :>?



    mfG

    Ich habe das jetzt mal so da reingeschrieben..


    dann kamen ein paar Errors wegen etwas mit der playerid..
    habe ich
    new playerid;
    einfach reingeschrieben, dann war der Error weg hatte aber 120 Warnings :D


    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2236) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2346) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2380) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2398) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2416) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2435) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2451) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2487) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2515) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2535) : warning 219: local variable "playerid" shadows a variable at a preceding level
    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\GS_Reallife_final.pwn(2611) : warning 219: local variable "playerid" shadows a variable at a preceding level


    Usw....

    He,
    soll ich jetzt einfach
    CreatePickup(1314, 23, 1568.8302,-1693.7546,5.8906); // Polizei Jail
    Irgenwo reinschreiben, weil mit "in GameModInit:" kann ich nichts anfangen :>.


    Fange gerade erst mit Pawno an :/


    mfG

    Jetzt aber


    if(strcmp(cmd, "/knast", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
    if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist nicht im Dienst!");
    return 1;
    }
    if(!PlayerToPoint(6.0, playerid, 264.7061,77.6269,1001.0391))
    {// Jail spot
    SendClientMessage(playerid, COLOR_GREY, " Du bist nicht nah genug am Knastt !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Nutze: /knast [preis] [zeit (minuten)] [kaution (0=nein 1=ja)] [kautionspreis]");
    return 1;
    }
    moneys = strval(tmp);
    if(moneys < 1 || moneys > 99999) { SendClientMessage(playerid, COLOR_GREY, "Strafe ( Dieses Geld wird dem Spieler beim einsperren abgezogen"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Nutze: /knast [preis] [zeit (minuten)] [kaution (0=nein 1=ja)] [kautionspreis]");
    return 1;
    }
    new time = strval(tmp);
    if(time < 1 || time > 180) { SendClientMessage(playerid, COLOR_GREY, " Knastzeit kann nicht unter 1 Minute oder über 20 Minuten sein) !"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Nutze: /knast [preis] [zeit (minuten)] [kaution (0=nein 1=ja)] [kautionspreis]");
    return 1;
    }
    new bail = strval(tmp);
    if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, " 1 = Kaution 0 = Nein"); return 1; }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Nutze: Nutze: /knast [preis] [zeit (minuten)] [kaution (0=nein 1=ja)] [kautionspreis]");
    return 1;
    }
    new bailprice = strval(tmp);
    if(bailprice < 0 || bailprice > 3000000) { SendClientMessage(playerid, COLOR_GREY, " Knastkaution darf nicht unter 0 oder über 300.000$ sein !"); return 1; }
    new suspect = GetClosestPlayer(playerid);
    if(IsPlayerConnected(suspect))
    {
    if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
    {
    GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(WantedLevel[suspect] < 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Spieler muss mindestens Wantedlevel 1 haben !");
    return 1;
    }
    format(string, sizeof(string), "* Du hast %s in den Knast getan !", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoney(suspect, -moneys);
    format(string, sizeof(string), "Eingesperrt von %s ~n~ für $%d", sendername, moneys);
    GameTextForPlayer(suspect, string, 5000, 5);
    ResetPlayerWeapons(suspect);
    if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
    {
    format(string, sizeof(string), "<< Polizist %s hat Verbrecher %s eingesperrt >>", sendername, giveplayer);
    OOCNews(COLOR_LIGHTRED, string);
    }
    else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
    {
    format(string, sizeof(string), "<< F.B.I Agent %s hat Verbrecher %s eingesperrt>>", sendername, giveplayer);
    OOCNews(COLOR_LIGHTRED, string);
    }
    else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
    {
    format(string, sizeof(string), "<< Soldat %s hat Verbrecher %s eingesperrt >>", sendername, giveplayer);
    OOCNews(COLOR_LIGHTRED, string);
    }
    SetPlayerInterior(suspect, 6);
    SetPlayerPos(suspect,264.6288,77.5742,1001.0391);
    PlayerInfo[suspect][pJailTime] = time * 60;
    if(bail == 1)
    {
    JailPrice[suspect] = bailprice;
    format(string, sizeof(string), "Du bist für %d Sekunden im Knast. Kaution: $%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
    SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
    }
    else
    {
    JailPrice[suspect] = 0;
    format(string, sizeof(string), "Du bist für %d Sekunden im Knast. Kaution: Unmöglich", PlayerInfo[suspect][pJailTime]);
    SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
    }
    PlayerInfo[suspect][pJailed] = 1;
    PlayerInfo[suspect][pArrested] += 1;
    SetPlayerFree(suspect,playerid, "Eingesperrt worden");
    WantedPoints[suspect] = 0;
    WantedLevel[suspect] = 0;
    WantLawyer[suspect] = 1;
    }//distance
    }//not connected
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Keiner ist nahe genug um eingebuchtet zu werden.");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Polizist/FBI Agent/Bundeswehr !");
    return 1;
    }
    }//not connected
    return 1;
    }

    Servus,


    ich wollte fragen ob jemand ein Pickup für das LSPD Jail machen kann.
    Also man soll unten mit dem Copcar stehen in der LSPD Garage und dann mit einem Command die Person ins Jail ganz am Ende vom LSPD porten.
    mit dem /knast command


    In der Garage sollte ein I Symbol zu sehen sein, am besten vor der Tür in der Garage.



    mfG

    Sry, dachte wäre hier richtig..


    if (strcmp(cmd, "/register", true) ==0 )
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE, "[GS]: Du bist bereits eingeloggt!");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "benutzer/%s.ini", sendername);
    new File: hFile = fopen(string, io_read);
    if (hFile)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Der Benutzername ist Bereits vergeben!");
    SendClientMessage(playerid, COLOR_YELLOW, "Bitte wähle einen Anderen!");
    fclose(hFile);
    return 1;
    }
    new tmppass[64];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "VERWENDUNG: /register [passwort]");
    return 1;
    }
    strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
    Encrypt(tmppass);
    OnPlayerRegister(playerid,tmppass);
    }
    return 1;
    }



    Denke mal ihr meint den hier, was anderes habe ich nicht mit /register gefunden.

    Servus,


    nachdem ich den GM jetzt compilt habe und hochgeladen habe, geht das /register nicht.
    Ich joine auf den Server, die ganzen Nachichten kommen usw. dann soll ich mich registrieren.
    Versuche ich dann auch mit /register passwort
    Dann passiert aber leider nichts :( Ich kann es so oft eingeben wie ich will, /login geht auch nicht :<


    Weiß wer wodran es liegen könnte :>?


    mfG

    Ich habe mal forward blabla oben eingegeben..
    Nun kommt


    C:\Dokumente und Einstellungen\usr3\Desktop\pawno2\SICKERRUNG.pwn(25587) : error 028: invalid subscript (not an array or too many subscripts): "gPlayerJob"

    Hm, das hilft mir so noch nicht weiter :D
    Wie gesagt, mache das erst seit 2 tagen


    /edit ich guck mal @ Egoshooter.. gerade erst gesehen, dass du geschrieben hast