Beiträge von BuschKind


    dcmd_beladen(playerid,params[])
    {
    #pragma unused params
    new carid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(GetPlayerState(playerid) == 2)
    {
    if(GetVehicleModel(carid) == 455)
    {
    if(PlayerInfo[playerid][Nebenjob] == 1)
    {
    if(Ndienst[playerid] == 1)
    {
    if(IsPlayerInRangeOfPoint(playerid,15,1315.8711,332.8351,19.5547)) //BB[2]
    {
    if(WarenInfo[PDMBack] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+100$)");
    PlayerInfo[playerid][Geld] += 100;
    GivePlayerMoney(playerid,100);
    WarenInfo[PDMBack] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast nicht mehr genug Produkte!");
    }
    return 1;
    }
    if(PlayerToPoint(6.0,playerid,292.3138,-199.7277,1.5781)) //MG[2]
    {
    if(WarenInfo[PBBBack] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+75$)");
    PlayerInfo[playerid][Geld] += 75;
    GivePlayerMoney(playerid,75);
    WarenInfo[PBBBack] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast keine Produkte dabei!");
    }
    return 1;
    }
    if(PlayerToPoint(6.0,playerid,691.1627,-509.1924,16.3359)) //DM[2]
    {
    if(WarenInfo[PDMGhop] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+50$)");
    PlayerInfo[playerid][Geld] += 50;
    GivePlayerMoney(playerid,50);
    WarenInfo[PDMGhop] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast keine Produkte dabei!");
    }
    return 1;
    }
    if(PlayerToPoint(13.0,playerid,1315.8981,332.8953,19.5547)) //LV[2]
    {
    if(WarenInfo[PDMGhop] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+25$)");
    PlayerInfo[playerid][Geld] += 25;
    GivePlayerMoney(playerid,25);
    WarenInfo[PDMGhop] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast keine Produkte dabei!");
    }
    return 1;
    }
    if(PlayerToPoint(13.0,playerid,2239.7947,51.3329,26.4844)) //SA[2]
    {
    if(WarenInfo[PPCShop] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+25$)");
    PlayerInfo[playerid][Geld] += 25;
    GivePlayerMoney(playerid,25);
    WarenInfo[PPCShop] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast keine Produkte dabei!");
    }
    return 1;
    }
    if(PlayerToPoint(13.0,playerid,1260.2286,207.6113,19.5547)) //FC[2]
    {
    if(WarenInfo[PMGShop] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+25$)");
    PlayerInfo[playerid][Geld] += 25;
    GivePlayerMoney(playerid,25);
    WarenInfo[PMGShop] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast keine Produkte dabei!");
    }
    return 1;
    }
    if(PlayerToPoint(13.0,playerid,712.0725,-503.4769,16.3359)) //LSF[4]
    {
    if(WarenInfo[PDMElek] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+25$)");
    PlayerInfo[playerid][Geld] += 25;
    GivePlayerMoney(playerid,25);
    WarenInfo[Benzlsf] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast keine Produkte dabei!");
    }
    return 1;
    }
    if(PlayerToPoint(13.0,playerid,2333.1514,-62.3893,26.4844)) //Erz[2]
    {
    if(WarenInfo[PPCElek] >= 10000)
    {
    SendClientMessage(playerid,Rot,"Dieses Geschäft hat noch genug Produkte!");
    return 1;
    }
    if(Beladen[playerid] >= 100)
    {
    SendClientMessage(playerid,Grün,"Du hast das Geschäft erfolgreich mit Produkten aufgefüllt. (+25$)");
    PlayerInfo[playerid][Geld] += 25;
    GivePlayerMoney(playerid,25);
    WarenInfo[PPCElek] += 100;
    Beladen[playerid] -= 100;
    UpdaWaren();
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du hast keine Produkte dabei!");
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist an keiner Tankstelle!");
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist nicht im Dienst!");
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du bist kein Tankfahrer!");
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du kannst nur mit einem Lkw das Benzin aufladen!");
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du kannst nur als Fahrer das Benzin auftanken!");
    }
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du musst in einem Fahrzeug sitzen!");
    }
    return 1;
    }



    Hallo wenn ich /beladen eingebe kommt immer ,,Server: Unknown Command".


    Findet jemand den fehler wieso ?

    Hallo.
    Wenn ich ingame /job eingebe funktioniert dies nicht



    dcmd_job(playerid,params[])
    {
    #pragma unused params
    if(PlayerToPoint(1.5, playerid,1351.4164,346.9079,20.5005))//Trucker Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 1)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,161.8728,-10.3473,1.5781))//Lieferant Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 2)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,-23.0037,75.6979,3.1096))//Landwirt Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 3)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(5.0, playerid,287.9252,1392.1503,10.5859))//Tankfahrer Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 4)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,602.1788,867.7868,-42.9609))//Erzarbeiter Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 5)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,757.6892,373.9059,23.2031))//Fischer Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 6)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,376.8722,-75.0238,1.4068))//Müllmann Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 7)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,1225.1147,182.7358,20.4159))//Mechaniker Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 9)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,-2409.7849,-2185.9783,33.2891))//Forscher Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 11)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    return 1;
    }
    if(PlayerToPoint(1.5, playerid,-538.5905,-78.1442,62.8672))//Holzfäller Menu
    {
    if(PlayerInfo[playerid][Nebenjob] == 12)
    {
    if(Ndienst[playerid] == 0)
    {
    ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Nebenjob Dienst","Männlich \nWeiblich \nHeal (250$)","Weiter","Verlassen");
    return 1;
    }
    if(Ndienst[playerid] == 1)
    {
    Ndienst[playerid] = 0;
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
    SendClientMessage(playerid,Grün,"Nebenjob Dienst beendet!");
    }
    }
    }
    return 1;
    }



    Die positionen sind richtig



    Wie ich bei /aopen ganz oben gemacht habe.


    Du musst überall setzen, ob er ein Admin ist, also das es nur er kann.
    und nicht die klammer vergessen;).


    new FactionBuylist[][fBuylist] = {
    {402,-1946.5570,273.7756,35.3055,106.3287,106.3287,6500}, // Buffalo
    {405,-1945.3928,269.8301,35.3489,105.6244,7500}, // Sentinel
    {410,-1944.6705,265.9464,35.1304,107.3273,5000}, // Manana
    {418,-1947.7180,255.9196,35.5616,51.0342,6000}, // Moonbeam
    {426,-1953.3811,256.1029,35.2145,41.4767,10000}, // Premier
    {429,-1958.4412,256.2679,35.1497,36.4409,17500}, // Banshee
    {445,-1961.5267,262.2760,35.3476,309.9886,35000}, // Admiral
    {458,-1962.1815,268.8345,35.3499,311.2491,13000}, // Solair
    {461,-1952.1906,279.2848,35.0534,118.7214,25000}, // PCJ
    {471,-1952.4702,281.5153,34.9510,117.2371,30000}, // Quad
    {477,-1962.8519,273.5370,35.2264,313.8926,40000}, // ZR
    {505,-1962.3901,283.4383,35.6149,302.6467,28900}, // Rancher
    {506,-1962.7391,288.6955,35.1765,308.9701,39000}, // Super GT
    {560,-1962.6368,300.7048,35.1787,304.2450,50000}, // Sultan
    {535,-1963.0221,305.8110,35.2371,303.1331,43999}, // Slamvan
    {541,-1951.9795,297.5931,35.0937,1.5376,55000} // Bullet
    };



    versuchs mal so;)


    if(strcmp(cmd, "/ticket", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " You are not on Duty!");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /ticket [playerid/PartOfName] [price] [Grund]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /ticket [playerid/PartOfName] [price] [Grund]");
    return 1;
    }
    moneys = strval(tmp);
    if(moneys < 1 || moneys > 99999) { SendClientMessage(playerid, COLOR_GREY, " Ticket Money can't be below 1 or higher then 99999 !"); 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, "Benutze: /ticket [playerid/PartOfName] [price] [Grund]");
    return 1;
    }
    format(string, sizeof(string), "* You gave %s a Ticket costing $%d, reason: %s", giveplayer, moneys, (result));
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Officer %s has given you a Ticket costing $%d, reason: %s", sendername, moneys, (result));
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Type /accept ticket, to accept it.");
    TicketOffer[giveplayerid] = playerid;
    TicketMoney[giveplayerid] = moneys;
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist nicht in deiner Nähe !");
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist Offline !");
    return 1;
    }
    }
    return 1;
    }


    if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Behördler !");
    return 1;
    }
    if(PlayerInfo[playerid][pRank] < 5)
    {
    SendClientMessage(playerid, COLOR_GREY, " You need to be Rank 5 to be able to use this !");
    return 1;
    }
    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, "USAGE: (/gov)ernment [text]");
    return 1;
    }
    SendClientMessageToAll(COLOR_WHITE, "|___________ Staatliche Durchsage ___________|");
    format(string, sizeof(string), "Officer %s: %s", sendername, result);
    SendClientMessageToAll(COLOR_DBLUE, string);
    }
    return 1;
    }



    so sollte es gehen

    Godfather hier bitte:




    if(strcmp(cmd, "/enter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    //printf("Found House :%d",i);
    if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerInterior(playerid,HouseInfo[i][hInt]);
    SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
    GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
    PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
    PlayerInfo[playerid][pLocal] = i;
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
    }
    }
    }
    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
    {
    //printf("Found House :%d",i);
    if(!IsACop(playerid) && i == 3)
    {
    SendClientMessage(playerid, COLOR_GREY, " Cops only !");
    return 1;
    }
    if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
    {
    if(PlayerInfo[playerid][pPbiskey] != i)
    {
    if(BizzInfo[i][bLocked] == 1)
    {
    GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
    return 1;
    }
    if(BizzInfo[i][bProducts] == 0)
    {
    GameTextForPlayer(playerid, "~r~ausverkauft", 5000, 1);
    return 1;
    }
    GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
    format(string, sizeof(string), "~r~-$%d", BizzInfo[i][bEntranceCost]);
    BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
    ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
    BizzInfo[i][bProducts]--;
    OnPropUpdate();
    GameTextForPlayer(playerid, string, 5000, 3);
    }
    SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
    SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
    PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
    PlayerInfo[playerid][pLocal] = i+99;
    new dood[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dood, sizeof(dood));
    format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i);
    printf("%s", string);
    PayLog(string);
    //PlayerInfo[playerid][pLocal] = i;
    }
    else
    {
    GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
    }
    }
    }
    for(new i = 0; i < sizeof(SBizzInfo); i++)
    {
    if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
    {
    if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntranceCost])
    {
    if(PlayerInfo[playerid][pPbiskey] != i)
    {
    if(SBizzInfo[i][sbLocked] == 1)
    {
    GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
    return 1;
    }
    if(SBizzInfo[i][sbProducts] == 0)
    {
    GameTextForPlayer(playerid, "~r~ausverkauft", 5000, 1);
    return 1;
    }
    if(i == 10)
    {
    PaintballPlayers ++;
    PlayerPaintballing[playerid] = 1;
    new rand = random(sizeof(PaintballSpawns));
    SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    TogglePlayerControllable(playerid, 0);
    }
    else if(i == 11)
    {
    PlayerKarting[playerid] = 1;
    SendClientMessage(playerid, TEAM_GROVE_COLOR, "You can now parcipitate in a Karting Race, grab a Kart.");
    }
    else
    {
    return 1;
    }
    GivePlayerMoney(playerid,-SBizzInfo[i][sbEntranceCost]);
    gSpentCash[playerid] = GetPlayerMoney(playerid);
    SBizzInfo[i][sbProducts]--;
    SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
    ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
    new dood[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dood, sizeof(dood));
    format(string, sizeof(string), "%s payed $%d to enter sbiz %d", dood, SBizzInfo[i][sbEntranceCost], i);
    printf("%s", string);
    PayLog(string);
    OnPropUpdate();
    }
    }
    else
    {
    GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
    }
    }


    }
    if (PlayerToPoint(3.0, playerid,1483.830322, -1768.207153, 18.456133))
    {
    SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
    GameTextForPlayer(playerid, "~w~Willkommen im Regierungshaus", 5000, 1);
    PlayerInfo[playerid][pInt] = 3;
    PlayerInfo[playerid][pLocal] = 241;
    }
    else if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438))
    {
    GameTextForPlayer(playerid, "~w~Willkommen zum 8ball Rennen", 5000, 1);
    SetPlayerInterior(playerid,7);
    PlayerInfo[playerid][pInt] = 7;
    SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
    }
    else if (PlayerToPoint(3.0, playerid,2703.5103,-1699.6544,11.8438))
    {
    GameTextForPlayer(playerid, "~w~Willkommen zum Death Race", 5000, 1);
    SetPlayerInterior(playerid,15);
    PlayerInfo[playerid][pInt] = 15;
    SetPlayerPos(playerid,-1398.103515,937.631164,1036.479125);
    }
    else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
    {
    GameTextForPlayer(playerid, "~w~Willkommen zum Dirt Rennen", 5000, 1);
    SetPlayerInterior(playerid,4);
    PlayerInfo[playerid][pInt] = 4;
    SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
    }
    else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
    {
    GameTextForPlayer(playerid, "~w~Willkommen in der Standarena", 5000, 1);
    SetPlayerInterior(playerid,14);
    PlayerInfo[playerid][pInt] = 14;
    SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
    }
    else if (PlayerToPoint(8.0, playerid,-2764.8911,375.6259,6.3426))
    {
    GameTextForPlayer(playerid, "~w~Willkommen in der Bank", 5000, 1);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid, 1);
    Free[playerid] = 1;
    PlayerInfo[playerid][pLocal] = 103;
    SetPlayerPos(playerid,2305.6890,-16.0881,26.7496);
    }
    else if (PlayerToPoint(8.0, playerid,-1112.3635,-1674.0742,76.4185))
    {
    GameTextForPlayer(playerid, "~w~Willkommen im Hitman-Versteck", 5000, 1);
    SetPlayerInterior(playerid,6);
    PlayerInfo[playerid][pInt] = 6;
    PlayerInfo[playerid][pLocal] = 200;
    SetPlayerPos(playerid,296.3997,-107.0163,1001.5156);
    }
    else if (PlayerToPoint(8.0, playerid,718.3216,-1477.2084,5.4688))
    {
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || IsACSI(playerid))
    {
    GameTextForPlayer(playerid, "~w~LCN Versteck", 5000, 1);
    SetPlayerInterior(playerid,9);
    PlayerInfo[playerid][pInt] = 9;
    SetPlayerPos(playerid,2320.3208,-1024.9601,1050.2109);
    }
    }
    else if (PlayerToPoint(8.0, playerid,1517.6851,-1505.2056,13.5547))
    {
    if (PlayerInfo[playerid][pMember] == 16|| PlayerInfo[playerid][pLeader] == 16 || IsACSI(playerid))
    {
    GameTextForPlayer(playerid, "~w~Red Soldiers base", 5000, 1);
    SetPlayerInterior(playerid,1);
    PlayerInfo[playerid][pInt] = 1;
    SetPlayerPos(playerid,-778.4498,495.8393,1368.5304);
    }
    }
    else if (PlayerToPoint(8.0, playerid,1568.6952,-1690.4670,5.8906))
    {
    if(IsACop(playerid))
    {
    GameTextForPlayer(playerid, "~w~PD", 5000, 1);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 3;
    SetPlayerPos(playerid,238.6003,141.2120,1003.0234);
    }
    }
    else if (PlayerToPoint(8.0, playerid,1654.0626,-1656.7372,22.5156))
    {
    if(IsPlayerConnected(playerid))
    {
    GameTextForPlayer(playerid, "~w~CSI base", 5000, 1);
    SetPlayerInterior(playerid,10);
    PlayerInfo[playerid][pInt] = 10;
    SetPlayerPos(playerid,246.3760,109.2460,1003.2188);
    }
    }
    else if (PlayerToPoint(8.0, playerid,1123.7449,-2037.3063,69.8860))
    {
    if (PlayerInfo[playerid][pMember] == 7||13|| PlayerInfo[playerid][pLeader] == 7||13)
    {
    GameTextForPlayer(playerid, "~w~Pentagon", 5000, 1);
    SetPlayerInterior(playerid,5);
    PlayerInfo[playerid][pInt] = 5;
    SetPlayerPos(playerid,1266.5160,-782.4367,1091.9063);
    }
    }
    else if (PlayerToPoint(8.0, playerid,300.4126,-1154.6367,81.3859))
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    GameTextForPlayer(playerid, "~w~Admin-Haus", 5000, 1);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,2257.454102, -1740.186646, -79.167427);
    }
    }
    else if (PlayerToPoint(8.0, playerid,233.3118,1841.9834,17.6406))
    {
    if (PlayerInfo[playerid][pMember] == 3|| PlayerInfo[playerid][pLeader] == 3)
    {
    GameTextForPlayer(playerid, "~w~Army Haus", 5000, 1);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,-92.836731, 6273.952637, 9.286758);
    }
    }
    else if (PlayerToPoint(8.0, playerid,1455.5206,750.7079,11.0234))
    {
    if (PlayerInfo[playerid][pMember] == 20|| PlayerInfo[playerid][pLeader] == 20 || IsACSI(playerid))
    {
    GameTextForPlayer(playerid, "~w~BOD Versteck", 5000, 1);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,2365.1897,-1132.2941,1050.8750);
    }
    }
    }
    return 1;
    }
    if(strcmp(cmd, "/exit", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    //printf("House :%d",i);
    if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    if(HouseInfo[i][hHel] == 1)
    {
    new Float:tempheal;
    GetPlayerHealth(playerid,tempheal);
    if(tempheal < 100.0)
    {
    SetPlayerHealth(playerid,100.0);
    }
    }
    }
    }
    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    //printf("Bizz :%d",i);
    if (PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
    PlayerInfo[playerid][pLocal] = 255;
    }
    }
    if(GetPlayerVehicleID(playerid) >= 71 && GetPlayerVehicleID(playerid) <= 77 || GetPlayerVehicleID(playerid) >= 179 && GetPlayerVehicleID(playerid) <= 190)
    {
    TogglePlayerControllable(playerid, 1);
    RemovePlayerFromVehicle(playerid);
    }
    else if (PlayerToPoint(3.0, playerid,387.7978,173.8582,1008.3828))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1483.830322, -1768.207153, 18.456133);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;

    }
    else if (Free[playerid] == 1) //bank
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-2764.8911,375.6259,6.3426);
    PlayerInfo[playerid][pInt] = 0;
    Free[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pLocal] = 255;
    }
    else if (PlayerToPoint(3.0, playerid,296.3997,-107.0163,1001.5156))//hitman
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-1112.3635,-1674.0742,76.4185);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    }
    else if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
    }
    else if (PlayerToPoint(8.0, playerid,-1398.103515,937.631164,1036.479125))
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,2703.5103,-1699.6544,11.8438);
    }
    else if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313))
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
    }
    else if (PlayerToPoint(8.0, playerid,1176.9448, -1316.6666, -6.9708))
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,1173.0244,-1326.1515,15.3974);
    }
    else if (PlayerToPoint(8.0, playerid,2320.3208,-1024.9601,1050.2109))
    {
    if (PlayerInfo[playerid][pMember] == 5|| PlayerInfo[playerid][pLeader] == 5)
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,718.3216,-1477.2084,5.4688);
    }
    }
    else if (PlayerToPoint(8.0, playerid,-778.4498,495.8393,1368.5304))
    {
    if (PlayerInfo[playerid][pMember] == 16|| PlayerInfo[playerid][pLeader] == 16)
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,1517.6851,-1505.2056,13.5547);
    }
    }
    else if (PlayerToPoint(8.0, playerid,238.6003,141.2120,1003.0234))
    {
    if(IsACop(playerid))
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,1568.6952,-1690.4670,5.8906);
    }
    }
    else if (PlayerToPoint(8.0, playerid,246.3760,109.2460,1003.2188))
    {
    if (PlayerInfo[playerid][pMember] == 14|| PlayerInfo[playerid][pLeader] == 14)
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,1654.0626,-1656.7372,22.5156);
    }
    }
    else if (PlayerToPoint(8.0, playerid,1263.8958,-784.6381,1091.9063))
    {
    if (PlayerInfo[playerid][pMember] == 7||13|| PlayerInfo[playerid][pLeader] == 7||13)
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,1123.7449,-2037.3063,69.8860);
    }
    }
    else if (PlayerToPoint(8.0, playerid,2257.454102, -1740.186646, -79.167427))
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,300.4126,-1154.6367,81.3859);
    }
    }
    else if (PlayerToPoint(8.0, playerid,-92.836731, 6273.952637, 9.286758))
    {
    if (PlayerInfo[playerid][pMember] == 3|| PlayerInfo[playerid][pLeader] == 3)
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,233.3118,1841.9834,17.6406);
    }
    }
    else if (PlayerToPoint(8.0, playerid,2389.0903,2678.9663,-2.2134))
    {
    if (PlayerInfo[playerid][pJailed] == 0)
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,1583.5963,-1678.2257,5.8967);
    }
    }
    else if (PlayerToPoint(8.0, playerid,2365.1897,-1132.2941,1050.8750))
    {
    if (PlayerInfo[playerid][pMember] == 20|| PlayerInfo[playerid][pLeader] == 20 || IsACSI(playerid))
    {
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerPos(playerid,1455.5206,750.7079,11.0234);
    }
    }
    else if(NoFuel[playerid] == 1)
    {
    TogglePlayerControllable(playerid, 1);
    NoFuel[playerid] = 0;
    }
    }
    return 1;
    }

    Hi Leute heute zeige ich euch wie die Sirene+Blaulicht an ein Sultan oder anderen cars macht.


    als Erstes machen wir ganz oben im Script


    new sirene[MAX_VEHICLES];
    new sirene1[MAX_VEHICLES];
    new sirene2[MAX_VEHICLES];
    new sirene3[MAX_VEHICLES];
    new UCL[MAX_VEHICLES];// das ist nur wegen der "if" anfrage


    Dann gehen wir unter "OnVehicleSpawn" und schreiben dort das rein.


    DestroyObject(sirene[vehicleid]);
    DestroyObject(sirene1[vehicleid]);
    DestroyObject(sirene2[vehicleid]);
    DestroyObject(sirene3[vehicleid]);
    UCL[vehicleid] = 0;//ist wegen der "if" Anfrage beim /command


    Danach erstellen wir uns das Command unter "OnPlayerCommandText" das so ausschaut.


    if(strcmp(cmdtext, "/uclight",true) == 0)
    {
    if(UCL[GetPlayerVehicleID(playerid)] == 0)
    {
    sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0,100);
    sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
    AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0.0,0.85,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    UCL[GetPlayerVehicleID(playerid)] = 1;
    return 1;
    }
    else if(UCL[GetPlayerVehicleID(playerid)] == 1)
    {
    DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene1[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene2[GetPlayerVehicleID(playerid)]);
    DestroyObject(sirene3[GetPlayerVehicleID(playerid)]);
    UCL[GetPlayerVehicleID(playerid)] = 0;
    return 1;
    }
    }


    und schon sind wir fertig
    wie es ausschaut könnt ihr hier sehen




    if(GetPVarInt(playerid,"Fraktion")==7) //hier der erste
    {
    SetPlayerSkin(playerid,275);
    SetPlayerInterior(playerid,0);
    SetPlayerColor(playerid,0xFF000FFF);
    SetPlayerArmour(playerid,100);
    SetPlayerHealth(playerid,100);
    SetPlayerPos(playerid,1176.9983,-1323.9191,14.0490);
    SetPlayerFacingAngle(playerid,270.7373);
    SetCameraBehindPlayer(playerid);
    return 1; //hier der zweite
    }


    und so