Bitte Hilfe, etwas entfernen (leicht)

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
  • Es hat schon seinen Grund wieso dort:

    Zitat

    GermanReallife 3.0


    steht.


    Könnte wetten,als du das Script gedownloadet hast stand da irgendwo was von "Copyright darf nicht entfernt werden".
    Aber das hast du gerade vor :/-

  • Musst du google mal schauen , gibt es verschiedene Texturen

  • Mal ein Tipp von mir :
    Lass die Finger von Ravens Roleplay wenn du keine Ahnung vom Scripten hast.


    bezüglich deines Problems im Script Strg+F "/ooc" und dann bei SendClientMessageToAll den HexCode ändern


    Nicht jeder, der sich für super hält, ist ein Superheld. :love:
    ------------------------------------------------------------------------------------------------

  • Ich checks net, wo einfügen? ^^ Sry bin müde:


    //----------------------------------[ooc]-----------------------------------------------
    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "** You havent logged in yet !");
    return 1;
    }
    if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "** The OOC channel has been disabled by an Admin !");
    return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
    return 1;
    }
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[128];
    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, "USAGE: (/o)oc [OOC chat]");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] == 0)
    {
    format(string, sizeof(string), "(( %s ))", (result));
    }
    else
    {
    format(string, sizeof(string), "(( %s ))", (result));
    }
    SendPlayerMessageToAll(playerid, string);
    new year,month,day;
    getdate(year, month, day);
    new hour, minute, second;
    gettime(hour,minute,second);
    format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,second, sendername, result);
    PublicLog(string);
    }
    return 1;
    }
    if(strcmp(cmd, "/noooc", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 2 && (!noooc))
    {
    noooc = 1;
    BroadCast(COLOR_NICERED, "** OOC chat channel disabled by an Admin !");
    format(string, sizeof(string), "[ADMIN]: %s Has Disabled the OOC", sendername);
    ABroadCast(COLOR_LIGHTRED, string, 5);
    }
    else if (PlayerInfo[playerid][pAdmin] >= 2 && (noooc))
    {
    noooc = 0;
    BroadCast(TEAM_GROVE_COLOR, "** OOC chat channel enabled by an Admin !");
    format(string, sizeof(string), "[ADMIN]: %s Has Enabled the OOC", sendername);
    ABroadCast(COLOR_LIGHTRED, string, 5);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
    }
    }
    return 1;
    }


    if(strcmp(cmd, "/nonewbie", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 2 && (!nonewbie))
    {
    nonewbie = 1;
    BroadCast(COLOR_NICERED, "** Newbie chat channel disabled by an Admin !");
    format(string, sizeof(string), "[ADMIN]: %s Has Disabled the Newbie Chat", sendername);
    ABroadCast(COLOR_LIGHTRED, string, 5);
    }
    else if (PlayerInfo[playerid][pAdmin] >= 2 && (nonewbie))
    {
    nonewbie = 0;
    BroadCast(TEAM_GROVE_COLOR, "** Newbie chat channel enabled by an Admin !");
    format(string, sizeof(string), "[ADMIN]: %s Has Enabled the Newbie Chat", sendername);
    ABroadCast(COLOR_LIGHTRED, string, 5);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
    }
    }
    return 1;
    }

    mfg

  • COLOR_LIGHTRED ist zum beispiel ne Farbe die steht ganz oben Defniniert


    #define COLOR_LIGHTRED 0xFF6347AA



    COLOR_LIGHTRED = Fabrbezeichnung
    0xFF6347AA = HEX Farbcode

    German-Reallive Script



    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||55% Fertig

  • So einfügen

    //----------------------------------[ooc]-----------------------------------------------
    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "** You havent logged in yet !");
    return 1;
    }
    if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "** The OOC channel has been disabled by an Admin !");
    return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
    return 1;
    }
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[128];
    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, "USAGE: (/o)oc [OOC chat]");
    return 1;
    }
    new oocname[24];
    GetPlayerName(playerid, oocname, 24);
    format(string, sizeof(string), "%s: (( %s ))", oocname, result);
    SendClientMessageToAll(FARBE, string); // <<<< Hier die Farbe einfügen
    new year,month,day;
    getdate(year, month, day);
    new hour, minute, second;
    gettime(hour,minute,second);
    format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,second, sendername, result);
    PublicLog(string);
    }
    return 1;
    }



    Nicht jeder, der sich für super hält, ist ein Superheld. :love:
    ------------------------------------------------------------------------------------------------

  • Danke, aber ich bekomme Warnungen ^^


    C:\Users\Benedikt\Desktop\Eigener Server\Server_1 (Raven's Roleplay)\gamemodes\larp.pwn(36078) : warning 217: loose indentation
    C:\Users\Benedikt\Desktop\Eigener Server\Server_1 (Raven's Roleplay)\gamemodes\larp.pwn(36081) : warning 217: loose indentation
    C:\Users\Benedikt\Desktop\Eigener Server\Server_1 (Raven's Roleplay)\gamemodes\larp.pwn(36082) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Warnings.

    mfg

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen