Odnungsamt

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
  • kann mir jmd oamt helfen , ein tutorial machen oder so . z.B. mit dem spawn :
    AddStaticVehicle(561,880.2245,-1270.1494,14.5547,1.8037,1,1);


    und mit den autos : AddStaticVehicle(487,887.6460,-1288.3665,23.2627,358.0643,1,6);
    AddStaticVehicle(422,910.1046,-1243.2241,15.6918,90.2870,1,6);
    AddStaticVehicle(525,868.8628,-1206.1847,16.8545,222.9723,1,6);
    AddStaticVehicle(552,865.1022,-1242.0138,14.5873,266.7163,1,6);
    AddStaticVehicle(421,912.7525,-1256.3048,15.5625,30.7867,1,1);
    AddStaticVehicle(561,877.1215,-1270.6409,14.5582,4.5330,1,1);
    AddStaticVehicle(561,873.7340,-1270.5341,14.5337,357.2090,1,1);
    AddStaticVehicle(561,883.3790,-1270.3102,14.5260,357.9736,1,1);
    AddStaticVehicle(561,911.3797,-1262.1812,14.4914,91.0401,1,1);
    AddStaticVehicle(561,926.3074,-1292.1935,13.5391,88.2289,1,1);
    AddStaticVehicle(561,889.1146,-1299.8392,13.5858,183.5704,1,1);
    AddStaticVehicle(552,863.9476,-1246.9094,14.5629,271.4210,1,6);
    AddStaticVehicle(552,864.6062,-1252.7717,14.5916,270.8662,1,6);
    AddStaticVehicle(552,864.8163,-1261.0278,14.4536,270.8254,1,6);
    AddStaticVehicle(525,900.6632,-1205.6318,16.8612,202.0119,1,6);
    AddStaticVehicle(525,839.0881,-1270.5514,13.8435,270.2770,1,6);
    AddStaticVehicle(525,816.3930,-1277.4315,13.4705,267.9240,1,6);
    AddStaticVehicle(525,850.6191,-1305.4392,13.4947,269.7991,1,6);
    AddStaticVehicle(525,849.6352,-1300.0697,13.5089,270.4664,1,6);
    AddStaticVehicle(525,849.4247,-1292.9630,13.5171,273.6036,1,6);
    AddStaticVehicle(525,849.7037,-1284.0988,13.8571,267.8492,1,6);
    AddStaticVehicle(525,874.6423,-1297.8901,13.6570,87.7515,1,6);
    AddStaticVehicle(422,895.5243,-1250.4604,15.3304,335.0593,1,6);
    AddStaticVehicle(422,917.1315,-1239.3969,16.9808,313.6840,1,6);
    AddStaticVehicle(422,868.2468,-1291.9716,13.8429,58.2809,1,6);
    AddStaticVehicle(422,868.4734,-1287.2919,14.0428,60.2517,1,6);
    AddStaticVehicle(422,868.5148,-1282.6122,14.2311,60.5972,1,6);
    AddStaticVehicle(422,868.7573,-1277.9717,14.4326,58.8087,1,6);
    AddStaticVehicle(422,926.5437,-1184.8293,16.9643,122.8399,1,6);
    AddStaticVehicle(422,926.0836,-1179.4326,16.9627,111.0917,1,6);
    AddStaticVehicle(422,925.2914,-1175.4030,16.9625,113.8057,1,6);



    wo das wie bei lspd mit /m man mit gelb schreibt
    ticketsystem,
    freikaufsysthem von abgeschnleppten autos
    und Blittzer system ;)



    danke ;)

  • Ne Geld nicht aber nimm jetzt z.B. mal nen GF und such dir da das Zeug raus und kopiers in dein Script rein.


    //Edit: Versuchs mal damit:
    //===============================MEGAPHONE=======================================
    if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    //new tmpcar = GetPlayerVehicleID(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(OnDuty[playerid]==0)
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Beamter!");
    return 1;
    }*/
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: (/m)egaphone [megaphone chat]");
    return 1;
    }
    if(gTeam[playerid] == 2 || IsACop(playerid) || PlayerInfo[playerid][pMember] == 24||PlayerInfo[playerid][pLeader] == 24)
    {
    /*if(!IsACopCar(tmpcar))
    {
    SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Police Vehicle !");
    return 1;
    }*/
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    format(string, sizeof(string), "[Officer %s: %s]", sendername, result);
    ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }
    else if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
    {
    format(string, sizeof(string), "[Officer %s: %s]", sendername, result);
    ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }
    else if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
    {
    format(string, sizeof(string), "[Soldat %s: %s]", sendername, result);
    ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }
    else if(PlayerInfo[playerid][pMember] == 21||PlayerInfo[playerid][pLeader] == 21)
    {
    format(string, sizeof(string), "[FBI Agent %s: %s]", sendername, result);
    ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }
    else if(PlayerInfo[playerid][pMember] == 23||PlayerInfo[playerid][pLeader] == 23)
    {
    format(string, sizeof(string), "[Soldat %s: %s]", sendername, result);
    ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }
    else if(PlayerInfo[playerid][pMember] == 24||PlayerInfo[playerid][pLeader] == 24)
    {
    format(string, sizeof(string), "[O-Amt %s: %s]", sendername, result);
    ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }
    printf("%s", string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD2, " Du musst bei der Polizei/FBI/Bundeswehr/O-Amt sein, um diesen Befehl benutzen zu können !");
    return 1;
    }
    }
    return 1;
    }


    Ersetz jetzt halt z.B.
    if(gTeam[playerid] == 2 || IsACop(playerid) || PlayerInfo[playerid][pMember] == 24||PlayerInfo[playerid][pLeader] == 24)
    mit deiner Abfrage obs ein Cop ist.


    MfG
    Cop

  • Blitzer System - Klick mich! Halt ne Include aber damit kommste schon zurecht :P


    Das Freikauf System kann ich dir jetzt nich machen aber hier das /ticket system


    //===================================TICKET=====================================
    if(strcmp(cmd, "/ticket", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gTeam[playerid] != 2 && !IsACop(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Beamter!");
    return 1;
    }
    if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Beamter!");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /ticket [playerid] [preis] [Grund]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /ticket [playerid] [preis] [Grund]");
    return 1;
    }
    moneys = strval(tmp);
    if(moneys < 1 || moneys > 20000) { SendClientMessage(playerid, COLOR_GREY, " Nicht weniger als 1 oder mehr als 20000!"); return 1; }
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if (ProxDetectorS(8.0, playerid, giveplayerid))
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    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, "Benutz: /ticket [playerid] [Preis] [Grund]");
    return 1;
    }
    format(string, sizeof(string), "* Du hast %s ein Ticket in Höhe von $%d ausgestellt, Grund: %s", giveplayer, moneys, (result));
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Officer %s hat dir ein Ticket in Höhe von $%d ausgestellt, Grund: %s", sendername, moneys, (result));
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Um das Ticket zu bezahlen gib '/accept ticket' ein.");
    TicketOffer[giveplayerid] = playerid;
    TicketMoney[giveplayerid] = moneys;
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist nicht nah genug !");
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist Offline !");
    return 1;
    }
    }
    return 1;
    }


    GF = Godfahter


    MfG
    Cop