Beiträge von AeroxTobi


    if(strcmp(cmdtext, "/back", true) == 0) {
    new str[256], pname[256]; GetPlayerName(playerid, pname, 256);
    format(str, 256, "*%s wurde zurück geporet!", pname, cmdtext[4]);
    SendClientMessageToAll(0x4682B4AA, str);
    GameTextForPlayer(playerid,"~w~ Du wurdest zurück geprotet!",2500,3);
    TogglePlayerControllable(playerid, 1);
    return 1;
    }


    bin zwar kein fun scirpter aber ich glaub so gehts

    else if(strcmp(x_job,"breakout",true) == 0)
    {
    if(LawOffer[playerid] < 9999)
    {
    if(GetPlayerMoney(playerid) > LawPrice[playerid])
    {
    if(IsPlayerConnected(LawOffer[playerid]))
    {
    GetPlayerName(LawOffer[playerid], giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* You accepted the breakout for $%d from Anwalt %s.",LawPrice[playerid],giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* %s accepted your breakout and the $%d was added to your PayCheck.",sendername,LawPrice[playerid]);
    SendClientMessage(LawOffer[playerid], COLOR_LIGHTBLUE, string);
    PlayerInfo[LawOffer[playerid]][pPayCheck] += LawPrice[playerid];
    GivePlayerMoney(playerid, -LawPrice[playerid]);
    LawOffer[playerid] = 999;
    LawPrice[playerid] = 0;
    return 1;
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " You can't afford the breakout !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any breakout!");
    return 1;
    }
    }

    else if(strcmp(x_job,"breakout",true) == 0)
    {
    if(LawOffer[playerid] < 0)
    {
    if(GetPlayerMoney(playerid) > LawPrice[playerid])
    {
    if(IsPlayerConnected(LawOffer[playerid]))
    {
    GetPlayerName(LawOffer[playerid], giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* You accepted the breakout for $%d from Anwalt %s.",LawPrice[playerid],giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* %s accepted your breakout and the $%d was added to your PayCheck.",sendername,LawPrice[playerid]);
    SendClientMessage(LawOffer[playerid], COLOR_LIGHTBLUE, string);
    PlayerInfo[LawOffer[playerid]][pPayCheck] += LawPrice[playerid];
    GivePlayerMoney(playerid, -LawPrice[playerid]);
    LawOffer[playerid] = 999;
    LawPrice[playerid] = 0;
    return 1;
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " You can't afford the breakout !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any breakout!");
    return 1;
    }
    }


    probirs so

    hab Error Problem mit zoll
    (9414) : error 029: invalid expression, assumed zero
    (9421) : error 029: invalid expression, assumed zero
    (9428) : error 029: invalid expression, assumed zero
    (9435) : error 029: invalid expression, assumed zero


    if (strcmp(cmdtext, "/zollauf", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    }
    MoveObject(zolltor, x,y,z, 3.5);
    return 1;
    }
    if (strcmp(cmdtext, "/zollzu", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    }
    MoveObject(zolltor, x,y,z, 3.5);
    return 1;
    }
    if (strcmp(cmdtext, "/zoll1auf", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    }
    MoveObject(zolltor1, x,y,z 3.5);
    return 1;
    }
    if (strcmp(cmdtext, "/zoll1zu", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    }
    MoveObject(zolltor1, x,y,z 3.5);
    return 1;
    }
    ich hab die Coordintan mit x,y,z eingetauscht da ja manche immer alles copiren und so :D