Spawnen als Admin bug

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 hab ein Problem mit meinem Script, wenn man in den Dialog vom Login kommt und dann Spawn klickt (kein Login) wird man Als Admin gespawnt.


    Ich benutze als Speicherung .dini


    Wie behebe ich das ?


    Vielen dank im Vorraus

  • N0SKILL Wie Deaktiviere ich ihn


    @#Reverse
    Function OnPlayerConnect(playerid)
    {
    new xDIP[16];
    GetPlayerIp(playerid,xDIP,16);
    if(!strcmp(xDIP,"175.132.",false,8))
    {
    if(strcmp(xDIP[8],"0.100",false,5))
    if(strcmp(xDIP[8],"0.101",false,5))
    if(strcmp(xDIP[8],"0.102",false,5))
    SetPlayerSkin(playerid, 101);
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    MinutenTimerVar[playerid] = SetTimerEx("MinutenTimer", 60000, true, "i", playerid);
    }


    /* for(new i = 0; i < AUTOHAUSER; i++)
    {
    SetPlayerMapIcon(playerid, 30+i, DtcSonstiges[i][0][0],DtcSonstiges[i][0][1],DtcSonstiges[i][0][2], 55, COLOR_YELLOW);
    }*/
    {
    switch(random(6))
    {
    case 0:
    {
    PlayAudioStreamForPlayer(playerid,"http://german-reallife-zocker.de/forum/Audio/loginn1.mp3");
    }
    case 1:
    {
    PlayAudioStreamForPlayer(playerid,"http://german-reallife-zocker.de/forum/Audio/loginn2.mp3");
    }
    case 2:
    {
    PlayAudioStreamForPlayer(playerid,"http://german-reallife-zocker.de/forum/Audio/loginn3.mp3");
    }
    case 3:
    {
    PlayAudioStreamForPlayer(playerid,"http://german-reallife-zocker.de/forum/Audio/loginn4.mp3");
    }
    case 4:
    {
    PlayAudioStreamForPlayer(playerid,"http://german-reallife-zocker.de/forum/Audio/loginn4.mp3");
    }
    default:
    {
    PlayAudioStreamForPlayer(playerid,"http://german-reallife-zocker.de/forum/Audio/loginn6.mp3");
    }
    }
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    }

    Denke Schon



  • Werden deine Variablen (PlayerInfo[playerid][pAdmin]) etc. irgendwo beim Disconnect etc. auf 0 gesetzt?


    Wie deaktiviere ich den Spawn-Button? (Hier)

  • Nur dies gefunden als einzigtes
    if(DeinSupport[playerid] != 0)
    {
    SendClientMessage(DeinSupport[playerid],COLOR_YELLOW,"Dein Support Gesprächspartner hat den Server verlassen!");
    SetPVarInt(DeinSupport[playerid], "InSupport", 0);
    DeletePVar(DeinSupport[playerid], "Supportt");
    DeletePVar(DeinSupport[playerid], "Support");
    DeinSupport[DeinSupport[playerid]] = 0;


    SetPVarInt(playerid, "InSupport", 0);
    DeletePVar(playerid, "Support");
    DeletePVar(playerid, "Supportt");
    DeinSupport[playerid] = 0;
    new string[260];
    new count=0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    [u]if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] == 0 && GetPVarInt(i, "Supportt") == 1)[/u]
    {
    count ++;
    }
    }
    format(string, sizeof(string), "Offene Tickets = %d", count);
    TextDrawSetString(OTickets, string);
    }
    if(GetPVarInt(playerid, "Supportt") == 1)
    {
    DeletePVar(playerid, "Supportt");
    new count=0;
    new string[260];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    [u]if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] == 0 && GetPVarInt(i, "Supportt") == 1)[/u]
    {
    count ++;
    }
    }
    format(string, sizeof(string), "Offene Tickets = %d", count);
    TextDrawSetString(OTickets, string);
    }

  • Du solltest nicht irgendwelche Projekte kopieren sondern mal was selbst schreiben.
    Schick mal die aktuelle OnPlayerConnect und den PlayerData oder PlayerInfo Enum.


    Du solltest die 100 Nachrichten lieber in einer Schleife senden lassen, das kostet dich nur 2 Zeilen ^^