Beiträge von Toastiie1337

    haha Jeffry -.- hoffe das war nicht ernst gemeint mit Dummy Dummy :D in den User Files steht Jetzt wo eig Passwort stehen sollte steht dort Dummy :D und als Passwort Dummy xD
    oh ähm darunter steht dann dann das Passwort mit dem Inhalt " = " :D

    Guten Tag Breadfish ,
    Ich wollt mich auf mein Server regestrieren , allerdings Speichert er das Passwort nicht erst nachdem ich /changepass und dort erneut mein Passwort eintrage.


    Mein Register Dialog :


    if(dialogid == dialog_register){
    if(response == 0){
    Kick(playerid);
    return 1;
    }


    if(response == 1){
    if(!strlen(inputtext)){
    format(text,sizeof(text),"{FFFFFF}Herzlich Willkommen auf Test Deathmatch, {00B700}%s {FFFFFF}!\nEs wurde kein Account in der Datenbank mit deinem Namen gefunden.\nAccount legst du an, indem du ein Accountpasswort eingibst und auf Registrieren drückst.",PlayerName(playerid));
    ShowPlayerDialog(playerid,dialog_register,DIALOG_STYLE_INPUT,"Test Deathmatch",text,"Registrieren","Schließen");
    }
    Register(playerid,inputtext);
    SavePlayer(playerid);
    DM[playerid][8] = 1;
    LoggedIn[playerid]= 1;
    SpawnPlayer(playerid);


    Login Dialog:


    if(dialogid == dialog_login){
    if(response == 0){
    Kick(playerid);
    return 1;
    }
    if(response == 1){
    if(!strlen(inputtext)){
    format(text,sizeof(text),"{FFFFFF}Herzlich Willkommen zurück auf Test Deathmatch, {00B700}%s {FFFFFF}!\nBitte gib unten in das Eingabefeld dein Accountpasswort ein,\num dich einzuloggen. Anschließend werden deine Accountdaten geladen.",PlayerName(playerid));
    ShowPlayerDialog(playerid,dialog_login,DIALOG_STYLE_PASSWORD,"Test Deathmatch",text,"Login","Schließen");
    return 1;
    }
    Login(playerid,inputtext);
    return 1;
    }
    }
    Registrations Stock :


    stock Register(playerid,password[]){
    new Player[64];
    if(IsPlayerNPC(playerid)) return 1;
    format(Player,sizeof(Player),"/Spieler/%s.cfg",PlayerName(playerid));
    dini_Create(Player);
    dini_Set(Player,"Passwort",password);
    dini_IntSet(Player,"Level",1);
    dini_IntSet(Player,"Adminlevel",0);
    dini_IntSet(Player,"Cash",0);
    dini_IntSet(Player,"Kills",0);
    dini_IntSet(Player,"Deaths",0);
    dini_IntSet(Player,"KD",0);
    dini_IntSet(Player,"Skin",101);
    dini_IntSet(Player,"Premium",0);
    dini_IntSet(Player,"Spielsekunden",0);
    dini_IntSet(Player,"Banned",0);
    return 1;
    }


    Login Stock:


    stock Login(playerid,password[]){
    if(IsPlayerNPC(playerid)) return 1;
    new Player[64];
    new string[128];
    format(Player,sizeof(Player),"/Spieler/%s.cfg",PlayerName(playerid));
    if(!fexist(Player)) return 1;
    DM[playerid][8] = 1;
    if(!strcmp(dini_Get(Player,"Passwort"),password,true)){
    LoggedIn[playerid] = 1;
    SpawnPlayer(playerid);
    ClearChat(playerid);
    format(PlayerInfo[playerid][pPass],128,dini_Get(Player,"Passwort"));
    PlayerInfo[playerid][pLevel] = dini_Int(Player,"Level");
    PlayerInfo[playerid][pAdminLevel] = dini_Int(Player,"Adminlevel");
    PlayerInfo[playerid][pCash] = dini_Int(Player,"Cash");
    PlayerInfo[playerid][pKills] = dini_Int(Player,"Kills");
    PlayerInfo[playerid][pDeaths] = dini_Int(Player,"Deaths");
    PlayerInfo[playerid][pKD] = dini_Int(Player,"KD");
    PlayerInfo[playerid][pSkin] = dini_Int(Player,"Skin");
    PlayerInfo[playerid][pPremium] = dini_Int(Player,"Premium");
    PlayerInfo[playerid][pSpielSekunden] = dini_Int(Player,"Spielsekunden");
    PlayerInfo[playerid][pBan] = dini_Int(Player,"Banned");
    format(string,sizeof(string),"Herzlich Willkommen zurück %s",PlayerName(playerid));
    SendClientMessage(playerid,COLOR_DARKGREEN,string);
    SendClientMessage(playerid,COLOR_WHITE,"Die Deathmatch Arenen befinden sich unten in der Leiste");
    SendClientMessage(playerid,COLOR_WHITE,"**Fragen oder Probleme ? wende dich mit /a an einem Admin**");
    DM[playerid][8] = 1;
    if(PlayerInfo[playerid][pBan] == 1)
    {
    SendClientMessage(playerid,COLOR_RED,"Dein Account wurde Dauerhaft vom Server gesperrt und kann nicht verwendet werden");
    Kick(playerid);
    }
    }else{
    ResetPlayer(playerid);
    SendClientMessage(playerid,COLOR_RED,"Du hast ein falsches Passwort eingegeben");
    new text[256];
    format(text,sizeof(text),"{FFFFFF}Herzlich Willkommen zurück auf Test Deathmatch, {00B700}%s {FFFFFF}!\nBitte gib unten in das Eingabefeld dein Accountpasswort ein,\num dich einzuloggen. Anschließend werden deine Accountdaten geladen.",PlayerName(playerid));
    ShowPlayerDialog(playerid,dialog_login,DIALOG_STYLE_PASSWORD,"Test Deathmatch",text,"Login","Schließen");
    }


    Ich bedanke mich im Vorraus.

    wenn du noch helfen kannst mit der Textbox wäre das gut :D


    wollt wohl gerne alle dm Arenen + die angegebene Spieler die sich dort aktuell befinden, in dieser Textbox die sich dann unten rechts in der ecke bildet. wäre superwenn du helfen könntest :thumbup:

    ah oke und das bei jedem dm befehl womit ich die dm arena Betrete alles Klar ^^ wäre es vielleicht möglich eine If abfrage zu machen
    wenn der spieler im car sitz das er die dm arena nicht betreten kann ?


    //Edit du wolltes mir noch helfen wegen neuer dm arena :D

    if(!strcmp("/deagle",cmdtext,true)){
    if(DM[playerid] != 0) return SendClientMessage(playerid,COLOR_YELLOW,"Du bist bereits in einer Arena. Benutze /leave");
    DM[playerid] = 1;
    DM[playerid] = 0;
    format(text,sizeof(text),"Spieler %s ist der Deagle Arena beigetreten!",PlayerName(playerid));
    SendClientMessageToAll(COLOR_ORANGE,text);
    SpawnPlayer(playerid);
    return 1;
    }


    ohne das zu testen schick ich dir den code muss es do so machen oder nicht bekomme zumindest erstmal keine Errors ich kann doch so die abfrage machen oder nicht?


    if(DM[playerid] != 0) return SendClientMessage(playerid,COLOR_YELLOW,"Du bist bereits in einer Arena. Benutze /leave");

    OnPlayerSpawn Code:


    public OnPlayerSpawn(playerid){
    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++){
    for(new ii = 0; 9 > ii; ii++){
    if(DM[i][ii] == 1){
    Dm[ii]++;
    }
    }
    }
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    format(String,sizeof(String),"/DEAGLE: %d - /DM: %d - /1O1: %d - /Test Arena: %d - /SNIPER: %d - /TEAMDM: %d - /INSEL: %d - KEIN MODUS: %d",Dm[0],Dm[1],Dm[2],Dm[3],Dm[4],Dm[5],Dm[6],Dm[7],Dm[8]);
    TextDrawSetString(Textdraw[3],String);
    if(DM[playerid] == 0)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(DM[playerid] == 1)
    {
    new rand = random(4);
    SetPlayerInterior(playerid,1);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid] == 2)
    {
    new rand = 4+random(4);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid] == 3)
    {
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,-2223.0037,1217.4150,87.2109);
    SetPlayerFacingAngle(playerid,0);
    for(new i = 0; 4 > i;i++)
    {
    if(one[playerid][i] == 1)
    {
    SetPlayerVirtualWorld(playerid,i+1);
    }
    }
    }
    else if(DM[playerid] == 5)
    {
    new rand = 12+random(6);
    SetPlayerInterior(playerid,3);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid] == 4)
    {
    new rand = 8+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    else if(DM[playerid] == 6)
    {
    new rand = 18+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,25,250);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    return 1;
    }

    habs entfernt bekomme in der Zeile 407 errors :D


    public OnPlayerSpawn(playerid){
    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++){
    for(new ii = 0; 9 > ii; ii++){
    if(DM[i][ii] == 1){ // Zeile 407
    Dm[ii]++;
    }
    }
    }


    C:\Users\Toastie\Documents\TestServer\gamemodes\FDM.pwn(407) : error 001: expected token: ")", but found "["
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(407) : error 029: invalid expression, assumed zero
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(407) : warning 215: expression has no effect
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(407) : error 001: expected token: ";", but found "]"
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(407) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.


    und wenn ich das lösche Funktionier mein Compiler nicht mehr sprich : der stürzt ab / reagiert nicht mehr :/

    Hey Ho Jeffry hab mal den Code und die Variable so umgeschrieben wie du sagtest allerdings bekomme ich Jetz errors angezeigt ich zeige dir die zeilen inclusiv die errors :


    public OnPlayerDisconnect(playerid, reason){
    SavePlayer(playerid);
    ResetPlayer(playerid);
    for(new i = 0; 9 > i; i++){
    DM[playerid][i] = 0; ( Zeile 401 )
    }
    return 1;
    }


    public OnPlayerSpawn(playerid){
    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++){
    for(new ii = 0; 9 > ii; ii++){
    if(DM[i][ii] == 1){
    Dm[ii]++;
    }
    }
    }


    und die errors die der compiler ausspuckt:


    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(401) : warning 215: expression has no effect
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(401) : error 001: expected token: ";", but found "["
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(401) : error 029: invalid expression, assumed zero
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(401) : warning 215: expression has no effect
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(401) : error 001: expected token: ";", but found "]"
    C:\Users\Toastie\Documents\Test Server\gamemodes\FDM.pwn(401) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.

    Ne das war Ja so an sich alles richtig wollte Ja nur ne arena erstellen aber buggt dann rum wenn ich random possitionen erstellen will ?


    so sehen alle random possitionen aus ,


    new RandomSpawn[][rpos]={
    //Deagle Arena
    {2170.1455,1619.1500,999.9766,268.7325},
    {2173.8379,1578.2926,999.9676,355.0020},
    {2206.3252,1551.2097,1008.0002,275.0152},
    {2197.7476,1611.7670,999.9689,270.7063},
    //Deathmatch Arena
    {-973.5314,1098.0420,1344.9725,152.0461},
    {-1069.3160,1094.3376,1343.0927,114.9785},
    {-1134.2878,1020.9984,1345.7385,331.2432},
    {-1032.9974,1082.2256,1343.1140,253.8179},
    //Sniper Arena
    {2258.8872,1013.1470,79.5547,40.021},
    {2319.2756,1112.1581,79.5546,107.0825},
    {2240.9902,1152.4130,79.5547,204.9767},
    {2184.8640,1044.0034,79.5547,270.9966},
    //teamdm Arena
    {362.0883,184.5245,1008.3828,179.6812},
    {370.6522,185.8935,1014.1797,194.5972},
    {367.1571,158.4084,1014.1875,14.6715},
    {365.9490,158.6305,1019.9844,57.1881},
    {371.4884,172.9320,1019.9844,31.9283},
    {355.1946,188.9884,1019.9844,276.3385},
    //insel Arena
    {-2472.5017,1928.1299,1.8585,230.6389},
    {-2476.0938,1860.8207,3.1238,313.5476},
    {-2406.3843,1856.7988,2.7644,39.0885},
    {-2404.9927,1933.2521,2.8361,136.2540}
    };


    doch wenn ich eine mit drunter schreibe weiss ich nicht warum die anderen dann buggen ?

    Selbst verständlich , so sehen alle anderen DM Arenen aus


    if(DM[playerid][8] == 1){
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }else if(DM[playerid][0] == 1){
    new rand = random(4);
    SetPlayerInterior(playerid,1);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][1] == 1){
    new rand = 4+random(4);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][2] == 1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,-2223.0037,1217.4150,87.2109);
    SetPlayerFacingAngle(playerid,0);
    for(new i = 0; 4 > i;i++){
    if(one[playerid][i] == 1){
    SetPlayerVirtualWorld(playerid,i+1);
    }
    }
    }else if(DM[playerid][5] != 0){
    new rand = 12+random(6);
    SetPlayerInterior(playerid,3);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][4] == 1){
    new rand = 8+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][6] == 1){
    new rand = 18+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,25,250);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }
    return 1;
    }


    das ist der code wenn man die Deagle Arena Beispielsweise betritt oder betreten möchte ,

    if(!strcmp("/deagle",cmdtext,true)){
    if(DM[playerid][8] == 0) return SendClientMessage(playerid,COLOR_YELLOW,"Du bist bereits in einer Arena. Benutze /leave");
    DM[playerid][0] = 1;
    DM[playerid][8] = 0;
    format(text,sizeof(text),"Spieler %s ist der Deagle Arena beigetreten!",PlayerName(playerid));
    SendClientMessageToAll(COLOR_ORANGE,text);
    SpawnPlayer(playerid);
    return 1;
    }

    Danke ,


    wenn du mir Jetzt noch helfen könntest bei der Dm Arena erstellen wäre das Super Gut ich definiere mal dm arena erstellen
    du hast sicher im Script gesehen das ich einige DM Arenen habe ich wollt mir eine weitere erstellen da klappts aber mit dem Random Pos nicht :/ wenn ich das mit dem Random Position mache
    Buggen einige andere dm Arenen rum aus dem Grund habe ich das vorzeitig weggelassen so dass, ich nur an der SetPlayerPos Stelle Spawne.

    Guten Tag Liebes Breadfish Community ,


    Ich hätte mir es ganz gerne so vorgestellt Spieler A ist in einer DM Arena Spieler B kommt nach
    Spieler A will die DM Arena Leaven doch Spieler B drückte ihm beispielsweise Deagle hits nun hätte ich es ganz gerne das Spieler A
    nicht Direkt Leaven kann sonder Spieler A muss meinetwegen 3 - 4 Sekunden warten könne mir einer dabei helfen ich bedanke mich im vorraus







    Mit Freundlichen Grüßen ,


    Toastiie1337.

    Guten Tag ich hätte wohl gern eine DM Arena erstellen wollen leider Funktioniert sie nicht ganz :


    }else if(DM[playerid][3] == 1){
    new rand = 25+random(3);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    GivePlayerWeapon(playerid,33,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);


    if(!strcmp("/fdm",cmdtext,true)){
    if(DM[playerid][8] == 0) return SendClientMessage(playerid,COLOR_YELLOW,"Du bist bereits in einer Arena. Benutze /l");
    DM[playerid][3] = 1;
    DM[playerid][8] = 0;
    format(text,sizeof(text),"Spieler %s ist der Free Deathmatch Arena beigetreten",PlayerName(playerid));
    SendClientMessageToAll(COLOR_BLUE,text);
    SetPlayerPos(playerid, 1885.6011,-2552.5916,17.2357);
    return 1;
    }


    die DM Arena 8 ist Die Freie Auswahl sprich wenn man einer Aren verlässt quazi der Spawnpunkt wenn leute Connecten Jedenfalls zeigt er mir wenn ich die arena betrete werde ich an der Stelle gespawnt Random Pos etc funktioniert alles Warum aber zeigt er mir an das ich angeblich nicht in dieser Arena befinde sprich wenn ich in der arena sterbe spawn ich an der AddPlayerClass stelle ( Spawn wenn man dem Server betritt ) .

    hab das Backup wiederhergestellt vielleicht kommste damit dann so besser zurecht Jenachdem doch hier das Komplette OnPlayerSpawn :


    public OnPlayerSpawn(playerid){
    {


    new ppname[MAX_PLAYER_NAME],file[250],clanname3d[50];
    GetPlayerName(playerid,ppname,sizeof(ppname));
    format(file,sizeof(file),"/Clans/%s.cfg",(ppname));


    if(dini_Exists(file))
    {
    format(clanname[playerid], 32, dini_Get(file,"Clan"));
    clanstate[playerid] = dini_Int(file,"Rang");


    if(labels[playerid] != Text3D:-1) Delete3DTextLabel(labels[playerid]);
    labels[playerid] = Text3D:-1;


    if(clanstate[playerid] == 3)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Leader {EEEEEE}",clanname[playerid]);
    }
    else if(clanstate[playerid] == 1)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Member {EEEEEE}",clanname[playerid]);
    }
    labels[playerid] = Create3DTextLabel(clanname3d,-1,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(labels[playerid], playerid, 0.0, 0.0, 0.5);
    }
    }



    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++){
    for(new ii = 0; 9 > ii; ii++){
    if(DM[i][ii] == 1){
    Dm[ii]++;
    }
    }
    }
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    format(String,sizeof(String),"/Deagle: %d - /Dm: %d - /1o1: %d - /Sniper: %d - /Teamdm: %d - /Insel: %d - Kein Modus: %d",Dm[0],Dm[1],Dm[2],Dm[3],Dm[4],Dm[5],Dm[6],Dm[8]);
    TextDrawSetString(Textdraw[3],String);
    if(DM[playerid][8] == 1){
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }else if(DM[playerid][0] == 1){
    new rand = random(4);
    SetPlayerInterior(playerid,1);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][1] == 1){
    new rand = 4+random(4);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][2] == 1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,1337);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerPos(playerid,-2223.0037,1217.4150,87.2109);
    SetPlayerFacingAngle(playerid,0);
    for(new i = 0; 4 > i;i++){
    if(one[playerid][i] == 1){
    SetPlayerVirtualWorld(playerid,i+1);
    }
    }
    }else if(DM[playerid][5] != 0){
    new rand = 12+random(6);
    SetPlayerInterior(playerid,3);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][4] == 1){
    new rand = 8+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][6] == 1){
    new rand = 18+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,25,250);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);


    }
    return 1;
    }


    /edit


    ich meinte den Spawn wenn User auf den Server Connecten nicht den Duel Spawn^.^

    Versthe nicht gerade was du meinst ? kann dir nicht ganz folgen wo soll ich wat hinpackem, ._.


    /edit


    habs gemacht Funktionmiert spawne dann wieder an der AddPlayerClass ganz Normal am Spawn und dank dem alles buggen meine ganzen arenen -.-

    if(inDuel[playerid] > 0)
    {
    GivePlayerWeapon(playerid, 24, 1337);
    GivePlayerWeapon(playerid, 25, 1337);
    GivePlayerWeapon(playerid, 33, 1337);
    SetPlayerVirtualWorld(playerid, inDuel[playerid]);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    }


    new ppname[MAX_PLAYER_NAME],file[250],clanname3d[50];
    GetPlayerName(playerid,ppname,sizeof(ppname));
    format(file,sizeof(file),"/Clans/%s.cfg",(ppname));


    if(dini_Exists(file))
    {
    format(clanname[playerid], 32, dini_Get(file,"Clan"));
    clanstate[playerid] = dini_Int(file,"Rang");


    if(labels[playerid] != Text3D:-1) Delete3DTextLabel(labels[playerid]);
    labels[playerid] = Text3D:-1;


    if(clanstate[playerid] == 3)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Leader {EEEEEE}",clanname[playerid]);
    }
    else if(clanstate[playerid] == 1)
    {
    format(clanname3d,sizeof(clanname3d),"%s {FF0000} Member {EEEEEE}",clanname[playerid]);
    }
    labels[playerid] = Create3DTextLabel(clanname3d,-1,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(labels[playerid], playerid, 0.0, 0.0, 0.5);
    }
    }



    new String[128],Dm[9];
    for(new i = 0; MAX_PLAYERS > i; i++){
    for(new ii = 0; 9 > ii; ii++){
    if(DM[i][ii] == 1){
    Dm[ii]++;
    }
    }
    }
    SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
    format(String,sizeof(String),"/DEAGLE: %d - /DM: %d - /1O1: %d - /SNIPER: %d - /TEAMDM: %d - /INSEL: %d - KEIN MODUS: %d",Dm[0],Dm[1],Dm[2],Dm[4],Dm[5],Dm[6],Dm[8]);
    TextDrawSetString(Textdraw[3],String);
    if(DM[playerid][8] == 1){
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }else if(DM[playerid][0] == 1){
    new rand = random(4);
    SetPlayerInterior(playerid,1);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][1] == 1){
    new rand = 4+random(4);
    SetPlayerInterior(playerid,10);
    GivePlayerWeapon(playerid,24,500);
    GivePlayerWeapon(playerid,25,500);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][2] == 1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,500);
    SetPlayerPos(playerid,-2223.0037,1217.4150,87.2109);
    SetPlayerFacingAngle(playerid,0);
    for(new i = 0; 4 > i;i++){
    if(one[playerid][i] == 1){
    SetPlayerVirtualWorld(playerid,i+1);
    }
    }
    }else if(DM[playerid][5] != 0){
    new rand = 12+random(6);
    SetPlayerInterior(playerid,3);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][4] == 1){
    new rand = 8+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,34,500);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][6] == 1){
    new rand = 18+random(4);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,250);
    GivePlayerWeapon(playerid,25,250);
    SetPlayerPos(playerid,RandomSpawn[rand][rX],RandomSpawn[rand][rY],RandomSpawn[rand][rZ]);
    SetPlayerFacingAngle(playerid,RandomSpawn[rand][rA]);
    }else if(DM[playerid][3] ==1){
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,1337);
    GivePlayerWeapon(playerid,25,1337);
    GivePlayerWeapon(playerid,33,1337);
    SetPlayerPos(playerid, 774.213989,-48.924297,1000.585937);
    SetPlayerVirtualWorld(playerid, playerid+10);


    }
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason){


    new text[128];
    new Float:Health;
    GetPlayerHealth(killerid, Health);
    SetPlayerHealth(killerid, Health+100);
    if(killerid == INVALID_PLAYER_ID) return 1;
    if(playerid == INVALID_PLAYER_ID) return 1;
    SendDeathMessage(killerid, playerid, reason);
    KillStreak[killerid]++;
    KillStreak[playerid] = 0;
    PlayerInfo[killerid][pCash] += 1000;
    PlayerInfo[killerid][pWanteds] ++;
    PlayerInfo[killerid][pKills] ++;
    PlayerInfo[playerid][pDeaths] ++;
    PlayerPlaySound(killerid,17802,0.0,0.0,0.0);
    if(DM[playerid][4] == 1) PlayerInfo[killerid][pCash] += 500;
    if(PlayerInfo[killerid][pWanteds] < 6){
    GameTextForPlayer(killerid, "~g~+1 kill", 3000, 3);
    }
    if(PlayerInfo[killerid][pWanteds] >= 6){
    PlayerInfo[killerid][pWanteds] = 0;
    PlayerInfo[killerid][pLevel] ++;
    format(text,sizeof(text),"~n~~n~~w~Level Up!~n~~g~Neues Level %d",PlayerInfo[killerid][pLevel]);
    GameTextForPlayer(killerid, text, 4000, 3);
    }
    if(KillStreak[killerid] >= 3){
    format(text,sizeof(text),"[KILLSTREAK] %s hat einen 3-er Killstreak! Er bekommt nun wieder 100 HP!",PlayerName(killerid));
    SendClientMessageToAll(COLOR_WHITE,text);
    SetPlayerHealth(killerid,100);
    KillStreak[killerid] = 0;
    }




    format(text, sizeof(text), "~r~Du wurdest von %s gekillt.", PlayerName(killerid));
    GameTextForPlayer(playerid, text, 3000, 3);
    return 1;


    }
    public OnPlayerText(playerid, text[])
    {
    if(GetPVarInt(playerid,"Mute") != 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist gemutet");
    return 0;
    }
    return 1;
    }