Beiträge von OneVision aka. [DF]Daniel

    if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0) {
    if(IsPlayerConnected(playerid))
    {
    if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist nicht im Dienst !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: (/su)spect [playerid/Name] [Punkte] [Grund]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if (gTeam[playerid] == 2 )
    {
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    // if (gTeam[giveplayerid] != 2 && !IsACop(giveplayerid))
    // {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: (/su)spect [playerid/Name] [Punkte] [Grund]");
    return 1;
    }
    new points = strval(tmp);
    if(points <= 0 || points > 69)
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Punkte können nur zwichen 1 und 69 sein!");
    return 1;
    }
    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, "BENUTZUNG: (/su)spect [playerid/Name] [Punkte] [Grund]");
    return 1;
    }
    if(WantedPoints[giveplayerid] + points < 69) { WantedPoints[giveplayerid] += points; }
    else { WantedPoints[giveplayerid] = 69; }
    SetPlayerCriminal(giveplayerid,playerid, result);


    WantedLevel[giveplayerid]++;
    SetPlayerWantedLevel(giveplayerid,WantedLevel[giveplayerid]);
    return 1;
    /* }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du kannst keinen Polizisten anklagen !");
    }*/ }
    }
    else
    {
    format(string, sizeof(string), " %d ist kein aktiver Spieler.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du bist kein Polizist / FBI / Bundeswehr / President !");
    }
    }
    return 1; }


    Probier es mal so einzufügen, müsste gehen