Beiträge von BuschKind

    if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    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, "USAGE: (/gov)ernment [text]");
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] == 2|| PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid] [pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13
    || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pRank] >= 3)
    {
    if(PlayerInfo[playerid][pLeader] == 1)
    {
    SendClientMessageToAll(COLOR_WHITE, "|___________Los Santos Police Department___________|");
    format(string, sizeof(string), "LSPD Derektor %s: %s", sendername, result);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);





    Duty



    if(strcmp(cmd, "/duty", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(IsACop(playerid))
    {
    if (PlayerToPoint(3, playerid,197.7384,168.5601,1003.0234) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(3, playerid,215.839203, 1816.896606, 6.074440) || PlayerInfo[playerid][pLocal] != 255)
    {
    if(OnDuty[playerid]==0)
    {
    format(string, sizeof(string), "* Officer %s nimmt seine/ihre Marke und seine Waffe aus dem Spint.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    OnDuty[playerid] = 1;
    }
    else if(OnDuty[playerid]==1)
    {
    format(string, sizeof(string), "* Officer %s legt seine/ihre Marke und seine Waffe in den Spint.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    ResetPlayerWeapons(playerid);
    OnDuty[playerid] = 0;
    GivePlayerWeapon(playerid, 23, 500);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Sie sind nicht in der Umkleide!");
    return 1;
    }
    }
    }
    return 1;
    }


    Poste mal bitte deinen /gov schnipsel Code.
    Den Duty erstellst du so indem du den Command erstellt, die XYZ Koordinaten wo man diesen Command nutzen kann, für welche Fraktion der Befehl ist und was passieren soll.
    Mehr ist da nicht...



    Wenn du willst kann ich dir via Teamviewer den Schnipsel ins Script erstellen