Beiträge von Abgehn

    case TEAM_BLUE:
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,739.2040,-1266.9893,13.1212); // Login Fenster - Postion des Spielers
    SetPlayerFacingAngle(playerid,235.7871);
    SetPlayerCameraPos(playerid, 743.4519,-1263.9397,13.5591); // Kamera Postion
    SetPlayerCameraLookAt(playerid,737.5955,-1268.6172,13.5547); // Von wo die Postion schaut.


    }
    case TEAM_ADMIN:
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,739.2040,-1266.9893,13.1212); // Login Fenster - Postion des Spielers
    SetPlayerFacingAngle(playerid,235.7871);
    SetPlayerCameraPos(playerid, 743.4519,-1263.9397,13.5591); // Kamera Postion
    SetPlayerCameraLookAt(playerid,737.5955,-1268.6172,13.5547); // Von wo die Postion schaut.
    }
    default:
    { //-------------[Login Class}------------ Mount Chilliad - San Fiero
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,739.2040,-1266.9893,13.1212); // Login Fenster - Postion des Spielers
    SetPlayerFacingAngle(playerid,235.7871);
    SetPlayerCameraPos(playerid, 743.4519,-1263.9397,13.5591); // Kamera Postion
    SetPlayerCameraLookAt(playerid,737.5955,-1268.6172,13.5547); // Von wo die Postion schaut.
    }
    }
    }


    hier die cords ändern....

    {13666, 834.2636, -2065.7598, 16.8975, 0.0000, 0.0000, 98.8352, 500.0},
    {13666, 834.3015, -2069.1807, 16.8989, 0.0000, 0.0000, 98.8352, 500.0},
    {13666, 834.3679, -2072.5085, 16.9537, 0.0000, 2.5783, 98.8352, 500.0},
    {13666, 834.2828, -2075.8958, 17.2099, 0.0000, 6.0161, 96.2569, 500.0},
    {13666, 833.9448, -2079.0571, 17.5482, 0.0000, 8.5944, 91.1003, 500.0},
    {13666, 833.4271, -2082.1565, 18.0416, 0.0000, 11.1727, 86.8032, 500.0},
    {13666, 832.6887, -2085.4158, 18.6560, 0.0000, 11.1727, 86.8032, 500.0},
    {13666, 831.8886, -2088.6333, 19.4319, 0.0000, 16.3293, 81.6465, 500.0},
    {13666, 830.8672, -2091.6201, 20.6461, 0.0000, 23.2048, 77.3494, 500.0},
    {13666, 829.9260, -2093.8059, 21.6910, 0.0000, 26.6425, 73.9116, 500.0},
    {13666, 828.6838, -2096.2495, 23.3180, 0.0000, 32.6586, 69.6144, 500.0},
    {13666, 827.0868, -2098.5867, 25.1450, 0.0000, 35.2369, 65.3172, 500.0},
    {13666, 825.3143, -2100.5029, 26.9665, 0.0000, 36.0963, 57.5823, 500.0},
    {13666, 823.3654, -2102.2830, 28.7983, 0.0000, 36.9558, 51.5663, 500.0},
    {13666, 821.5090, -2103.8242, 30.5063, 0.0000, 38.6747, 46.4096, 500.0},
    {13666, 819.2280, -2105.2117, 32.5758, 0.0000, 39.5341, 41.2531, 500.0},
    {13666, 817.1938, -2106.2070, 34.2552, 0.0000, 39.5341, 33.5181, 500.0},
    {13666, 815.2654, -2106.8220, 35.7638, 0.0000, 39.5341, 25.7832, 500.0},
    {13666, 813.4641, -2107.1558, 37.2365, 0.0000, 39.5341, 20.6266, 500.0},
    {13666, 810.9012, -2107.3472, 39.2178, 0.0000, 39.5341, 13.7511, 500.0},
    {13666, 808.4473, -2107.2593, 41.2161, 0.0000, 39.5341, 6.8756, 500.0},
    {13666, 805.7615, -2106.8186, 43.3117, 0.0000, 39.5341, 0.0001, 500.0},
    {13666, 803.2025, -2106.0198, 45.3184, 0.0000, 39.5341, 350.5463, 500.0},
    {13666, 801.0756, -2105.0403, 47.1241, 0.0000, 36.9558, 346.2491, 500.0},
    {13666, 798.5490, -2103.7095, 49.0681, 0.0000, 35.2369, 339.3736, 500.0},
    {13666, 796.2156, -2101.8408, 50.9584, 0.0000, 33.5180, 329.9198, 500.0},
    {13666, 794.4280, -2100.1191, 52.3999, 0.0000, 31.7992, 323.9038, 500.0},
    {13666, 792.4989, -2097.6360, 54.1901, 0.0000, 30.0803, 317.0283, 500.0},
    {13666, 790.7393, -2094.7856, 55.8992, 0.0000, 27.5020, 310.1528, 500.0},
    {13666, 789.5783, -2092.5459, 57.0930, 0.0000, 24.9237, 304.9962, 500.0},
    {13666, 788.7061, -2090.5745, 58.0896, 0.0000, 21.4859, 299.8396, 500.0},
    {13666, 787.8504, -2087.5942, 59.1505, 0.0000, 18.0482, 292.1047, 500.0},
    {13666, 787.3958, -2084.9480, 59.9735, 0.0000, 14.6104, 283.5103, 500.0},
    {13666, 787.3300, -2081.5962, 60.7606, 0.0000, 12.0321, 278.3537, 500.0},
    {13666, 787.6715, -2068.2546, 62.1656, 0.0000, 0.0000, 98.8352, 500.0},
    {13666, 787.3824, -2078.1750, 61.4175, 0.0000, 9.4538, 276.6348, 500.0},
    {13666, 787.4939, -2074.7917, 61.8670, 0.0000, 6.0161, 276.6348, 500.0},
    {13666, 787.6382, -2071.4487, 62.1461, 0.0000, 2.5783, 276.6348, 500.0},
    // ----------------------------------------------------------------------
    {1655, -2239.2400, -1735.8900, 480.1100, 0.0000, 0.0000, 220.0000, 500.0}, //chilliad
    {3055, 230.6800, -1910.7400, 0.4500, 90.0000, 0.0000, 0.0000, 500.0}, //jetmax
    {3055, 222.8500, -1910.7500, 0.4600, 90.0000, 0.0000, 0.0000, 500.0} //jetmax
    // ----------------------------------------------------------------------


    /*
    {18450, 4215.1875, -4447.9473, 3844.4651, 0.0000, 90.0000, 90.0000, 500.0},
    {18450, 4223.7349, -4439.1870, 3844.3105, 0.0000, 90.0000, 180.0000, 500.0},
    {18450, 4215.1162, -4430.6255, 3844.3293, 0.0000, 90.0000, 270.0000, 500.0},
    {18450, 4207.5439, -4439.1465, 3833.4758, 0.0000, 90.0000, 0.0001, 500.0},
    {18450, 4207.5142, -4439.1631, 3753.6272, 0.0000, 90.0000, 0.0001, 500.0},
    {18450, 4215.1787, -4447.9023, 3764.8408, 0.0000, 90.0000, 90.0000, 500.0},
    {18450, 4223.7148, -4439.1934, 3764.4778, 0.0000, 90.0000, 180.0000, 500.0},
    {18450, 4215.1211, -4430.6455, 3764.4734, 0.0000, 90.0000, 270.0000, 500.0},
    {18450, 4214.2935, -4439.2441, 3724.2722, 0.0000, 0.0000, 0.0000, 500.0},
    {8357, 4100.7705, -4467.1587, 3873.5195, 0.0000, 0.0000, 270.0000, 500.0},
    {8357, 4101.4873, -4439.9258, 3873.4919, 0.0000, 0.0000, 270.0000, 500.0},
    {8357, 4100.8252, -4400.5898, 3873.3711, 0.0000, 0.0000, 270.0000, 500.0},
    {982, 4207.1245, -4459.4897, 3874.2097, 0.0000, 0.0000, 0.0000, 500.0},
    {982, 4207.1304, -4474.2207, 3874.1875, 0.0000, 0.0000, 0.0000, 500.0},
    {982, 4194.3101, -4487.0254, 3874.1875, 0.0000, 0.0000, 270.0000, 500.0},
    {982, 4168.7070, -4487.0176, 3874.1875, 0.0000, 0.0000, 270.0000, 500.0},
    {982, 4145.2217, -4479.9136, 3874.1875, 0.0000, 0.0000, 236.2501, 500.0},
    {982, 4134.4976, -4459.9609, 3874.1875, 0.0000, 0.0000, 180.0000, 500.0},
    {982, 4134.5840, -4434.4014, 3874.2097, 0.0000, 0.0000, 180.0000, 500.0},
    {982, 4134.4683, -4408.7339, 3874.0391, 0.0000, 0.0000, 180.0000, 500.0},
    {982, 4134.4912, -4393.6143, 3874.0391, 0.0000, 0.0000, 180.0000, 500.0},
    {982, 4147.2539, -4380.7104, 3874.0391, 0.0000, 0.0000, 90.0000, 500.0},
    {982, 4172.8818, -4380.6909, 3874.0391, 0.0000, 0.0000, 90.0000, 500.0},
    {982, 4194.2168, -4380.6797, 3874.0391, 0.0000, 0.0000, 90.0000, 500.0},
    {982, 4207.1138, -4393.4736, 3874.0391, 0.0000, 0.0000, 180.0000, 500.0},
    {982, 4207.0112, -4419.1509, 3874.2097, 0.0000, 0.0000, 180.0000, 500.0},
    {982, 4194.1802, -4431.9067, 3874.2097, 0.0000, 0.0000, 270.0000, 500.0},
    {982, 4194.3726, -4446.7969, 3874.2097, 0.0000, 0.0000, 270.0000, 500.0},
    {9241, 4224.3799, -4403.6328, 3887.2502, 0.0000, 0.0000, 0.0000, 500.0},
    {972, 4242.0000, -4409.6099, 3899.7083, 0.0000, 270.0000, 0.0000, 500.0},
    {972, 4235.0137, -4409.6133, 3899.7212, 0.0000, 270.0000, 0.0000, 500.0},
    {972, 4227.7754, -4409.6025, 3899.7341, 0.0000, 270.0000, 0.0000, 500.0},
    {972, 4220.5293, -4409.6567, 3899.7012, 0.0000, 270.0000, 0.0000, 500.0},
    {972, 4213.3960, -4409.6299, 3899.7439, 0.0000, 270.0000, 0.0000, 500.0},
    {972, 4231.6738, -4388.0615, 3899.6973, 0.0000, 270.0000, 90.0000, 500.0},
    {972, 4220.8213, -4388.0811, 3899.6912, 0.0000, 270.0000, 90.0000, 500.0},
    {975, 4208.4688, -4392.0688, 3887.1907, 0.0000, 0.0000, 90.0000, 500.0},
    {975, 4208.4639, -4400.8457, 3887.1907, 0.0000, 0.0000, 90.0000, 500.0},
    {975, 4208.4956, -4409.6416, 3887.1907, 0.0000, 0.0000, 90.0000, 500.0},
    {975, 4208.5078, -4414.9146, 3887.1907, 0.0000, 0.0000, 90.0000, 500.0},
    {975, 4212.9482, -4419.3633, 3887.1907, 0.0000, 0.0000, 180.0000, 500.0},
    {975, 4221.7085, -4419.3877, 3887.1907, 0.0000, 0.0000, 180.0000, 500.0},
    {975, 4230.5347, -4419.3833, 3887.1907, 0.0000, 0.0000, 180.0000, 500.0},
    {975, 4235.6475, -4419.3936, 3887.1907, 0.0000, 0.0000, 180.0000, 500.0},
    {975, 4239.9175, -4415.0796, 3887.1980, 0.0000, 0.0000, 270.0000, 500.0},
    {975, 4239.8901, -4406.2764, 3887.1980, 0.0000, 0.0000, 270.0000, 500.0},
    {975, 4239.8350, -4397.5483, 3887.1980, 0.0000, 0.0000, 270.0000, 500.0},
    {975, 4239.8413, -4392.2651, 3887.1980, 0.0000, 0.0000, 270.0000, 500.0},
    {975, 4235.5923, -4387.8359, 3887.1907, 0.0000, 0.0000, 0.0000, 500.0},
    {975, 4226.9805, -4387.8682, 3887.1907, 0.0000, 0.0000, 0.0000, 500.0},
    {975, 4218.2129, -4387.8564, 3887.1907, 0.0000, 0.0000, 0.0000, 500.0},
    {975, 4212.8643, -4387.8203, 3887.1907, 0.0000, 0.0000, 0.0000, 500.0},
    {8483, 4006.9385, -4460.7607, 3879.2627, 0.0000, 0.0000, 0.0000, 500.0},
    {3524, 4013.7087, -4468.4561, 3876.3892, 0.0000, 0.0000, 90.0000, 500.0},
    {3524, 4013.3184, -4454.8457, 3876.3892, 0.0000, 0.0000, 90.0000, 500.0},
    {14608, 4015.6191, -4472.8257, 3875.1025, 0.0000, 0.0000, 270.0000, 500.0},
    {14608, 4014.8140, -4451.1069, 3875.0776, 0.0000, 0.0000, 180.0000, 500.0}
    };
    */


    die mit /* */ sind die woher der error kommt help

    Hallo ich kann bei einem gamemod keine objecte rein machen


    xObject Streamer is drin geht auch alles aber wen ich eine neue map einfüge bum 1 error



    PHP
    C:\Dokumente und Einstellungen\Alexander\Desktop\Stunt\gamemodes\freeroam.pwn(649) : error 001: expected token: "}", but found "{"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    
    
    1 Error.


    was is da los?

    Habe hier etwas rauskoppiert aber bin zu doff zum einfügen



    if(strcmp(cmdtext, "/roadblock", true)==0 || strcmp(cmdtext, "/rb", true)==0)
    {
    if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
    if (PlayerInfo[playerid][pRoadblock] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can only deploy 1 roadblock at a time, type /rrb to remove your existing one.");
    if (roadblocktimer != 0) return SendClientMessage(playerid, COLOR_GREY, "Please wait before trying to spawn another roadblock!");
    new Float:X, Float:Y, Float:Z, Float:A;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, A);
    PlayerInfo[playerid][pRoadblock] = CreateObject(981, X, Y, Z, 0.0, 0.0, A+180);
    SetPlayerPos(playerid, X, Y, Z+4);
    GameTextForPlayer(playerid, "~w~Roadblock ~r~Placed", 5000, 5);
    SendClientMessage(playerid, COLOR_GREEN, "Roadblock deployed successfully, type /rrb or /roadunblock to remove it.");
    roadblocktimer = 1;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "HQ: A roadblock has been deployed by %s, it has been marked on the map by a checkpoint.", sendername);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
    SetPlayerCheckpoint(playerid, X, Y, Z-10, 1.0);
    SendClientMessage(i, TEAM_BLUE_COLOR, string);
    if (PlayerInfo[i][pRank] >= 2 && PlayerInfo[i][pMember] || PlayerInfo[i][pLeader] == 1)
    {
    SendClientMessage(i, COLOR_YELLOW, "You can remove all roadblocks by typing /rrball");
    }
    }
    }
    }
    SetTimer("ResetRoadblockTimer", 60000, false);
    return 1;
    }


    if(strcmp(cmdtext, "/roadunblock", true)==0 || strcmp(cmdtext, "/rrb", true)==0)
    {
    if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
    return 1;
    }
    if (PlayerInfo[playerid][pRank] < 2)
    {
    SendClientMessage(playerid, COLOR_GREY, "You have to be rank 5 to use this command!");
    return 1;
    }
    if (PlayerInfo[playerid][pRoadblock] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "You haven't deployed a roadblock!");
    return 1;
    }
    RemoveRoadblock(playerid);
    SendClientMessage(playerid, COLOR_GREEN, "Roadblock removed successfully.");
    return 1;
    }


    if(strcmp(cmdtext, "/roadunblockall", true)==0 || strcmp(cmdtext, "/rrball", true)==0)
    {
    if (PlayerInfo[playerid][pRank] >= 2 && PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 1)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pRoadblock] != 0)
    {
    RemoveRoadblock(i);
    }
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "HQ: All roadblocks in the area are to be disbanded immediately by order of %s.", sendername);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
    SendClientMessage(i, TEAM_BLUE_COLOR, string);
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "You have to be rank 5+ or a police leader to remove all roadblocks!");
    }
    return 1;
    }

    Moin also ich habe diese zeilen hier eingefüght


    if(strcmp(cmdtext,"/respawncars",true)==0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 4)
    for(new v=0; v<MAX_VEHICLES; v++) {
    SetVehicleToRespawn(v); }
    return 1;
    }


    geht auch alles aber das problem is wen jemand eine karre schrottet respawnt sich nicht und bei /respawncars kommts auch nicht und da ist noch nen fehler alle die mit dem auto fahren fliegen in die luft und das auto ist auch weg


    Kann jemand sagen wie ich das mache das die leute die auto fahren nicht respawnt werden und das die auto die kaputt gegangen sind respawnen???

    HeyHo


    Ich hab nen Problem undzwar ich geh in mta mappe was schönes geh auf Save wie immer


    und es ist im ordner nix o.o?


    ich kann es aber in mta noch laden hilfe


    MTA ging früher immer

    if(strcmp(cmdtext, "/roadblock", true)==0 || strcmp(cmdtext, "/rb", true)==0)
    {
    if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) return SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
    if (PlayerInfo[playerid][pRoadblock] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can only deploy 1 roadblock at a time, type /rrb to remove your existing one.");
    if (roadblocktimer != 0) return SendClientMessage(playerid, COLOR_GREY, "Please wait before trying to spawn another roadblock!");
    new Float:X, Float:Y, Float:Z, Float:A;
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, A);
    PlayerInfo[playerid][pRoadblock] = CreateObject(981, X, Y, Z, 0.0, 0.0, A+180);
    SetPlayerPos(playerid, X, Y, Z+4);
    GameTextForPlayer(playerid, "~w~Roadblock ~r~Placed", 5000, 5);
    SendClientMessage(playerid, COLOR_GREEN, "Roadblock deployed successfully, type /rrb or /roadunblock to remove it.");
    roadblocktimer = 1;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "HQ: A roadblock has been deployed by %s, it has been marked on the map by a checkpoint.", sendername);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
    SetPlayerCheckpoint(playerid, X, Y, Z-10, 1.0);
    SendClientMessage(i, TEAM_BLUE_COLOR, string);
    if (PlayerInfo[i][pRank] >= 2 && PlayerInfo[i][pMember] || PlayerInfo[i][pLeader] == 1)
    {
    SendClientMessage(i, COLOR_YELLOW, "You can remove all roadblocks by typing /rrball");
    }
    }
    }
    }
    SetTimer("ResetRoadblockTimer", 60000, false);
    return 1;
    }


    if(strcmp(cmdtext, "/roadunblock", true)==0 || strcmp(cmdtext, "/rrb", true)==0)
    {
    if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
    return 1;
    }
    if (PlayerInfo[playerid][pRank] < 2)
    {
    SendClientMessage(playerid, COLOR_GREY, "You have to be rank 5 to use this command!");
    return 1;
    }
    if (PlayerInfo[playerid][pRoadblock] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "You haven't deployed a roadblock!");
    return 1;
    }
    RemoveRoadblock(playerid);
    SendClientMessage(playerid, COLOR_GREEN, "Roadblock removed successfully.");
    return 1;
    }


    if(strcmp(cmdtext, "/roadunblockall", true)==0 || strcmp(cmdtext, "/rrball", true)==0)
    {
    if (PlayerInfo[playerid][pRank] >= 2 && PlayerInfo[playerid][pMember] || PlayerInfo[playerid][pLeader] == 1)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pRoadblock] != 0)
    {
    RemoveRoadblock(i);
    }
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "HQ: All roadblocks in the area are to be disbanded immediately by order of %s.", sendername);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    {
    SendClientMessage(i, TEAM_BLUE_COLOR, string);
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "You have to be rank 5+ or a police leader to remove all roadblocks!");
    }
    return 1;
    }



    .... 1ma kann man es erstellen dan gehts net mehr weg help :D

    Hallo was muss ich machn um einen /roadblock isn gta zu machen für die cops object id such ich noch raus aber man kann ja ein beispiel reinmachen pls pls pls danke danke danke....