Ich werde immer öfter als einmal gespawnt.

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
  • Hallo.
    Ich habe ein Problem mit meinen Spawnen.
    Das gilt nur wenn ich mein Server betrete.
    Ich werde meist 2-3 Mal gespawnt. Das sehe ich dadran,
    das ich eine Meldung gemacht habe, immer wenn ich Spawne.
    Und diese Meldung steht gaz oft da. Wie soll ich das Scripten,
    das ich nur einmal Spawne. ?
    Hier noch ein Screen.
    Ich hoffe ihr könnt helfen, für Codes oder so.


    ////////////////////////////////////////////////////////
    Weiterer Bug
    ///////////////////////////////////////////////////////


    Wenn ich Tod bin, also gemeint sterbe,
    bin ich erst in meinen Interior und werde dann da hingesetzt wo ich gestorben bin.


    Das ist zu sehen auf meinen anderen Screens
    358 - 362


    /////////////////////////////////////////////////////////////
    Beim Tod bin ich erst im Interior und dann Dort.

  • Hier OnPlayerSpawn
    public OnPlayerSpawn(playerid)
    {
    if(FirstSpawn[playerid] == 0)
    {
    ApplyAnimation(playerid,"CRACK","crckdeth2",4.0,1,0,0,0,0);
    ClearAnimations(playerid);
    FirstSpawn[playerid] = 1;
    SetPlayerColor(playerid,0xFFFFFFFF);
    }
    if(gestorben[playerid] == 1)
    {
    tod[playerid] = 1;
    gestorben[playerid] = 0;
    }
    if(tod[playerid] == 1)
    {
    new Float:xx = x[playerid];
    new Float:yy = y[playerid];
    new Float:zz = z[playerid];
    SetPlayerPos(playerid,xx,yy,zz);
    SetPlayerInterior(playerid,inte[playerid]);
    GameTextForPlayer(playerid,"~r~Du bist verwundet.",2000,6);
    SendClientMessage(playerid,rot,"Du bist gestorben");
    SetPlayerHealth(playerid,4);
    ApplyAnimation(playerid,"CRACK","crckdeth2",4.0,1,0,0,0,0);
    Dienst = 0;
    }
    if(GetPVarInt(playerid,"Banned") == 1)
    {
    SendClientMessage(playerid,rot,"Du bist gebannt!");
    Kick(playerid);
    return 1;
    }
    if(IsPlayerInFrak(playerid,0))
    {
    SetPlayerPos(playerid,1421.8114,-1491.2673,20.4296);
    SetPlayerSkin(playerid,159);
    GivePlayerWeapon(playerid,14,1);
    SendClientMessage(playerid,grau,"Du bist ein Zivilist und Arbeitslos");
    Dienst = 0;
    return 1;
    }
    if(IsPlayerInFrak(playerid,1)) //LSPD
    {
    SetPlayerPos(playerid,218.1525,78.8351,1005.0391);
    SetPlayerInterior(playerid,6);
    SetPlayerSkin(playerid,291);
    GivePlayerWeapon(playerid,3,1);
    GivePlayerWeapon(playerid,24,360);
    GivePlayerWeapon(playerid,31,250);
    GivePlayerWeapon(playerid,29,320);
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Der neue Leader ist ...");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Fangt die Wps'ler und sorgt für Ordung,");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Damit die Stadt schön sauber bleibt, von euch hängt viel ab");
    Dienst = 0;
    return 1;
    }
    if(IsPlayerInFrak(playerid,2)) //Medic
    {
    SetPlayerPos(playerid,364.1090,197.5628,1019.9844);
    SetPlayerInterior(playerid,3);
    SetPlayerSkin(playerid,291);
    GivePlayerWeapon(playerid,3,1);
    GivePlayerWeapon(playerid,14,1);
    GivePlayerWeapon(playerid,41,120);
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Der neue Leader ist ...");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Eure Aufgabe ist es verletzte zu Reanimieren mit /revive");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: SDM ist für euch verboten.");
    Dienst = 0;
    return 1;
    }
    if(IsPlayerInFrak(playerid,3)) //Ordnungsamt
    {
    SetPlayerPos(playerid,322.197998,302.497985,999.148437);
    SetPlayerInterior(playerid,5);
    SetPlayerSkin(playerid,291);
    GivePlayerWeapon(playerid,24,150);
    GivePlayerWeapon(playerid,41,100);
    GivePlayerWeapon(playerid,3,1);
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Der neue Leader ist ...");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Eure Aufgabe ist es in der Stadt für Ordnung zu sorgen");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: damit Meinen wir Fahrzeuge Abschleppen");
    Dienst = 0;
    return 1;
    }
    if(IsPlayerInFrak(playerid,4)) //Adac
    {
    SetPlayerPos(playerid,1264.6968,-1641.9783,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerSkin(playerid,291);
    GivePlayerWeapon(playerid,3,1);
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Der neue Leader ist ...");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Eure Aufgabe ist es Fahrzeuge zu reparieren und");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: aufzutanken, SdM ist für euch zu unterlassen.");
    Dienst = 0;
    return 1;
    }
    if(IsPlayerInFrak(playerid,5)) //Army
    {
    SetPlayerPos(playerid,223.1930,1855.0931,12.9318);
    SetPlayerInterior(playerid,0);
    SetPlayerSkin(playerid,291);
    GivePlayerWeapon(playerid,24,360);
    GivePlayerWeapon(playerid,31,250);
    GivePlayerWeapon(playerid,29,320);
    GivePlayerWeapon(playerid,17,51);
    GivePlayerWeapon(playerid,34,100);
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Der neue Leader ist ...");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Sorgt für Ordnung in der Stadt");
    SendClientMessage(playerid,0x00FFD2FF,"Fraktion: Nutzt eure Waffen bitte nicht aus");
    Dienst = 0;
    HasKey = 1;
    return 1;
    }
    //Gangs auf den Server
    if(IsPlayerInFrak(playerid,6))//Terror
    {
    SetPlayerPos(playerid,1059.895996,2081.685791,10.820312);
    SetPlayerInterior(playerid,0);
    GivePlayerWeapon(playerid,24,180);
    GivePlayerWeapon(playerid,31,1560);
    SetPlayerSkin(playerid,291);
    Dienst = 0;
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Der Leader der Fraktion Terror ist Campino.");
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Eure Fraktion hat 0 Bomben");
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Holt euch eure Waffen und vergesst eure Masken nicht.");
    return 1;
    }
    if(IsPlayerInFrak(playerid,7))//Groove
    {
    SetPlayerPos(playerid,2817.2197,-1168.6786,1025.5778);
    SetPlayerInterior(playerid,8);
    SetPlayerSkin(playerid,291);
    Dienst = 0;
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Der Leader der Fraktion Grove Street ist sulobaba.");
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Denkt bitte an den Weisen Spruch von Opa Groove");
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: DoN'T fuck With Groove Street.");
    return 1;
    }
    if(IsPlayerInFrak(playerid,8))
    {
    SetPlayerPos(playerid,961.7239,-49.4393,1001.1172);
    SetPlayerInterior(playerid,3);
    Dienst = 0;
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Der Leader der Fraktion Ballas ist.");
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Besprechung ist jeden Montag 18 h");
    SendClientMessage(playerid,0x00FFD2FF,"^Fraktion: Zur Zeit sind keine Member in der Fraktion.");
    SetPlayerSkin(playerid,291);
    return 1;
    }
    return 1;
    }


    Und OnPlayerConnect
    public OnPlayerConnect(playerid)
    {
    Maske[playerid] = 0;
    Anzeige[playerid] = TextDrawCreate(630.0,410.0," ");
    TextDrawSetOutline(Anzeige[playerid],1);
    TextDrawAlignment(Anzeige[playerid],3);
    TextDrawSetShadow(Anzeige[playerid],0);
    TextDrawShowForPlayer(playerid,Anzeige[playerid]);
    CBUG[playerid] = 0;
    }


    Ich habe alles rauskopiert.
    Ich habe nichts ausgelassen, hoffe nun auf Hilfe.

  • Ich brauche hier wirklich hilfe.
    public OnPlayerRequestClass(playerid, classid)
    {
    TextDrawShowForAll(Uhr);
    if(IsPlayerNPC(playerid))return 1;
    new SpielerDatei[64];
    format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",SpielerName(playerid));
    if(dini_Exists(SpielerDatei))
    {
    new string[180];
    format(string, sizeof(string),"{FFFFFF}Willkommen zurück, {FFFA00} %s\n{FFFFFF}Schön das du uns wieder besuchst\nGeb unten dein Passwort ein,\num weiter zu Spielen",MeinName(playerid));
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login Vorgang",string,"Login","Abbrechen");
    }
    else
    {
    new string[180];
    format(string, sizeof(string),"{FFFFFF}Herzlich Willkommen,{00E1FF}%s\n{FFFFFF}Du musst dich Registrieren\nGeb einfach unten\nein gewünschtes Passwort ein",MeinName(playerid));
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Register Vorgang",string,"Register","Abbrechen");
    }
    if(GetPVarInt(playerid,"Banned") == 1)
    {
    SendClientMessage(playerid,rot,"Du bist gesperrt");
    Kick(playerid);
    }
    FirstSpawn[playerid] = 0;
    RemoveBuildingForPlayer(playerid, 985, 2497.4063, 2777.0703, 11.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 986, 2497.4063, 2769.1094, 11.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 5935, 1120.1563, -1303.4531, 18.5703, 0.25);
    RemoveBuildingForPlayer(playerid, 5737, 1120.1563, -1303.4531, 18.5703, 0.25);
    RemoveBuildingForPlayer(playerid, 2001, 329.6875, 173.8984, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 1776, 330.6797, 178.5000, 1020.0703, 0.25);
    RemoveBuildingForPlayer(playerid, 1776, 331.9219, 178.5000, 1020.0703, 0.25);
    RemoveBuildingForPlayer(playerid, 1502, 341.1328, 168.7969, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2002, 349.4063, 167.8594, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 1722, 350.3750, 168.1797, 1018.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 1722, 351.1094, 168.2656, 1018.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 2009, 353.6719, 162.3906, 1018.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 1806, 354.5000, 162.9063, 1018.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 2010, 356.8125, 160.5156, 1018.9688, 0.25);
    RemoveBuildingForPlayer(playerid, 1999, 355.7109, 163.3906, 1018.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 1806, 356.8047, 162.6484, 1018.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 1502, 354.8906, 168.6719, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 351.9844, 192.5078, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 352.0078, 192.5781, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 351.9844, 193.4219, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 351.9844, 194.3359, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 351.9844, 195.2578, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 352.0078, 193.5000, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 352.0078, 195.3281, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 352.0078, 194.4141, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2186, 357.7734, 199.0391, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 14599, 358.7109, 162.0859, 1026.7031, 0.25);
    RemoveBuildingForPlayer(playerid, 14598, 364.7266, 173.8906, 1022.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 2002, 369.7813, 178.4141, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 1776, 371.5938, 178.4531, 1020.0703, 0.25);
    RemoveBuildingForPlayer(playerid, 14632, 364.9297, 188.1797, 1020.4844, 0.25);
    RemoveBuildingForPlayer(playerid, 14633, 364.9297, 188.1797, 1020.4844, 0.25);
    RemoveBuildingForPlayer(playerid, 14600, 366.8672, 188.1797, 1020.4844, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8047, 192.5078, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8047, 193.4219, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8047, 194.3359, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8047, 195.2578, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8281, 192.5781, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8281, 193.5000, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8281, 194.4141, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 359.8281, 195.3281, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 365.3438, 195.6250, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 365.3438, 196.5391, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 365.3438, 198.3750, 1018.9766, 0.25);
    RemoveBuildingForPlayer(playerid, 2167, 365.3438, 197.4531, 1018.9766, 0.25);
    return 1;
    }


    OnGameModeInit.


    public OnGameModeInit()
    {
    for( new a = 0;a<MAX_PLAYERS;a++)
    {
    Tacho[a] = TextDrawCreate(425.0,390.0,"");
    TextDrawLetterSize(Tacho[a],0.4,1.1);
    TextDrawFont(Tacho[a],1);
    TextDrawSetShadow(Tacho[a],2);
    TextDrawSetOutline(Tacho[a],1);
    }
    ManualVehicleEngineAndLights();
    for(new i= 0;i<MAX_VEHICLES;i++)
    {
    GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[i] = false;
    Tank[i] = 100;
    }
    SetTimer("BenzinVerlust",VERLUST,true);
    ZUSTAND = TextDrawCreate(500.000000, 381.000000, "Zustand: ");
    TextDrawBackgroundColor(ZUSTAND, 255);
    TextDrawFont(ZUSTAND, 1);
    TextDrawLetterSize(ZUSTAND, 0.300000, 0.799999);
    TextDrawColor(ZUSTAND, -1);
    TextDrawSetOutline(ZUSTAND, 0);
    TextDrawSetProportional(ZUSTAND, 1);
    TextDrawSetShadow(ZUSTAND, 1);
    TextDrawUseBox(ZUSTAND, 1);
    TextDrawBoxColor(ZUSTAND, 225);
    TextDrawTextSize(ZUSTAND, 605.000000, 0.000000);
    //FraktionsPickups
    therz=CreatePickup(1240,1,1085.2430,2116.0183,15.3504,-1);
    tarmor=CreatePickup(1242,1,1084.7565,2119.3716,15.3504,-1);
    tskins=CreatePickup(1275,1,1084.8936,2111.8057,15.3504,-1);
    mskins=CreatePickup(1275,1,351.3163,197.6244,1019.9844,-1);
    mherz=CreatePickup(1240,1,351.1917,191.0428,1019.9844,-1);
    oherz=CreatePickup(1240,1,324.2799,303.7295,999.1484,-1);
    oarmor=CreatePickup(1242,1,324.6213,307.4822,999.1484,-1);
    oskins=CreatePickup(1275,1,322.0921,316.4826,999.1484,-1);
    ostern=CreatePickup(1247,1,324.4090,305.7594,999.1484,-1);
    aherz=CreatePickup(1240,1,222.8103,1855.1088,12.9330,-1);
    aarmor=CreatePickup(1242,1,219.5759,1854.7181,12.9025,-1);
    astern=CreatePickup(1247,1,214.0314,1854.8090,12.9253,-1);
    adacstern=CreatePickup(1247,1,1265.9454,-1640.0272,13.5469,-1);
    adacherz=CreatePickup(1240,1,1263.3475,-1639.2876,13.5517,-1);
    //Pickups
    pup1=CreatePickup(1239,1,1199.3177,-918.1366,43.1228,-1);
    pup2=CreatePickup(1239,1,1315.5721,-897.6895,39.5781,-1);
    pup3=CreatePickup(1239,1,1368.9950,-1279.6796,13.5469,-1);
    pup4=CreatePickup(1239,1,1481.0400,-1772.3123,18.7958,-1);
    pup5=CreatePickup(1239,1,2397.8018,-1899.1838,13.5469,-1);
    pup6=CreatePickup(1247,1,351.3374,194.4359,1019.9844,-1);
    pup7=CreatePickup(1239,2,2543.1941,2823.3740,10.8203,-1);
    pup8=CreatePickup(1239,2,238.3292,1872.5686,11.4609,-1);
    pup9=CreatePickup(342,2,261.3253,1816.4425,1.0078,-1);
    pup10=CreatePickup(359,2,293.4064,1815.1014,1.0078,-1);
    pup11=CreatePickup(360,2,2601.1382,2848.8403,10.8203,-1);
    pup12=CreatePickup(1636,2,2595.8098,2848.7937,10.8203,-1);
    pup13=CreatePickup(1275,2,2592.2478,2848.4751,10.8203,-1);
    pup14=CreatePickup(1239,1,2591.9463,2842.3704,10.8203,-1);
    //Tor Variablen
    AlkaTorStatus = 0;
    MedicTorStatus = 0;
    ArmytorStatus = 0;
    TerTorStatus = 0;
    HasKey = 0;
    Dienst = 0;
    //Armybase

    CreateObject(1649, 266.5, 1880.6999511719, 16, 90, 0, 0);
    CreateObject(1649, 266.5, 1884, 16, 90, 0, 0);
    CreateObject(1649, 270.89999389648, 1880.6999511719, 16, 90, 0, 0);
    CreateObject(1649, 270.89999389648, 1884, 16, 90, 0, 0);
    CreateObject(1649, 270.89999389648, 1887.3000488281, 16, 90, 0, 0);
    CreateObject(1649, 266.5, 1887.3000488281, 16, 90, 0, 0);
    Army1 = CreateObject(10841, 214.30000305176, 1875.6999511719, 14.199999809265, 0, 0, 359.75);
    Army2 = CreateObject(980, 238.5, 1869.8000488281, 11.60000038147, 0, 0, 270)
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    //Echtzeit Uhr
    Uhr = TextDrawCreate(545.000000,2.000000,"");
    TextDrawBackgroundColor(Uhr,255);
    TextDrawFont(Uhr,3);
    TextDrawLetterSize(Uhr,0.52,2.29999);
    TextDrawColor(Uhr,-1);
    TextDrawSetOutline(Uhr,0);
    TextDrawSetProportional(Uhr,1);
    TextDrawSetShadow(Uhr,1);
    Admindienst = TextDrawCreate(487.000000, 143.000000, "Admindienst\naktiv");
    TextDrawBackgroundColor(Admindienst, 255);
    TextDrawFont(Admindienst, 1);
    TextDrawLetterSize(Admindienst, 0.399899, 1.400000);
    TextDrawColor(Admindienst, 16711935);
    TextDrawSetOutline(Admindienst, 1);
    TextDrawSetProportional(Admindienst, 1);
    SetTimer("UpdateUhr",1000,1);
    SetTimer("UpdateTacho",1000,true);
    //Beim Tod Freezen
    SetTimer("FreezeTodTimer",5000,1);
    //Settings
    UsePlayerPedAnims();
    DisableInteriorEnterExits();
    ShowPlayerMarkers(0);
    return 1;
    }