[HILFE: Anti-Money System Entfernen ? ]

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Abend,


    könnte mir einer helfen ich habe in mein Script ein Anti-Money Hack System.
    Wie kann ich es aus mein Script entfernen und die normale funktion rein tun ?
    Hier mal eine kauf funktion aus mein Script.
    if(strcmp(cmd, "/buy", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if((deactivated)&& PlayerInfo[playerid][pAdmin] < 1331)
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Deaktiviert !");
    return 1;
    }
    if (gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
    return 1;
    }
    if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du bist in keinem 24-7 !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy [item number]");
    SendClientMessage(playerid, COLOR_STATS, "|_______ 24-7 Store_______|");
    SendClientMessage(playerid, COLOR_GRAD1, "| 1: Telefon $500 2: Rubbelkarte $7500");
    SendClientMessage(playerid, COLOR_GRAD2, "| 3: Telefonbuch $500 4: Würfel $500");
    SendClientMessage(playerid, COLOR_GRAD3, "| 5: Autoschlüssel $5000 6: Schlüssel $10000");
    SendClientMessage(playerid, COLOR_GRAD4, "| 7: Kondom $50 8: CD-Player $2500");
    SendClientMessage(playerid, COLOR_GRAD5, "| 9: Hamburger $10 10: Chicken $10");
    SendClientMessage(playerid, COLOR_GRAD5, "| 11: Tiefkühlpizza $10 12: Navigationssystem $50000");
    SendClientMessage(playerid, COLOR_GRAD5, "| 13: Ausweiss $15000 ");
    return 1;
    }
    new item = strval(tmp);
    if(SBizzInfo[9][sbProducts] == 0)
    {
    GameTextForPlayer(playerid, "~r~Außer Betrieb ! ", 5000, 1);
    return 1;
    }
    if (item == 1 && PlayerMoney[playerid] > 500)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 500 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 500 - price;
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= payout; //Das ist das anti-money command
    SBizzInfo[9][sbTill] += payout;
    ExtortionSBiz(9, payout);
    }
    else
    {
    format(string, sizeof(string), "~r~-$%d", 500);
    GameTextForPlayer(playerid, string, 5000, 1);
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= 500;
    SBizzInfo[9][sbTill] += 500;
    ExtortionSBiz(9, 500);
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new randphone = 1000 + random(8999);//minimum 1000 max 9999
    PlayerInfo[playerid][pPnumber] = randphone;
    format(string, sizeof(string), " Mobiltelefon gekauft , deine Nummer ist %d", randphone);
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_GRAD5, "Du kannst sie jederzeit unter /stats ansehen !");
    SendClientMessage(playerid, COLOR_WHITE, "Hinweiß: Tippe /help um die Befehle des Telefons anzuschauen .");
    return 1;
    }
    else if (item == 2 && PlayerMoney[playerid] > 7500)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 7500 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 7500 - price;
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= payout;
    SBizzInfo[9][sbTill] += payout;
    ExtortionSBiz(9, payout);
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    else
    {
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= 7500;
    SBizzInfo[9][sbTill] += 7500;
    ExtortionSBiz(9, 7500);
    format(string, sizeof(string), "~r~-$%d", 1000);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new prize;
    new symb1[32]; new symb2[32]; new symb3[32];
    new randcard1 = random(10);//minimum 1000 max 9999
    new randcard2 = random(10);//minimum 1000 max 9999
    new randcard3 = random(10);//minimum 1000 max 9999
    if(randcard1 >= 5)
    {
    format(symb1, sizeof(symb1), "~b~]");
    randcard1 = 1;
    }
    else if(randcard1 <= 4 && randcard1 >= 2)
    {
    format(symb1, sizeof(symb1), "~g~]");
    randcard1 = 2;
    }
    else if(randcard1 < 2)
    {
    format(symb1, sizeof(symb1), "~y~]");
    randcard1 = 3;
    }
    if(randcard2 >= 5)
    {
    format(symb2, sizeof(symb2), "~b~]");
    randcard2 = 1;
    }
    else if(randcard2 <= 4 && randcard2 >= 2)
    {
    format(symb2, sizeof(symb2), "~g~]");
    randcard2 = 2;
    }
    else if(randcard2 < 2)
    {
    format(symb2, sizeof(symb2), "~y~]");
    randcard2 = 3;
    }
    if(randcard3 >= 5)
    {
    format(symb3, sizeof(symb3), "~b~]");
    randcard3 = 1;
    }
    else if(randcard3 <= 4 && randcard3 >= 2)
    {
    format(symb3, sizeof(symb3), "~g~]");
    randcard3 = 2;
    }
    else if(randcard3 < 2)
    {
    format(symb3, sizeof(symb3), "~y~]");
    randcard3 = 3;
    }
    if(randcard1 == randcard2 && randcard1 == randcard3)
    {
    if(randcard1 > 5)
    {
    prize = 2500;
    }
    if(randcard1 <= 4 && randcard1 >= 2)
    {
    prize = 1500;
    }
    if(randcard1 < 2)
    {
    prize = 500;
    }
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] += prize;
    SBizzInfo[9][sbTill] -= prize;
    ExtortionSBiz(9, prize);
    format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
    }
    else
    {
    format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
    }
    GameTextForPlayer(playerid, string, 3000, 3);
    return 1;
    }
    else if (item == 3 && PlayerMoney[playerid] > 500)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 500 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 500 - price;
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= payout;
    SBizzInfo[9][sbTill] += payout;
    ExtortionSBiz(9, payout);
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 500, 1);
    }
    else
    {
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= 500;
    SBizzInfo[9][sbTill] += 500;
    ExtortionSBiz(9, 500);
    format(string, sizeof(string), "~r~-$%d", 500);
    GameTextForPlayer(playerid, string, 500, 1);
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pPhoneBook] = 1;
    format(string, sizeof(string), " Telefonbuch gekauft , du kannst nun Telefonnummern nachschauen !");
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_WHITE, "Hinweiß: Tippe /number <id/name>.");
    return 1;
    }
    else if (item == 4 && PlayerMoney[playerid] > 500)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 500 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 500 - price;
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= payout;
    SBizzInfo[9][sbTill] += payout;
    ExtortionSBiz(9, payout);
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    else
    {
    GetsMoney[playerid] = 1; PlayerMoney[playerid] = PlayerMoney[playerid] -= 500;
    SBizzInfo[9][sbTill] += 500;
    ExtortionSBiz(9, 500);
    format(string, sizeof(string), "~r~-$%d", 500);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    gDice[playerid] = 1;
    format(string, sizeof(string), " Würfel gekauft !.");
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_WHITE, "Hinweiß: Tippe /dice ");
    return 1;
    }

    2 Mal editiert, zuletzt von xXxDaVexXx ()