Beiträge von Abgehn

    Header:
    new TakingWD[MAX_PLAYERS];


    Dann bei public OnPlayerConnect(playerid)


    TakingWD[playerid] = 0;Einfügen


    2Neue Befehle


    //-----------------------------WehrDients-Waffen--------------------------------
    if(strcmp(cmd, "/wdstart", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLeader] == 3)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /wdstart [playerid]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Du hast %s eine Waffen erlaubnis erteilt.",giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* General %s hat dir eine Waffen erlaubnis erteilt.",sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    TakingWD[giveplayerid] = 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist Offline !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Army Leader !");
    return 1;
    }
    }
    return 1;
    }
    //----------------------------Waffen-tragen-Stop--------------------------------


    if(strcmp(cmd, "/wdstop", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLeader] == 3)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /wdstop [playerid]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(TakingWD[giveplayerid] != 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler hat keinen Unterricht !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Du hast %s die Waffen erlaubnis genommen.",giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* General %s hat dir die Waffen erlaubnis entzogen.",sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    TakingWD[giveplayerid] = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist Offline !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Army !");
    return 1;
    }
    }
    return 1;
    }


    Und ein neues Public


    forward Weapon();
    public Weapon()
    {
    new i, j;
    for (i = 0, j = MAX_PLAYERS; i < j; i++)
    {
    if(PlayerInfo[i][pGunLic] == 0 && TakingWD[i] != 1)
    {
    ResetPlayerWeapons(i);
    }
    }
    }


    Das wars!


    Bei den CMD´s Hinschreiben



    Keine Ahnung obs geht ^^

    //-----------------------------WehrDients-Waffen--------------------------------
    if(strcmp(cmd, "/wdstart", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLeader] == 3)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /wdstart [playerid]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Du hast %s eine Waffen erlaubnis erteilt.",giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* General %s hat dir eine Waffen erlaubnis erteilt.",sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    TakingWD[giveplayerid] = 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist Offline !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Army Leader !");
    return 1;
    }
    }
    return 1;
    }
    //----------------------------Waffen-tragen-Stop--------------------------------


    if(strcmp(cmd, "/wdstop", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pLeader] == 3)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /wdstop [playerid]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(TakingWD[giveplayerid] != 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler hat keinen Unterricht !");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "* Du hast %s die Waffen erlaubnis genommen.",giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* General %s hat dir die Waffen erlaubnis entzogen.",sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    TakingWD[giveplayerid] = 0;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist Offline !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Army !");
    return 1;
    }
    }
    return 1;
    }


    KP obs geht is aus nova script

    OnPlayerSpawn in Pawno suchen


    if(PlayerInfo[playerid][plevel] < 8){
    PlayerInfo[playerid][plevel] == 8;}


    reinquetschen

    ich schau mich da ma bisschen um melde mich fals ich es verstanden hab oder wenn nicht ^^


    Danke =)


    //EDIT:


    Ach ich gebs auf das will nicht so ne **** will mir doch nur nen paar autööös machen naja =( ;(