Beiträge von Darkiii


    new Wanteds[MAX_PLAYERS];


    und dann statt

    if(Wanteds >=1)//musst du natürlich auf die variable ändern in der du die wanteds des Spielers speicherst
    {
    GetPlayerName(i, spielername, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s - %d Wanteds", spielername, Wanteds);
    SendClientMessage(playerid, 0xBFC0C2FF,string);
    }

    das hier

    if(Wanteds[i] >=1)//musst du natürlich auf die variable ändern in der du die wanteds des Spielers speicherst
    {
    GetPlayerName(i, spielername, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s - %d Wanteds", spielername, Wanteds[i]);
    SendClientMessage(playerid, 0xBFC0C2FF,string);
    }


    new helpActive = 1;

    und ...

    if (strcmp("/togglehelp", cmdtext, true, 12) == 0)
    {
    if(helpActive == 0) helpActive = 1;
    else helpActive = 0;
    return 1;
    }


    if (strcmp("/help", cmdtext, true) ==0)
    {
    if(helpActive == 1){
    ShowPlayerDialog(playerid, helpmenu, DIALOG_STYLE_MSGBOX, "Hilfe", "/Teleport\n/Neon", "OK", "ABBRUCH");
    }
    else {
    //was auch immer du da machen willst
    }
    return 1;
    }

    SetPlayerColor(playerid,COLOR_WHITE);
    if(IsPlayerInAnyVehicle(playerid)){
    SetVehiclePos(GetPlayerVehicleID(playerid),1222.6353,-907.6929,42.9076);
    }
    else{
    SetPlayerPos(playerid,1222.6353,-907.6929,42.9076);
    }
    SetPlayerInterior(playerid,0);
    new PlayerName[24], string[128];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), "%s ist jetzt in Bsn druecke dazu /Help >Teleport >Fun", PlayerName);
    SendClientMessage(playerid,blau,"Du bist jetzt in Bsn");
    SendClientMessageToAll(gelb, string);


    hab die playerid statt vehicleid genommen ^^

    SetPlayerColor(playerid,COLOR_WHITE);
    if(IsPlayerInAnyVehicle(playerid)){
    SetVehiclePos(playerid,1222.6353,-907.6929,42.9076);
    }
    else{
    SetPlayerPos(playerid,1222.6353,-907.6929,42.9076);
    }
    SetPlayerInterior(playerid,0);
    new PlayerName[24], string[128];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), "%s ist jetzt in Bsn druecke dazu /Help >Teleport >Fun", PlayerName);
    SendClientMessage(playerid,blau,"Du bist jetzt in Bsn");
    SendClientMessageToAll(gelb, string);