Beiträge von rndy

    Guten Abend, ich hätt das gern so wenn man stirbt das der Name angezeigt wird beim Totenkopf, -> das passiert auch nur ich hätt noch gerne das wenn man eine Maske hat das da dann steht Maskierter


    Der Code:


    if(Maske[playerid] == 1)
    {
    new pName[24],Float:X, Float:Y, Float:Z;
    GetPlayerName(playerid, pName, 24);
    GetPlayerPos(playerid, X,Y,Z);
    PlayerText[playerid] = Create3DTextLabel("Maskierter", COLOR_WHITE,X,Y,Z,10.0,0);
    SetTimerEx("PlayerTextDestroy",180000, false, "i", playerid);//falls der Kopf nachner bestimmten Zeit gelöscht werden soll
    TotenKopf[playerid] = CreatePickup(1254,1, X, Y, Z);
    }
    else if(Maske[playerid] == 0)
    {
    new pName[24], Float:X, Float:Y, Float:Z;
    GetPlayerName(playerid, pName, 24);
    GetPlayerPos(playerid, X,Y,Z);
    PlayerText[playerid] = Create3DTextLabel(pName, COLOR_WHITE,X,Y,Z,10.0,0);
    SetTimerEx("PlayerTextDestroy",180000, false, "i", playerid);//falls der Kopf nachner bestimmten Zeit gelöscht werden soll
    TotenKopf[playerid] = CreatePickup(1254,1, X, Y, Z);
    }


    hab schon mehrere Sachen probiert..



    Dann hab ich noch das Problem das man in der Paintball pro Kill ein Wanted bekommt wie kann ich das machen das man wenn Gangwar ist und wenn man in der Paintball ist keine Wanteds bekommt??


    if(IsACop(killerid))
    {
    format(string, sizeof(string), "Du hast gerade einen Mord begangen. Achtung!");
    SendClientMessage(killerid, COLOR_LIGHTRED, string);
    }
    else
    {
    WantedLevel[killerid] += 1;
    format(string, sizeof(string), "Du hast 1 Wanted erhalten, Verbrechen: Mord. Wantedlevel: %d",WantedLevel[killerid]);
    PlayerInfo[killerid][pKills] += 1;
    PlayerInfo[killerid][pCrimes] += 1;
    SendClientMessage(killerid, COLOR_LIGHTRED, string);
    }


    Das hier hat was mit dem Gangwar zu tun:


    for(new fs;fs<sizeof(FightSystem);fs++){
    if(FightSystem[fs][fsFightTime]){
    if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction]||
    GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]) {
    PlayerInfo[playerid][pFriedhof] = 0;
    }
    }
    }


    und das mit Paintball:


    PlayerPaintballing[playerid] == 0


    Danke im Vorraus

    Hi, wie in der Überschrift schon steht möchte ich das wenn man /frespawn eingibt das man nur unbenutze Fraktionsautos benutzt
    Jetziger Code:


    if(strcmp(cmdtext,"/frespawn",true)==0){
    if(GetPlayerLeader(playerid))
    {
    if(gettime() < LastRespawned[GetPlayerFaction(playerid)-1])
    return SendClientMessage(playerid,FACTION_COL_GREY,"Du kannst deine Fahrzeuge nur alle '5' Minuten respawnen.");
    LastRespawned[GetPlayerFaction(playerid)-1] = gettime()+(60*5);
    for(new fc;fc<sizeof(FactionCars);fc++)
    {
    if(FactionCars[fc][fVehid] >= 400 && FactionCars[fc][fVehid] <= 611)
    {
    if(FactionCars[fc][fFaction][0] == GetPlayerFaction(playerid))
    {
    DestroyAndCreateFactionCar(fc);
    }
    }
    }SendClientMessage(playerid,FACTION_COL_YELLOW,"Du hast deine Fraktionsfahrzeuge erfolgreich respawnt.");
    }else SendClientMessage(playerid,FACTION_COL_GREY,"Du bist nicht berechtigt diesen Befehl anzuwenden.");
    return true;
    }


    Grüße

    Hi, ich habe ein Problem mit nem Befehl der zwischen 12 und 14 Uhr sein soll, wenn es die Uhrzeit sein soll funktioniert es nicht.. wieso?


    Der Befehl:


    if(strcmp(cmdtext,"/gangwar",true)==0){
    new tmphour;
    if ((tmphour > ghour) || (tmphour > 12 && ghour < 14))
    {
    if(IsAFightFaction(GetPlayerFaction(playerid))){
    for(new fs;fs<sizeof(FightSystem);fs++){
    if((FightSystem[fs][fsOwnerFaction] == GetPlayerFaction(playerid) && FightSystem[fs][fsFightTime]) || FightSystem[fs][fsAttackFaction] == GetPlayerFaction(playerid))
    return SendClientMessage(playerid,FS_COL_GREY,"Dieses Gebiet wird bereits von deiner Fraktion angegriffen.");
    }
    new on[2];
    on[0] = 0;
    on[1] = 0;
    for(new fs;fs<sizeof(FightSystem);fs++){
    for(new p=0;p<MAX_PLAYERS;p++)
    {
    if(GetPlayerFaction(p) == FightSystem[fs][fsOwnerFaction]) {
    on[0]++;
    }
    if(GetPlayerFaction(p) == GetPlayerFaction(playerid))
    {
    on[1]++;
    }
    }
    }
    //if(testphase == 0) {
    // if(on[0] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Es sind nicht genügend Gegner Online (mindestens 3)");
    // if(on[1] <= 2) return SendClientMessage(playerid, COLOR_WHITE, "Es sind nicht genügend Mitglieder deiner Fraktion Online (mindestens 3)");
    //}
    new TempZone = GetPlayerFightzone(playerid);
    if(TempZone != -255){
    if(FightSystem[TempZone][fsFightTimeCool] != 0) {
    format(stringx, sizeof(stringx), "Das Gebiet kann erst wieder in ca. %d Minuten erobert werden.", FightSystem[TempZone][fsFightTimeCool]);
    return SendClientMessage(playerid, FS_COL_GREY,stringx);
    }


    if(!IsAFightFaction(FightSystem[TempZone][fsOwnerFaction]))
    return SendClientMessage(playerid,FS_COL_GREY,"Gebiet wurde ausgeschaltet.");
    if(FightSystem[TempZone][fsOwnerFaction] == GetPlayerFaction(playerid))
    return SendClientMessage(playerid,FS_COL_GREY,"** Man greift nicht seine eigenen Leute an.");
    if(FightSystem[TempZone][fsFightTime] || FightSystem[TempZone][fsAttackFaction] != -255)
    return SendClientMessage(playerid,FS_COL_GREY,"** In diesem Gebiet wird bereits geschossen.");
    if(FightSystem[TempZone][fsLastFight]){
    new fsText[178];
    format(fsText,sizeof(fsText),"Ganggebiet: Dieses Ganggebiet wurde bereits Angegriffen, wartet noch: '%d' Minuten.",FightSystem[TempZone][fsLastFight]);
    SendClientMessage(playerid,FS_COL_GREY,fsText);
    return 1;
    }
    for(new fs;fs<sizeof(FightSystem);fs++){
    if(FightSystem[fs][fsOwnerFaction] == FightSystem[TempZone][fsOwnerFaction] && (FightSystem[fs][fsFightTime] || FightSystem[fs][fsAttackFaction] != -255))
    return SendClientMessage(playerid,FS_COL_GREY,"Ganggebiet: Die Gang / Mafia der das Ganggebiet gehört hat bereits ein Kampf.");
    }
    new fsTextToOwner[255];
    format(fsTextToOwner,sizeof(fsTextToOwner),"Gangwar - Verteidiger");
    new fsName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,fsName,MAX_PLAYER_NAME);
    new fsTextToAttack[255];
    format(fsTextToAttack,sizeof(fsTextToAttack),"Gangwar - Angreifer");
    new fsText[64];
    format(fsText,sizeof(fsText),"~y~%s",GetFactionNameOfFaction(FightSystem[TempZone][fsOwnerFaction]));
    TextDrawSetString(FightSystem[TempZone][fsWinFaction],fsText);
    TextDrawSetString(FightSystem[TempZone][fsWinKills],"~y~00 Punkte");
    format(fsText,sizeof(fsText),"~y~%s",GetFactionNameOfFaction(GetPlayerFaction(playerid)));
    TextDrawSetString(FightSystem[TempZone][fsLoseFaction],fsText);
    TextDrawSetString(FightSystem[TempZone][fsLoseKills],"~y~00 Punkte");
    TextDrawSetString(FightSystem[TempZone][fsTime],"Verbl. Zeit: 30 Minuten");//ZEIT



    for(new i;i<MAX_PLAYERS;i++){
    if(IsPlayerConnected(i)){
    GangZoneFlashForPlayer(i,FightSystem[TempZone][fsZoneID],GetZoneColorOfFaction(GetPlayerFaction(playerid)));
    if(GetPlayerFaction(i) == FightSystem[TempZone][fsOwnerFaction]){
    PlayerPlaySound(i,1058,0.0,0.0,0.0);
    SendClientMessage(i,FS_COL_YELLOW,fsTextToOwner);


    TextDrawShowForPlayer(i,Fight);
    TextDrawShowForPlayer(i,FightUnderline);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsWinFaction]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsWinKills]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsLoseFaction]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsLoseKills]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsTime]);
    }
    if(GetPlayerFaction(i) == GetPlayerFaction(playerid)){
    PlayerPlaySound(i,1058,0.0,0.0,0.0);
    SendClientMessage(i,FS_COL_YELLOW,fsTextToAttack);


    TextDrawShowForPlayer(i,Fight);
    TextDrawShowForPlayer(i,FightUnderline);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsWinFaction]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsWinKills]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsLoseFaction]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsLoseKills]);
    TextDrawShowForPlayer(i,FightSystem[TempZone][fsTime]);
    }
    }
    }
    FightSystem[TempZone][fsAttackFaction] = GetPlayerFaction(playerid);
    FightSystem[TempZone][fsKillsOfOwner] = 0;
    FightSystem[TempZone][fsKillsOfAttack] = 0;
    FightSystem[TempZone][fsFightTime] = 30;//ZEIT
    FightSystem[TempZone][fsFightTimeCool] = 60;//ZEIT
    FightSystem[TempZone][fsCTF][0] = -255;
    FightSystem[TempZone][fsCTF][1] = 0;
    FightSystem[TempZone][fsCTF][2] = 0;
    return 1;
    }return SendClientMessage(playerid,FS_COL_GREY,"** Du bist in keinem Gebiet!");
    }else SendClientMessage(playerid,FS_COL_GREY,"** Du bist in keiner Gang / Mafia.");
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Du kannst den Befehl /gangwar nur zwischen 18 und 20 Uhr benutzen!");
    }
    return 1;
    }

    Hi,
    ich habe ein Befehl erstellt. -> /take maske
    Das heißt der Cop zieht den User die Maske ab nur es funktioniert nicht.
    Im Chat steht, Es ist kein Maskierter in der Nähe, obwohl ein Maskierter in der Nähe ist..


    Der Befehl:


    else if(strcmp(x_nr,"maske",true) == 0) // x_nr
    {
    if(Maske[giveplayerid] == 1)
    {
    if (ProxDetectorS(8.0, playerid, giveplayerid))
    {
    giveplayerid = GetClosestPlayer(playerid);
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Du hast %s die Maske entzogen.", giveplayer);
    SendClientMessage(playerid, COLOR_GREY, string);
    format(string, sizeof(string), "%s hat dir deine Maske entzogen", sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);


    Maske[giveplayerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, giveplayerid, 1);
    SetPlayerChatBubble(giveplayerid," ",COLOR_MASKE,10.0,0);
    //Delete3DTextLabel(Maskierter);
    SetPlayerSkin(giveplayerid,GetPVarInt(giveplayerid,"oldSkin"));
    DeletePVar(giveplayerid,"oldSkin");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Dieser Spieler ist nicht in deiner Nähe !");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY,"Es ist kein Maskierter in der Nähe!");
    return 1;
    }
    }


    Danke im Vorraus

    Guten Abend Breadfish,
    und zwar habe ich hier ein Problem mit diesen Roten Checkpoints...
    Ich hätt das gerne so das diese Rote Checkpoints in einen weißen Pfeil umgewandelt werden.
    Ausserdem muss man in diesen Roten Checkpoints 5 Sekunden warten bis man das Interior betritt wie geht das das man dies mit ENTER betritt?
    Grüße.


    new MultipleEnter[MAX_PLAYERS];
    new CheckPointing[MAX_PLAYERS];
    new CheckPointShown[MAX_PLAYERS];
    new Float:CPs[][CPInfo] = {
    {2397.8496,-1898.0288,13.5469,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {2244.4800,-1664.0601,15.4766,0.0,0,"Los Santos",207.7380,-109.0200,1005.1328,0.0,15,"Binco",0},
    //{2018.7988,1017.7705,996.8750,0.0,10,"San Fierro",-2721.0762,-320.6828,7.8438,0.0,0,"Casino",0},
    {919.0751,-1252.1527,16.2109,0.0,0,"Los Santos",322.197998,302.497985,999.148437,0.0,5,"O-Amt",0},
    //{2166.2642,-1671.6808,15.0740,0.0,0,"Los Santos",318.6689,1114.9237,1083.8828,0.0,5,"Crackhoehle",0},
    {2105.0862,-1806.3392,13.5547,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    //{2420.1899,-1509.8551,24.0000,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    //{1439.1178,-1665.7932,14.4905,0.0,0,"Los Santos",-25.9967,-187.6925,1003.5469,0.0,17,"24/7",0},//24/7 beim LSPD
    //{1480.9576,-1770.6440,18.7958,5.7813,0,"Los Santos",389.0762,173.7839,1008.3828,90.1640,3,"Stadthalle",1},
    //{1554.7671,-1674.8540,16.1953,84.0319,0,"Los Santos",239.2247,138.9361,1003.0234,359.2649,3,"3",0},
    {1456.9403,-1138.0343,23.9763,0.0,0,"Los Santos",161.4873,-96.6564,1001.8047,0.0,18,"ZIP",0},
    {1352.5164,-1758.8462,13.5078,0.0,0,"Los Santos",-26.5209,-57.5670,1003.5469,0.0,6,"24/7",0},
    {479.5239,-1538.5399,19.3803,0.0,0,"Los Santos",207.0899,-139.3603,1003.5078,0.0,3,"Pro Labs",0},
    //{811.6321,-1616.2617,13.5469,0.0,0,"Los Santos",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    //{928.3706,-1352.8804,13.3438,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {999.9166,-919.8427,42.3281,0.0,0,"Los Santos",-27.1335,-30.9769,1003.5573,0.0,4,"24/7",0},
    {1199.4064,-919.3890,43.1128,185.9694,0,"Los Santos",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {1315.3405,-898.1992,39.5781,0.0,0,"Los Santos",-30.7473,-91.1202,1003.5469,0.0,18,"24/7",0},
    {203.2688,-202.9428,1.5781,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {1366.9592,248.6927,19.5669,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2332.8704,74.9582,26.6210,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2228.9443,-1722.0851,13.5625,0.0,0,"Los Santos",772.3428,-4.1084,1000.7292,0.0,5,"Fitness Studio",0},
    //{2020.4797,1007.0064,10.8203,0.0,0,"Las Venturas",2017.7937,1017.2736,996.8750,0.0,10,"Four Dragons Casino",0},
    //{2195.9150,1676.6544,12.3672,0.0,0,"Las Venturas",2233.8779,1713.0963,1012.0313,0.0,1,"Caligolas Casino",0},
    {2237.8357,1285.1769,10.8203,0.0,0,"Las Venturas",2217.0081,-1076.1227,1050.4844,0.0,1,"Pyramide",0},
    {1966.1448,1622.2742,12.8680,0.0,0,"Las Venturas",2237.6992,-1080.0991,1049.0234,0.0,2,"Piratenschiff",0},
    {2086.7605,2074.1689,11.0425,0.0,0,"Las Venturas",-100.2317,-24.1395,1000.7188,0.0,3,"Sex Shop",0},
    //{2103.3669,2228.6326,11.0234,0.0,0,"Las Venturas",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {2083.3455,2223.9021,11.0234,0.0,0,"Las Venturas",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2247.8586,2397.4263,10.8203,0.0,0,"Las Venturas",-26.6043,-56.9045,1003.5469,0.0,6,"24/7",0},
    {2471.7610,2034.2963,11.0625,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {2366.0754,2071.2556,10.8203,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {2452.2141,2064.1470,10.8203,0.0,0,"Las Venturas",-26.5812,-57.0460,1003.5469,0.0,6,"24/7",0},
    {2373.9309,2167.3337,10.8248,0.0,0,"Las Venturas",2237.7859,-1079.9840,1049.0234,0.0,2,"Casino",0},
    {2351.8687,2532.3311,10.8203,0.0,0,"Las Venturas",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {2170.4055,2795.6697,10.8203,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {1872.5800,2071.7961,11.0625,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    //{1462.2954,-1011.2205,26.8438,252.4664,0,"Los Santos",246.5083,107.8778,1003.2188,2.5901,10,"Los Santos Bank",1},//LS Bank
    //{2195.5840,1677.3838,12.3672,87.7661,0,"Las Venturas",2233.8860,1712.6942,1011.9067,179.4858,1,"Caligulas Casino",1},
    {2196.2441,1676.9348,12.3672,282.9798,0,"Las Venturas",2233.5127,1714.1404,1012.3544,191.3406,1,"Caligulas Casino",1},
    {2187.7959,1696.3616,20.3906,94.6388,0,"Las Venturas",2156.7397,1598.2126,999.9716,102.9798,1,"Caligulas Casino",1},
    {423.8142,2536.5027,16.1484,0.0,0,"Todesflughafen",420.4850,2535.5901,10.0000,0.0,10,"Todesflughafen",0},
    {693.5278,1966.8389,5.5391,0.0,0,"Wueste",1212.0168,-26.5722,1000.9531,0.0,3,"Bordell",0},
    {-1213.3425,1830.5543,41.9297,0.0,0,"Wueste",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    //{172.7686,1176.8818,14.7578,0.0,0,"San Fierro",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {-2356.3796,1008.1703,50.8984,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {-1912.0579,828.1326,35.2021,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    {-2336.4768,-166.8129,35.5547,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
    //{-1815.9301,617.8619,35.1719,0.0,0,"San Fierro",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
    {-1721.3677,1359.0906,7.1853,0.0,0,"San Fierro",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
    {-1721.3677,1359.0906,7.1853,0.0,0,"San Fierro",372.5959,-132.1461,1001.4922,0.0,5,"Otto's Autohaus",0},
    {-1808.2806,945.4167,24.8906,51.5222,0,"San Fierro",372.4701,-132.8026,1001.4922,179.2293,5," ",0},
    {-1911.6249,828.5123,35.1719,137.0100,0,"San Fierro",363.2781,-74.7534,1001.5078,141.5494,10," ",0},
    {-2356.5381,1008.1564,50.8984,270.3487,0,"San Fierro",363.3535,-74.5933,1001.5078,110.7977,10," ",0},
    //{-1817.5028,618.2291,35.1719,358.6120,0,"San Fierro",364.9646,-10.9578,1001.8516,177.9759,9," ",0},
    {1572.0428,-1336.5353,16.4844,304.8029,0,"Los Santos",1548.5587,-1364.8901,326.2109,85.4907,0,"Star Tower",0},
    {1104.1304,-1449.0028,15.7969,180.2625,0,"Los Santos",-2240.468505,137.060440,1035.414062,0.2625,6,"Handyladen",0},
    {1699.9642,-1170.1368,23.8281,358.9950,0,"Los Santos",833.7824,7.3484,1004.1797,0.2625,3,"Uhrenladen",0}


    };
    //enterX,Y,Z,int,exittext,exitx,y,z,exitint,entertext,enterprice


    forward EnableCheckpointingAgain(playerid);
    forward Float:GetDistanceToInsideCheckpoint(playerid,checkpointid);
    forward Float:GetDistanceToOutsideCheckpoint(playerid,checkpointid);
    forward Float:GetDistanceToClosestInside(playerid);
    forward Float:GetDistanceToClosestOutside(playerid);



    if(GetDistanceToClosestInside(playerid) < 1.0) // Man geht wo raus
    {
    if(MultipleEnter[playerid] != -1)
    {
    cpid = MultipleEnter[playerid];
    }
    else
    {
    cpid = GetClosestInsideID(playerid);
    }
    SetPlayerPos(playerid,CPs[cpid][EnterX],CPs[cpid][EnterY],CPs[cpid][EnterZ]);
    if(CPs[cpid][EnterA] != 0.0) SetPlayerFacingAngle(playerid,CPs[cpid][EnterA]);
    SetPlayerInterior(playerid,CPs[cpid][EnterInt]);
    GameTextForPlayer(playerid,CPs[cpid][ExitingText],5000,3);


    PlayerInfo[playerid][pInt] = CPs[cpid][EnterInt];
    MultipleEnter[playerid] = -1;
    CheckPointing[playerid] = 0;
    SetTimerEx("EnableCheckpointingAgain",5000,0,"i",playerid);
    }
    else if(GetDistanceToClosestOutside(playerid) < 1.0) // Man geht wo rein
    {
    cpid = GetClosestOutsideID(playerid);
    SetPlayerPos(playerid,CPs[cpid][ExitX],CPs[cpid][ExitY],CPs[cpid][ExitZ]);
    if(CPs[cpid][ExitA] != 0.0) SetPlayerFacingAngle(playerid,CPs[cpid][ExitA]);
    SetPlayerInterior(playerid,CPs[cpid][ExitInt]);
    PlayerInfo[playerid][pInt] = CPs[cpid][ExitInt];
    GameTextForPlayer(playerid,CPs[cpid][EnteringText],5000,3);
    GivePlayerMoney(playerid,-CPs[cpid][EnteringPrice]);


    if( !strcmp(CPs[cpid][EnteringText],CLUCKIN_BELL_TEXT) ||
    !strcmp(CPs[cpid][EnteringText],PIZZA_TEXT) ||
    !strcmp(CPs[cpid][EnteringText],BURGER_SHOT_TEXT) ||
    !strcmp(CPs[cpid][EnteringText],"24/7"))
    {
    MultipleEnter[playerid] = cpid;
    }
    CheckPointing[playerid] = 0;
    SetTimerEx("EnableCheckpointingAgain",5000,0,"i",playerid);
    }


    return 1;
    }


    {
    for(new i; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(CheckPointShown[i] == 1)
    {
    DisablePlayerCheckpoint(i);
    CheckPointShown[i] = 0;
    }
    if(DisplayForPlayer(i))
    {
    if(GetDistanceToClosestInside(i) < GetDistanceToClosestOutside(i) && GetDistanceToClosestInside(i) < 15.0)
    {
    new cpid = GetClosestInsideID(i);
    SetPlayerCheckpoint(i,CPs[cpid][ExitX],CPs[cpid][ExitY],CPs[cpid][ExitZ],1.5);
    //CreatePickup(1318,23,CPs[cpid][ExitX],CPs[cpid][ExitY],CPs[cpid][ExitZ],-1);
    CheckPointShown[i] = 1;
    }
    if(GetDistanceToClosestOutside(i) < GetDistanceToClosestInside(i) && GetDistanceToClosestOutside(i) < 15.0)
    {
    new cpid = GetClosestOutsideID(i);
    SetPlayerCheckpoint(i,CPs[cpid][EnterX],CPs[cpid][EnterY],CPs[cpid][EnterZ],1.5);
    //CreatePickup(1318,23,CPs[cpid][EnterX],CPs[cpid][EnterY],CPs[cpid][EnterZ],-1);
    CheckPointShown[i] = 1;
    }
    }
    }
    }

    Hi, wie kann ich im Godfather die Fraktionsautofarben ändern? Bei der Bundeswehr sind die Farben z.B Rot und ich will die grün haben finde leider nix im Script


    das was mit BundeswehrVehs zutun hat:


    new BundeswehrVehs[43];//


    Function IsABundeswehrCar(carid)
    {
    for(new i = 0; i < sizeof(BundeswehrVehs); i++)
    {
    if(carid == BundeswehrVehs[i])
    {
    return 1;
    }
    }
    return 0;
    }


    //BundeswehrVehs[1] = AddStaticVehicleEx(470,220.3373,1920.8361,17.6329,180.0073,43,0,-1); // Army1 // - 1 ist ja nicht die Farbe Rot
    //BundeswehrVehs[2] = AddStaticVehicleEx(470,211.3504,1920.8247,17.6310,179.4065,43,0,-1); // Army2


    for(new pv = 0; pv < sizeof(BundeswehrVehs); pv++)
    {
    SetVehicleNumberPlate(BundeswehrVehs[pv], "SA Bundeswehr");
    SetVehicleToRespawn(BundeswehrVehs[pv]);
    }


    else if(PlayerInfo[playerid][pLeader] == 3)
    {
    for(new pv = 0; pv < sizeof(BundeswehrVehs); pv++)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du hast deine Fraktionsautos erfolgreich zurückgespawnt!");
    if(GetPlayerVehicleID(playerid) !=BundeswehrVehs[pv])
    {
    SetVehicleToRespawn(BundeswehrVehs[pv]);
    }
    }
    return 1;
    }

    sorry bin grad zu dumm dafür:


    was ist falsch xD


    format(insgesamtstring,sizeof(insgesamtstring),"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",coordsstring,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6,coordsstring7,coordsstring8,coordsstring9,coordsstring10,coordsstring11,coordsstring12,coordsstring13,coordsstring14,coordsstring15);
    format(ingesamtstring1,sizeof(insgesamtstring1),"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",coordsstring16,coordsstring17,coordsstring18,coordsstring19,coordsstring20,coordsstring21,coordsstring22,coordsstring23,coordsstring24,coordsstring25,coordsstring26,coordsstring28,coordsstring29);
    ShowPlayerDialog(playerid,30, DIALOG_STYLE_MSGBOX , "Accountübersicht", insgesamtstring,insgesamtstring1,"OK", "");


    folgende errors:


    Zeile (11775) : Unbekannte Variable : "ingesamtstring1"
    Zeile (11775) : Falscher Variablentyp als Parameter (Parameter #1)
    Zeile (11776) : Die Anzahl der Parameter ist falsch

    Hallo ich bekomme diese Errors bei dem /stats Dialog
    Zeile (11772) : error 075: input line too long (after substitutions)
    Zeile (11773) : Unbekannte Variable : "coord"
    Zeile (11774) : Unbekannte Variable : "sstring25"
    Zeile (11774) : Ungültiger Befehl
    Zeile (11774) : Befehl hat keinen Sinn




    new coordsstring[256];
    new coordsstring2[256];
    new coordsstring3[256];
    new coordsstring4[256];
    new coordsstring5[256];
    new coordsstring6[256];
    new coordsstring7[256];
    new coordsstring8[256];
    new coordsstring9[256];
    new coordsstring10[256];
    new coordsstring11[256];
    new coordsstring12[256];
    new coordsstring13[256];
    new coordsstring14[256];
    new coordsstring15[256];
    new coordsstring16[256];
    new coordsstring17[256];
    new coordsstring18[256];
    new coordsstring19[256];
    new coordsstring20[256];
    new coordsstring21[256];
    new coordsstring22[256];
    new coordsstring23[256];
    new coordsstring24[256];
    new coordsstring25[256];
    new coordsstring26[256];
    new coordsstring27[256];
    new coordsstring28[256];
    new coordsstring29[256];
    new insgesamtstring[256];
    format(coordsstring, sizeof(coordsstring),"Accountübersicht");
    format(coordsstring2, sizeof(coordsstring2), "Name: %s Alter: %d Geschlecht: %s",name);
    format(coordsstring3, sizeof(coordsstring3), "Alter: %d",age);
    format(coordsstring4, sizeof(coordsstring4), "Geschlecht: %s",atext);
    format(coordsstring5, sizeof(coordsstring5), "Geschlecht: %s ",atext);
    format(coordsstring6, sizeof(coordsstring6), "Premium: %s",drank);
    format(coordsstring7, sizeof(coordsstring7), "Partner: %s",married);
    format(coordsstring8, sizeof(coordsstring8), "Leben: %.1f",shealth+50.0);
    format(coordsstring9, sizeof(coordsstring9), "Level: %d ",level);
    format(coordsstring10, sizeof(coordsstring10), "Verwarnungen: %d",PlayerInfo[targetid][pWarns]);
    format(coordsstring11, sizeof(coordsstring11), "Respektpunkte: %d/%d",exp,expamount);
    format(coordsstring12, sizeof(coordsstring12), "Levelkosten: %d$",costlevel);
    format(coordsstring13, sizeof(coordsstring13), "Spielminuten: %d",PlayerInfo[targetid][pGesamtMinutes]);
    format(coordsstring14, sizeof(coordsstring14), "Verbrechen: %d",crimes);
    format(coordsstring15, sizeof(coordsstring15), "Bargeld: $%d",cash);
    format(coordsstring16, sizeof(coordsstring16), "Bankkonto: %d",account);
    format(coordsstring17, sizeof(coordsstring17), "Zinsen: $%d",interest);
    format(coordsstring18, sizeof(coordsstring18), "Nebenjob: %s",jtext);
    format(coordsstring19, sizeof(coordsstring19), "Fraktion: %s",ttext);
    format(coordsstring20, sizeof(coordsstring20), "Rang: %s",rtext);
    format(coordsstring21, sizeof(coordsstring21), "Organisation: %s",ftext);
    format(coordsstring22, sizeof(coordsstring22), "Lohn: %s",PlayerInfo[targetid][pGehalt]);
    format(coordsstring23, sizeof(coordsstring23), "Lottonummer: %d ",lotto);
    format(coordsstring24, sizeof(coordsstring24), "Telefonnummer: %d",pnumber);
    format(coordsstring25, sizeof(coordsstring25), "Sturmhauben: %d",PlayerInfo[targetid][pSturmhauben]);
    format(coordsstring26, sizeof(coordsstring26), "Gras: %d",PlayerInfo[targetid][pGras]);
    format(coordsstring27, sizeof(coordsstring27), "Drogen: %d",drugs);
    format(coordsstring28, sizeof(coordsstring28), "Morde: %d",kills);
    format(coordsstring29, sizeof(coordsstring29), "Tode: %d",deaths); // 11772
    format(insgesamtstring,sizeof(insgesamtstring),"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",coordsstring,coordsstring2,coordsstring3,coordsstring4,coordsstring5,coordsstring6,coordsstring7,coordsstring8,coordsstring9,coordsstring10,coordsstring11,coordsstring12,coordsstring13,coordsstring14,coordsstring15,coordsstring16,coordsstring17,coordsstring18,coordsstring19,coordsstring20,coordsstring22,coordsstring23,coordsstring24,coordsstring25,coordsstring26,coordsstring28,coordsstring29);
    ShowPlayerDialog(playerid,30, DIALOG_STYLE_MSGBOX , "Accountübersicht", insgesamtstring, "OK", "");


    Danke im Vorraus

    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
    {
    if(GoChase[killerid] == playerid)
    {
    ConsumingMoney[killerid] = 1;
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    new fkasse = PlayerInfo[playerid][pHeadValue];
    FraktionsKasse[8] += fkasse;
    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
    GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
    format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und erhält: $%d >>",killer,giveplayer,PlayerInfo[playerid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und erhält: $%d >>",killer,giveplayer,PlayerInfo[playerid][pHeadValue]);
    Log("Auftrag.txt",string);
    PlayerInfo[playerid][pHeadValue] = 0; // hier wirds auf 0 gesetzt
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }


    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du bist nun auf dem Friedhof weil ein Contract auf dich ausgesetzt war!");
    }