Beiträge von BigBenLPs

    ja folgendes ich kann im allgemeinen ohne untericht nicht fahren als Fahrlehrer mit Unterricht habe ich nicht getestet
    aber es sollte so sein das man Einfach so als Fahrlehrer fahren darf udn als Fahrschüler in einer Lesson

    Hey Leute,
    ich habe einen Bug bei mir im LoH Edit...
    nämlich folgendes also wenn ich mich zum Fahrlehrer mache ! Kann ich in kein Fahrschul Car einsteigen dann kommt da Du hast keine Schlüssel.....
    hier der Code ....



    if(!IsPlayerInFrac(playerid,11) || TakingLesson[playerid] != 1)
    {
    for(new pv = 0; pv < sizeof(FahrschulVehs); pv++)
    {
    if(newcar == FahrschulVehs[pv])
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel!");
    RemovePlayerFromVehicle(playerid);
    }
    }
    }


    hoffe auf help :D MFG

    Hey Leute,
    Heute wollte ich eine Sache einbauen in mein Script da diese aber buggy war schnell wieder raus damit und dann bam plötzlich die Errors :


    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(237) : error 017: undefined symbol "CreateKasse"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(238) : error 017: undefined symbol "LoadKasse"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(583) : error 017: undefined symbol "SaveKasse"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(692) : error 017: undefined symbol "SpielerSpeichern"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(733) : error 004: function "clock" is not implemented
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(886) : error 017: undefined symbol "sscanf"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(887) : error 017: undefined symbol "SpielerName"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(892) : error 017: undefined symbol "isPlayerInFrakt"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(904) : error 017: undefined symbol "isPlayerAnAdmin"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(931) : error 017: undefined symbol "isPlayerAnAdmin"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(933) : error 017: undefined symbol "sscanf"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(962) : error 017: undefined symbol "isPlayerAnAdmin"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(972) : error 017: undefined symbol "isPlayerAnAdmin"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(974) : error 017: undefined symbol "sscanf"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(977) : error 017: undefined symbol "SpielerSpeichern"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(982) : error 017: undefined symbol "isPlayerAnAdmin"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(984) : error 017: undefined symbol "sscanf"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(985) : error 017: undefined symbol "SpielerName"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(993) : error 017: undefined symbol "isPlayerAnAdmin"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(995) : error 017: undefined symbol "sscanf"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(996) : error 017: undefined symbol "SpielerName"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(1031) : error 017: undefined symbol "SpielerName"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(1040) : error 017: undefined symbol "isPlayerInFrakt"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(1055) : error 017: undefined symbol "isPlayerInFrakt"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(1070) : error 017: undefined symbol "isPlayerInFrakt"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\Selfmade.pwn(1085) : error 017: undefined symbol "isPlayerInFrakt"


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



    26 Errors.


    wäre nett wenn mir einer hilft
    Teamviewer ist bereit falls benötigt...
    mfg

    Moin ich will erstmal 2 Dinge feststellen ! :
    1. Meine 1. Map !
    2. Ist das Ergebnis von langerweile ! :D Also bitte net soo hart :D



    Nun Gut :


    Zeit Aufwand : ca. 10 Minuten
    Objekte : ca. 31
    Screen´s :






    Quellcode :
    CreateObject(1360,1476.15539551,-1024.43395996,23.60014534,0.00000000,0.00000000,90.25000000);
    CreateObject(1360,1472.73498535,-1024.47387695,23.60014534,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1450.22631836,-1024.62683105,23.60014534,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1446.21350098,-1024.45202637,23.60014534,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1442.67407227,-1024.46850586,23.60014534,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1438.92419434,-1024.50598145,23.60014534,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1435.52209473,-1024.55725098,23.60014534,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1431.65917969,-1024.54248047,23.60014534,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1429.22314453,-1023.40527344,23.60014534,0.00000000,0.00000000,358.74719238);
    CreateObject(1360,1479.78808594,-1024.36755371,23.58871651,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1483.12878418,-1024.42651367,23.58300591,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1486.55310059,-1024.36181641,23.57715225,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1489.75988770,-1024.19836426,23.57167053,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1492.89538574,-1024.35949707,23.55655861,0.00000000,0.00000000,90.24719238);
    CreateObject(1360,1494.79931641,-1023.07324219,23.57947350,0.00000000,0.00000000,358.74206543);
    CreateObject(1597,1414.33666992,-1034.17749023,25.26363373,0.00000000,0.00000000,92.00000000);
    CreateObject(1597,1427.89660645,-1034.07409668,25.23863411,0.00000000,0.00000000,89.99951172);
    CreateObject(1597,1441.67016602,-1034.16772461,25.31363297,0.00000000,0.00000000,89.99450684);
    CreateObject(1597,1455.46704102,-1034.17297363,25.31363297,0.00000000,0.00000000,89.99450684);
    CreateObject(1597,1468.95007324,-1034.12646484,25.31363297,0.00000000,0.00000000,89.99450684);
    CreateObject(1597,1494.11242676,-1034.26953125,25.27564240,0.00000000,0.00000000,87.99450684);
    CreateObject(1597,1494.11242676,-1034.26953125,25.27564240,0.00000000,0.00000000,87.99450684);
    CreateObject(1776,1441.33898926,-1046.70361328,23.81713104,0.00000000,0.00000000,180.50000000);
    CreateObject(17037,1459.67407227,-1046.82836914,25.24460030,0.00000000,0.00000000,270.00000000);
    CreateObject(17037,1452.18554688,-1046.82666016,25.24460030,0.00000000,0.00000000,270.00000000);
    CreateObject(8169,1459.58264160,-1046.72753906,22.82812500,0.00000000,0.00000000,18.50000000);
    CreateObject(8169,1459.43823242,-1042.16003418,22.82812500,0.00000000,0.00000000,18.49548340);
    CreateObject(8169,1452.11987305,-1046.75598145,22.82812500,0.00000000,0.00000000,18.24548340);
    CreateObject(8169,1451.99011230,-1042.24487305,22.82812500,0.00000000,0.00000000,18.24279785);
    CreateObject(8169,1455.44995117,-1046.69042969,22.82812500,0.00000000,0.00000000,18.24279785);
    CreateObject(8169,1456.00476074,-1042.20507812,22.82812500,0.00000000,0.00000000,17.99279785);


    Nun gut bis dann :D


    MFG

    Mach das an dein Script Ende :


    stock LoadAccount(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
    SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));
    SetPVarInt(playerid,"Fraktion",dini_Int(Spielerdatei,"Fraktion"));
    SetPVarInt(playerid,"Baned",dini_Int(Spielerdatei,"Baned"));
    if(GetPVarInt(playerid,"Baned")==1)
    {
    SendClientMessage(playerid,COLOR_ROT,"Du bist vom Server gebannt.");
    Kick(playerid);
    }
    SetPVarInt(playerid,"loggedin",1);
    return 1;
    }


    stock SpielerSpeichern(playerid)
    {
    if(GetPVarInt(playerid,"loggedin")==1)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
    dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
    dini_IntSet(Spielerdatei,"Fraktion",GetPVarInt(playerid,"Fraktion"));
    dini_IntSet(Spielerdatei,"Baned",GetPVarInt(playerid,"Baned"));
    }
    return 1;
    }


    stock isPlayerInFrakt(playerid,fraktid)
    {
    if(GetPVarInt(playerid,"Fraktion")==fraktid)return 1;
    return 0;
    }
    stock isPlayerAnAdmin(playerid,rang)
    {
    if(GetPVarInt(playerid,"Adminlevel")>=rang)return 1;
    return 0;
    }


    stock sscanf(sstring[], format[], {Float,_}:...)
    {
    #if defined isnull
    if (isnull(sstring))
    #else
    if (sstring[0] == 0 || (sstring[0] == 1 && sstring[1] == 0))
    #endif
    {
    return format[0];
    }
    #pragma tabsize 4
    new
    formatPos = 0,
    sstringPos = 0,
    paramPos = 2,
    paramCount = numargs(),
    delim = ' ';
    while (sstring[sstringPos] && sstring[sstringPos] <= ' ')
    {
    sstringPos++;
    }
    while (paramPos < paramCount && sstring[sstringPos])
    {
    switch (format[formatPos++])
    {
    case '\0':
    {
    return 0;
    }
    case 'i', 'd':
    {
    new
    neg = 1,
    num = 0,
    ch = sstring[sstringPos];
    if (ch == '-')
    {
    neg = -1;
    ch = sstring[++sstringPos];
    }
    do
    {
    sstringPos++;
    if ('0' <= ch <= '9')
    {
    num = (num * 10) + (ch - '0');
    }
    else
    {
    return -1;
    }
    }
    while ((ch = sstring[sstringPos]) > ' ' && ch != delim);
    setarg(paramPos, 0, num * neg);
    }
    case 'h', 'x':
    {
    new
    num = 0,
    ch = sstring[sstringPos];
    do
    {
    sstringPos++;
    switch (ch)
    {
    case 'x', 'X':
    {
    num = 0;
    continue;
    }
    case '0' .. '9':
    {
    num = (num << 4) | (ch - '0');
    }
    case 'a' .. 'f':
    {
    num = (num << 4) | (ch - ('a' - 10));
    }
    case 'A' .. 'F':
    {
    num = (num << 4) | (ch - ('A' - 10));
    }
    default:
    {
    return -1;
    }
    }
    }
    while ((ch = sstring[sstringPos]) > ' ' && ch != delim);
    setarg(paramPos, 0, num);
    }
    case 'c':
    {
    setarg(paramPos, 0, sstring[sstringPos++]);
    }
    case 'f':
    {


    new changestr[16], changepos = 0, strpos = sstringPos;
    while(changepos < 16 && sstring[strpos] && sstring[strpos] != delim)
    {
    changestr[changepos++] = sstring[strpos++];
    }
    changestr[changepos] = '\0';
    setarg(paramPos,0,_:floatstr(changestr));
    }
    case 'p':
    {
    delim = format[formatPos++];
    continue;
    }
    case '\'':
    {
    new
    end = formatPos - 1,
    ch;
    while ((ch = format[++end]) && ch != '\'') {}
    if (!ch)
    {
    return -1;
    }
    format[end] = '\0';
    if ((ch = strfind(sstring, format[formatPos], false, sstringPos)) == -1)
    {
    if (format[end + 1])
    {
    return -1;
    }
    return 0;
    }
    format[end] = '\'';
    sstringPos = ch + (end - formatPos);
    formatPos = end + 1;
    }
    case 'u':
    {
    new
    end = sstringPos - 1,
    id = 0,
    bool:num = true,
    ch;
    while ((ch = sstring[++end]) && ch != delim)
    {
    if (num)
    {
    if ('0' <= ch <= '9')
    {
    id = (id * 10) + (ch - '0');
    }
    else
    {
    num = false;
    }
    }
    }
    if (num && IsPlayerConnected(id))
    {
    setarg(paramPos, 0, id);
    }
    else
    {
    #if !defined foreach
    #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
    #define __SSCANF_FOREACH__
    #endif
    sstring[end] = '\0';
    num = false;
    new
    name[MAX_PLAYER_NAME];
    id = end - sstringPos;
    foreach (Player, playerid)
    {
    GetPlayerName(playerid, name, sizeof (name));
    if (!strcmp(name, sstring[sstringPos], true, id))
    {
    setarg(paramPos, 0, playerid);
    num = true;
    break;
    }
    }
    if (!num)
    {
    setarg(paramPos, 0, INVALID_PLAYER_ID);
    }
    sstring[end] = ch;
    #if defined __SSCANF_FOREACH__
    #undef foreach
    #undef __SSCANF_FOREACH__
    #endif
    }
    sstringPos = end;
    }
    case 's', 'z':
    {
    new
    i = 0,
    ch;
    if (format[formatPos])
    {
    while ((ch = sstring[sstringPos++]) && ch != delim)
    {
    setarg(paramPos, i++, ch);
    }
    if (!i)
    {
    return -1;
    }
    }
    else
    {
    while ((ch = sstring[sstringPos++]))
    {
    setarg(paramPos, i++, ch);
    }
    }
    sstringPos--;
    setarg(paramPos, i, '\0');
    }
    default:
    {
    continue;
    }
    }
    while (sstring[sstringPos] && sstring[sstringPos] != delim && sstring[sstringPos] > ' ')
    {
    sstringPos++;
    }
    while (sstring[sstringPos] && (sstring[sstringPos] == delim || sstring[sstringPos] <= ' '))
    {
    sstringPos++;
    }
    paramPos++;
    }
    do
    {
    if ((delim = format[formatPos++]) > ' ')
    {
    if (delim == '\'')
    {
    while ((delim = format[formatPos++]) && delim != '\'') {}
    }
    else if (delim != 'z')
    {
    return delim;
    }
    }
    }
    while (delim > ' ');
    return 0;
    }


    PS : Falls damit Probelem kommen sollten sagen habe es from me kopiert

    Also nochmal so im Pawn Format :D :



    C:\Program Files\GTA\GTA Server\gamemodes\GermanDayLife.pwn(287) : error 076: syntax error in the expression, or invalid function call
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    und der Code :



    stock Login(playerid,key[])
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    if(!strcmp,(key,dini_Get(Spielerdatei,"Passwort"),false))
    {
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    SendClientMessage(playerid,GRUN,"Erfolgreich eingelogt");
    return 1;
    }
    {
    SendClientMessage(playerid,ROT,"Falsches Passwort");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Account gefunden /n Gib bitte dein Passwort ein","Einlogen","Abbruch");
    return 1;
    }
    }


    und so solltest du es mal probieren


    stock Login(playerid,key[])
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    if(!strcmp(key,dini_Get(Spielerdatei,"Passwort"),false))
    {
    LoadAccount(playerid);
    SendClientMessage(playerid,COLOR_BLAU,"Erfolgreich eingeloggt.");
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_BLAU,"Falsches Passwort.");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Dein Account wurde gefunden. Gib bitte das Passwort ein.","Login","Abbrechen");
    return 1;
    }
    }


    stock LoadAccount(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    SetPVarInt(playerid,"Baned",dini_Int(Spielerdatei,"Baned"));
    if(GetPVarInt(playerid,"Baned")==1)
    {
    SendClientMessage(playerid,COLOR_ROT,"Du bist vom Server gebannt.");
    Kick(playerid);
    }
    SetPVarInt(playerid,"loggedin",1);
    return 1;
    }


    /edit Falsche Sektion gehört unter Scripting Base

    Hey hier einmal der ocmd Befeh für den F Chatl :


    ocmd:f(playerid,params[])
    {
    new text[128];
    if(sscanf(params,"s",text))return SendClientMessage(playerid,COLOR_TOMATO,"/f [text]");
    format(text,sizeof(text),"%s: %s",SpielerName(playerid),text);
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(isPlayerInFrakt(i,GetPVarInt(playerid,"Fraktion")))
    {
    SendClientMessage(i,COLOR_F,text);
    }
    }
    }
    return 1;
    }


    Befehl für A Chat :


    ocmd:a(playerid,params[])
    {
    new text[128];
    if(!isPlayerAnAdmin(playerid,1))return 1;
    if(sscanf(params,"s",text))return SendClientMessage(playerid,COLOR_TOMATO,"/a [Text]");
    format(text,sizeof(text),"<<Admin %s: %s>>",SpielerName(playerid),text);
    for(new i=0;i<GetMaxPlayers();i++)
    {
    if(IsPlayerConnected(i))
    {
    if(isPlayerAnAdmin(i,1))
    {
    SendClientMessage(i,COLOR_TOMATO,text);
    }
    }
    }
    return 1;
    }


    Speichern :
    stock SpielerSpeichern(playerid)
    {
    if(GetPVarInt(playerid,"loggedin")==1)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
    dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
    dini_IntSet(Spielerdatei,"Fraktion",GetPVarInt(playerid,"Fraktion"));
    }
    return 1;
    }


    Laden :
    stock LoadAccount(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
    SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));
    SetPVarInt(playerid,"Fraktion",dini_Int(Spielerdatei,"Fraktion"));
    SetPVarInt(playerid,"loggedin",1);
    return 1;
    }


    Dazu musst du das auch noch ganz unten ins Script machen


    stock isPlayerInFrakt(playerid,fraktid)
    {
    if(GetPVarInt(playerid,"Fraktion")==fraktid)return 1;
    return 0;
    }


    stock isPlayerAnAdmin(playerid,rang)
    {
    if(GetPVarInt(playerid,"Adminlevel")>=rang)return 1;
    return 0;
    }


    /edit IsPlayerAnAdmin hinzugefügt etc.

    Hey Leute,
    ich habe ein Problem und zwar ingame nachdem ich per /noooc den O Chat aktiviert habe kann nur ich als Admin/supporter darin schreiben normale User nicht .... woran liegts ??? kann mir da jmd. helfen ?
    Hier der /noooc Befehl und der /o Befehl MFG



    new noooc = 1;


    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist noch nicht Eingeloggt !");
    return 1;
    }
    if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, " Du kannst nicht sprechen, du bist gemutet !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    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, "NUTZUNG: (/o)oc [ooc chat]");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(string, sizeof(string), "(( *%d Admin %s: %s))", PlayerInfo[playerid][pAdmin], sendername, result);
    }
    else if(PlayerInfo[playerid][pSupporter] >= 1)
    {
    format(string, sizeof(string), "(( *%d Supporter %s: %s))", PlayerInfo[playerid][pSupporter], sendername, result);
    }
    else return 1;
    OOCOff(COLOR_OOC,string);
    Log("OA-Chat.txt",string);
    }
    return 1;
    }
    if(strcmp(cmd, "/noooc", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerInfo[playerid][pAdmin] >= 1337 && (!noooc))
    {
    noooc = 1;
    BroadCast(COLOR_GRAD2, " OOC Ausgeschaltet !");
    }
    else if (PlayerInfo[playerid][pAdmin] >= 1337 && (noooc))
    {
    noooc = 0;
    BroadCast(COLOR_GRAD2, " OOC Angeschaltet!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Tu das Lieber nicht!");
    }
    }
    return 1;
    }