Beiträge von Huawei

    Guten Abend zusammen,


    ich habe ein volgendes problem ich weiß nicht genau wo der fehler ist aber z.b ich habe ob entfernte objecte die werden nicht geladen der Tacho macht nicht das was er machen soll und die autos Laden nicht. Falls jmd. sich mit Autohaus system, Tacho, Tankstellen system auskennt bitte ich um hilfe. Ich habe nur die 3 sachen drin und die meinsten funktionieren nicht.


    OnPlayerConnect:

    public OnPlayerConnect(playerid)
    {
    //Spieler Daten
    Eingeloggt[playerid] = 0; SetPlayerColor(playerid,COLOR_GRAU); BigEar[playerid] = 0;
    AntiSpam[playerid] = 0; AntiSpamoff1[playerid] = 0; AntiSpamoff2[playerid] = 0;
    PlayerKey[playerid] = 0;
    ClearPlayerChat(playerid, 20);
    //Register/Login
    new string[124];
    format(string, sizeof(string), "/Accounts/%s.ini", SpielerName(playerid));
    if(dini_Exists(string))
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","{FFFFFF}Gib bitte dein Passwort ein.\nGib niemals dein Passwort weiter. Auch nicht an die Admins.","Einloggen","Beenden");
    SetPlayerPos(playerid, 1499.1999, -914.2000, 65.4000);
    SetPlayerCameraPos(playerid, 1485.6999, -888.7999, 77.3000);
    SetPlayerCameraLookAt(playerid, 1413.4000, -820.700, 65.6999);
    }
    else if(!dini_Exists(string))
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","{FFFFFF}Herzlich Willkommen es wurde kein Account unter diesem Namen gefunden.\nGib bitte dein gewünschtes Passwort ein.\nGib niemals dein Passwort weiter. Auch nicht an die Admins.","Register","Beenden");
    SetPlayerPos(playerid, 1499.1999, -914.2000, 65.4000);
    SetPlayerCameraPos(playerid, 1485.6999, -888.7999, 77.3000);
    SetPlayerCameraLookAt(playerid, 1413.4000, -820.700, 65.6999);
    }
    //For Schleife
    for(new x = 0; x < MaxVeh; x++)
    {
    PlayerHaveCar[playerid][x] = 0;
    }
    OnPlayerCarLogin(playerid);


    //Timer
    //TextDraw
    Speedo2[playerid] = TextDrawCreate(500.000000, 371.000000, " ");//Name und Zustand
    TextDrawBackgroundColor(Speedo2[playerid], 255);
    TextDrawFont(Speedo2[playerid], 1);
    TextDrawLetterSize(Speedo2[playerid], 0.300000, 0.80000);
    TextDrawColor(Speedo2[playerid], 0xFFFFFFFF);
    TextDrawSetOutline(Speedo2[playerid], 1);
    TextDrawSetProportional(Speedo2[playerid], 1);


    Speedo3[playerid] = TextDrawCreate(500.000000, 379.000000, "100");//Kmh
    TextDrawBackgroundColor(Speedo3[playerid], 255);
    TextDrawFont(Speedo3[playerid], 1);
    TextDrawLetterSize(Speedo3[playerid], 0.300000, 0.800000);
    TextDrawColor(Speedo3[playerid], -1);
    TextDrawSetOutline(Speedo3[playerid], 1);
    TextDrawSetProportional(Speedo3[playerid], 1);


    Speedo4[playerid] = TextDrawCreate(500.000000, 387.000000, "~y~Tank: ~w~60/60 ~y~L");
    TextDrawBackgroundColor(Speedo4[playerid], 255);
    TextDrawFont(Speedo4[playerid], 1);
    TextDrawLetterSize(Speedo4[playerid], 0.300000, 0.800000);
    TextDrawColor(Speedo4[playerid], -1);
    TextDrawSetOutline(Speedo4[playerid], 1);
    TextDrawSetProportional(Speedo4[playerid], 1);


    Speedo6[playerid]= TextDrawCreate(500.000000, 395.000000, "~y~Km-Stand: ~w~0.0");
    TextDrawBackgroundColor(Speedo6[playerid],255);
    TextDrawFont(Speedo6[playerid],1);
    TextDrawLetterSize(Speedo6[playerid],0.300000,0.800000);
    TextDrawColor(Speedo6[playerid],-1);
    TextDrawSetOutline(Speedo6[playerid],1);
    TextDrawSetProportional(Speedo6[playerid],1);
    //TextDraw
    TextDrawHideForPlayer(playerid, Speedo1);
    TextDrawHideForPlayer(playerid, Speedo2[playerid]);
    TextDrawHideForPlayer(playerid, Speedo3[playerid]);
    TextDrawHideForPlayer(playerid, Speedo4[playerid]);
    TextDrawHideForPlayer(playerid, Speedo6[playerid]);
    //Map Maker
    SetPlayerMapIcon(playerid, 1, 2131.4597,-1908.7961,13.4937, 56, 0, MAPICON_LOCAL); //Spawn Point
    SetPlayerMapIcon(playerid, 2, 1481.1143,-1768.5449,18.7958, 38, 0, MAPICON_LOCAL); //StadtHalle Point
    SetPlayerMapIcon(playerid, 3, 1551.3531,-1676.2098,15.8156, 30, 0, MAPICON_LOCAL); //Police Point
    SetPlayerMapIcon(playerid, 4, 2028.9546,-1418.8523,16.9922, 22, 0, MAPICON_LOCAL); //Krankenhaus Point 1
    SetPlayerMapIcon(playerid, 5, 1172.5039,-1323.4818,15.4033, 22, 0, MAPICON_LOCAL); //Krankenhaus Point 2
    SetPlayerMapIcon(playerid, 6, 1461.7225,-1010.8283,26.8438, 52, 0, MAPICON_LOCAL); //Bank Point
    SetPlayerMapIcon(playerid, 7, 2129.2537,-1143.0197,24.9341, 55, 0, MAPICON_LOCAL); //AutoHaus Point 1
    SetPlayerMapIcon(playerid, 8, 543.4884,-1285.1152,17.2422, 55, 0, MAPICON_LOCAL); //AutoHaus Point 2
    SetPlayerMapIcon(playerid, 9, 1835.0851,-1682.8748,13.4045, 48, 0, MAPICON_LOCAL); //Disco Point
    SetPlayerMapIcon(playerid, 10, 2244.6494,-1665.2719,15.4766, 45, 0, MAPICON_LOCAL); //Binco Point
    SetPlayerMapIcon(playerid, 11, 1458.3680,-1136.6757,23.9710, 45, 0, MAPICON_LOCAL); //Zipp Point
    SetPlayerMapIcon(playerid, 12, 1368.6710,-1279.2714,13.5469, 6, 0, MAPICON_LOCAL); //WaffenLaden Point
    SetPlayerMapIcon(playerid, 13, 1940.2069,-1773.1227,13.3906, 42, 0, MAPICON_LOCAL); //Tanke Point 1
    SetPlayerMapIcon(playerid, 14, 1003.0078,-938.5502,42.1797, 42, 0, MAPICON_LOCAL); //Tanke Point 2
    SetPlayerMapIcon(playerid, 15, 2066.3254,-1831.0411,13.5469, 63, 0, MAPICON_LOCAL); //Pay&Spray Point 1
    SetPlayerMapIcon(playerid, 16, 487.7926,-1739.1598,11.1434, 63, 0, MAPICON_LOCAL); //Pay&Spray Point 2
    SetPlayerMapIcon(playerid, 17, 1024.6903,-1025.2769,32.1016, 63, 0, MAPICON_LOCAL); //Pay&Spray Point 3
    SetPlayerMapIcon(playerid, 18, 2103.5151,-1809.2089,13.5547, 29, 0, MAPICON_LOCAL); //Pizza Point
    SetPlayerMapIcon(playerid, 19, 813.0845,-1616.5046,13.5547, 10, 0, MAPICON_LOCAL); //BurgerShot Point 1
    SetPlayerMapIcon(playerid, 20, 1199.3560,-918.8506,43.1172, 10, 0, MAPICON_LOCAL); //BurgerShot Point 2
    SetPlayerMapIcon(playerid, 21, 927.5145,-1353.0424,13.3438, 14, 0, MAPICON_LOCAL); //CluckingBell Point 1
    SetPlayerMapIcon(playerid, 22, 2381.9160,-1906.6046,13.5469, 14, 0, MAPICON_LOCAL); //CluckingBell Point 2
    SetPlayerMapIcon(playerid, 23, 2419.6785,-1511.9755,24.0068, 14, 0, MAPICON_LOCAL); //CluckingBell Point 3
    SetPlayerMapIcon(playerid, 23, 2126.2156,-1773.6284,13.5666, 25, 0, MAPICON_LOCAL); //Casino
    // Skin Auswahl
    pTextSkinChoose[playerid][0] = CreatePlayerTextDraw(playerid, 270.000000, 350.000000, "~<~");
    PlayerTextDrawBackgroundColor(playerid, pTextSkinChoose[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextSkinChoose[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextSkinChoose[playerid][0], 1.200000, 3.000000);
    PlayerTextDrawColor(playerid, pTextSkinChoose[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextSkinChoose[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid, pTextSkinChoose[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, pTextSkinChoose[playerid][0], 1);
    PlayerTextDrawTextSize(playerid, pTextSkinChoose[playerid][0], 288.000000, 20.000000);
    PlayerTextDrawSetSelectable(playerid, pTextSkinChoose[playerid][0], true);


    pTextSkinChoose[playerid][1] = CreatePlayerTextDraw(playerid, 362.000000, 350.000000, "~>~");
    PlayerTextDrawBackgroundColor(playerid, pTextSkinChoose[playerid][1], 255);
    PlayerTextDrawFont(playerid, pTextSkinChoose[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid, pTextSkinChoose[playerid][1], 1.190000, 3.000000);
    PlayerTextDrawColor(playerid, pTextSkinChoose[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextSkinChoose[playerid][1], 0);
    PlayerTextDrawSetProportional(playerid, pTextSkinChoose[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid, pTextSkinChoose[playerid][1], 1);
    PlayerTextDrawTextSize(playerid, pTextSkinChoose[playerid][1], 382.000000, 20.000000);
    PlayerTextDrawSetSelectable(playerid, pTextSkinChoose[playerid][1], true);


    pTextSkinChoose[playerid][2] = CreatePlayerTextDraw(playerid, 301.000000, 355.000000, "Spawn");
    PlayerTextDrawBackgroundColor(playerid, pTextSkinChoose[playerid][2], 255);
    PlayerTextDrawFont(playerid, pTextSkinChoose[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid, pTextSkinChoose[playerid][2], 0.500000, 2.000000);
    PlayerTextDrawColor(playerid, pTextSkinChoose[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid, pTextSkinChoose[playerid][2], 1);
    PlayerTextDrawSetProportional(playerid, pTextSkinChoose[playerid][2], 1);
    PlayerTextDrawTextSize(playerid, pTextSkinChoose[playerid][2], 352.000000, 20.000000);
    PlayerTextDrawSetSelectable(playerid, pTextSkinChoose[playerid][2], true);
    //Paket Lieferrant
    RemoveBuildingForPlayer(playerid, 3744, 2193.2578, -2286.2891, 14.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3744, 2183.1719, -2237.2734, 14.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 5305, 2198.8516, -2213.9219, 14.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 3747, 2234.3906, -2244.8281, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3747, 2226.9688, -2252.1406, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3747, 2219.4219, -2259.5234, 14.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 3747, 2212.0938, -2267.0703, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3747, 2204.6328, -2274.4141, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3578, 2165.0703, -2288.9688, 13.2578, 0.25);
    RemoveBuildingForPlayer(playerid, 3574, 2193.2578, -2286.2891, 14.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3569, 2204.6328, -2274.4141, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3569, 2212.0938, -2267.0703, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3569, 2219.4219, -2259.5234, 14.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 3578, 2194.4766, -2242.8750, 13.2578, 0.25);
    RemoveBuildingForPlayer(playerid, 3569, 2226.9688, -2252.1406, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3569, 2234.3906, -2244.8281, 14.9375, 0.25);
    RemoveBuildingForPlayer(playerid, 3574, 2183.1719, -2237.2734, 14.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3578, 2235.1641, -2231.8516, 13.2578, 0.25);
    RemoveBuildingForPlayer(playerid, 5244, 2198.8516, -2213.9219, 14.8828, 0.25);
    //Andere bushalten und unnötig verbugte
    RemoveBuildingForPlayer(playerid, 1283, 1345.7656, -1740.6172, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1335.1953, -1731.7813, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1357.5156, -1732.9375, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1376.5156, -1731.8516, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1414.4141, -1731.4297, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, 1466.4844, -1598.0938, 14.1094, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, 1498.0547, -1598.0938, 14.1094, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1693.9688, 14.1094, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1673.7109, 14.1094, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1582.6719, -1733.1328, 15.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 954.6719, -1149.8594, 25.8359, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1072.2578, -1140.1953, 25.7891, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1161.5859, -1281.3594, 15.7109, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1216.3203, -1281.4141, 15.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1171.6328, -1149.8828, 25.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1269.5469, -1280.3203, 15.7109, 0.25);
    RemoveBuildingForPlayer(playerid, 1283, 1252.6094, -1140.2266, 25.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 1297, 1158.0625, -970.6250, 44.3594, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2875.8984, 1156.2188, 15.2500, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2625.8203, 1316.6484, 7.7031, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2594.9375, 1325.6953, 7.7031, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2437.0781, 1368.7266, 7.7109, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2324.2109, 1375.3281, 7.6953, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2296.4531, 1335.8828, 7.6953, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2378.8359, 792.7969, 35.7266, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2664.1797, 713.7969, 28.5000, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2624.2109, 702.9922, 28.5000, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, -2292.9844, 557.2578, 35.0703, 0.25);
    RemoveBuildingForPlayer(playerid, 1229, -2394.5938, 743.6484, 35.7266, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2580.5781, 2122.0000, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2447.2891, 2061.7578, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2418.7656, 2285.1641, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2449.6406, 2241.3672, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2083.0625, 2462.2500, 10.7266, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2391.9844, 2422.1797, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1084.5313, 1200.0078, 11.0547, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1324.5938, 1186.6641, 11.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1016.4688, 1411.6797, 11.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1603.6719, 1124.6641, 11.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1718.6016, 1363.2109, 11.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1713.9453, 1377.9453, 11.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1721.1328, 1422.0547, 10.8750, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1722.8828, 1529.3516, 11.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1732.7188, 1479.7500, 11.0469, 0.25);
    RemoveBuildingForPlayer(playerid, 8840, 2162.7891, 1401.4141, 14.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1974.5000, 627.2266, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1893.6719, 639.2500, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2020.6641, 665.7969, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1885.1875, 767.1641, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1974.8750, 779.2813, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2019.9141, 747.1797, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2114.7031, 679.3438, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 2114.8594, 759.2656, 11.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1918.7500, 2314.3984, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1503.3516, 2304.5000, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1558.3828, 2345.5391, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1698.5313, 1965.0625, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1636.3750, 2182.3672, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1721.2656, 2247.5391, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1073.3750, 2062.0781, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1335.3125, 2061.4922, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1501.7813, 2061.7734, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1558.1719, 2200.3438, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1918.8672, 2115.7188, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1894.5313, 2181.9766, 11.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 1257, 1378.7578, 1920.0391, 11.0938, 0.25);
    //Ballas
    RemoveBuildingForPlayer(playerid, 3562, 2232.3984, -1464.7969, 25.6484, 0.25);
    RemoveBuildingForPlayer(playerid, 3562, 2247.5313, -1464.7969, 25.5469, 0.25);
    RemoveBuildingForPlayer(playerid, 3562, 2263.7188, -1464.7969, 25.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 3562, 2243.7109, -1401.7813, 25.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 3562, 2230.6094, -1401.7813, 25.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 3562, 2256.6641, -1401.7813, 25.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 713, 2275.3906, -1438.6641, 22.5547, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 2229.0234, -1411.6406, 22.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 1264, 2224.9844, -1408.9063, 23.3984, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 2265.6172, -1410.3359, 21.7734, 0.25);
    RemoveBuildingForPlayer(playerid, 1221, 2253.2188, -1409.8906, 23.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 1264, 2224.1250, -1408.8359, 23.3984, 0.25);
    RemoveBuildingForPlayer(playerid, 1221, 2226.8516, -1404.7422, 23.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2225.8516, -1394.6328, 23.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 2224.8594, -1393.9609, 23.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 2222.8750, -1396.1250, 23.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2223.8750, -1396.7969, 23.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 1221, 2223.4688, -1396.0938, 23.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 3582, 2230.6094, -1401.7813, 25.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 1224, 2225.9844, -1396.6797, 23.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 1221, 2227.9531, -1396.8516, 23.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 3582, 2243.7109, -1401.7813, 25.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 2237.5313, -1395.4844, 23.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 3582, 2256.6641, -1401.7813, 25.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2274.5781, -1398.4922, 22.5078, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 2222.9609, -1469.7422, 23.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2223.6328, -1468.7500, 23.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 2225.1328, -1471.7266, 23.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 1221, 2225.0938, -1471.1328, 23.2734, 0.25);
    RemoveBuildingForPlayer(playerid, 1224, 2225.6797, -1468.6172, 23.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2225.7969, -1470.7266, 23.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 1221, 2225.8516, -1466.6484, 23.2734, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 2239.5703, -1468.8047, 22.6875, 0.25);
    RemoveBuildingForPlayer(playerid, 3582, 2232.3984, -1464.7969, 25.6484, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 2241.8906, -1458.9297, 22.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 3582, 2247.5313, -1464.7969, 25.5469, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2267.4688, -1470.1953, 21.7188, 0.25);
    RemoveBuildingForPlayer(playerid, 3582, 2263.7188, -1464.7969, 25.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 1221, 2251.2891, -1461.8281, 23.6328, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 2256.6563, -1456.8984, 22.8594, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2255.9844, -1457.9063, 22.8594, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 2227.2031, -1444.5000, 22.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 5682, 2241.4297, -1433.6719, 31.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 2226.5156, -1426.7656, 23.1172, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 2243.5703, -1423.6094, 22.9609, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2256.4063, -1444.5078, 23.1016, 0.25);
    RemoveBuildingForPlayer(playerid, 3593, 2261.7734, -1441.1016, 23.5000, 0.25);
    RemoveBuildingForPlayer(playerid, 3593, 2265.0781, -1424.4766, 23.5000, 0.25);
    //GroveStreet
    RemoveBuildingForPlayer(playerid, 762, 2446.5547, -1681.0703, 12.3828, 0.25);
    //Kiez
    RemoveBuildingForPlayer(playerid, 5551, 2140.5156, -1735.1406, 15.8906, 0.25);
    RemoveBuildingForPlayer(playerid, 5410, 2140.5156, -1735.1406, 15.8906, 0.25);
    //Spawn
    RemoveBuildingForPlayer(playerid, 5207, 2167.0391, -1925.2031, 15.8281, 0.25);
    RemoveBuildingForPlayer(playerid, 5208, 2115.0000, -1921.5234, 15.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 3744, 2159.8281, -1930.6328, 15.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2040.2656, -1942.8906, 11.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2065.0391, -1942.8906, 12.7969, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 1990.8672, -1942.9141, 11.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 2118.2891, -1939.3984, 16.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2114.5547, -1928.1875, 5.0313, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2113.3984, -1925.0391, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2115.6719, -1922.7656, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2123.3594, -1928.0703, 6.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 3574, 2159.8281, -1930.6328, 15.0781, 0.25);
    RemoveBuildingForPlayer(playerid, 5181, 2167.0391, -1925.2031, 15.8281, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2026.7500, -1922.3125, 12.7578, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2071.9844, -1922.1250, 11.6016, 0.25);
    RemoveBuildingForPlayer(playerid, 5182, 2115.0000, -1921.5234, 15.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2122.6563, -1916.7891, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2116.9297, -1916.0781, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2091.3594, -1910.4844, 12.5703, 0.25);
    RemoveBuildingForPlayer(playerid, 5231, 2085.2813, -1909.7109, 23.0000, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2121.5078, -1909.5313, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2110.2734, -1906.5859, 5.0313, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2175.7734, -1910.5781, 12.7031, 0.25);
    RemoveBuildingForPlayer(playerid, 1307, 2139.1641, -1904.2734, 12.7656, 0.25);
    //Rathaus
    RemoveBuildingForPlayer(playerid, 713, 1407.1953, -1749.3125, 13.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
    return 1;
    }


    Und ich habe noch machen mal so ein problem wen ich Compiler benutz geht es oft und manchmal steht der Compiler layrar oder so funtioniert nicht merh.


    Ich BITTTE um hilfe wenn jmd. mal zeit und lust hast könnte sich das ja mal über teamviewer oder sonntiges angucken.




    Mfg.

    Guten Tag
    ich haben ein problem mit dem Fahrzeug system und zwar meine Tuning Teile laden nicht und
    wenn der spieler den server velässt löscht der das auto nicht und dann wenn ich mich weider einlogge erstellt der noch mal ein fahrzeug.


    Code:Wo das Fahrzeug geladen wird erstellt und so weiter.
    Danke im vorraus an alle die drauf antoworten.



    public OnPlayerCarLogin(playerid)
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(!PlayerHaveCar[playerid][x])
    {
    new string2[128];
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "/Autos/%s_Car_%d.ini", playername2,x);
    new File: UserFile = fopen(string2, io_read);
    if (UserFile)
    {
    PlayerHaveCar[playerid][x] = 1;
    new key[256] , val[256];
    new Data[256];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {
    key = ini_GetKey( Data );
    if( strcmp( key , "CarId" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarId] = strval( val ); }
    if( strcmp( key , "CarModel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarModel] = strval( val ); }
    if( strcmp( key , "Car_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][Car_x] = floatstr( val ); }
    if( strcmp( key , "Car_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][Car_y] = floatstr( val ); }
    if( strcmp( key , "Car_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][Car_z] = floatstr( val ); }
    if( strcmp( key , "Car_R" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][Car_R] = floatstr( val ); }
    if( strcmp( key , "CarNitro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarNitro] = strval( val ); }
    if( strcmp( key , "CarHyd" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHyd] = strval( val ); }
    if( strcmp( key , "CarWheel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarWheel] = strval( val ); }
    if( strcmp( key , "CarAusp" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarAusp] = strval( val ); }
    if( strcmp( key , "CarSideL" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideL] = strval( val ); }
    if( strcmp( key , "CarSideR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideR] = strval( val ); }
    if( strcmp( key , "CarFB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarFB] = strval( val ); }
    if( strcmp( key , "CarRB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRB] = strval( val ); }
    if( strcmp( key , "CarSpoiler" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSpoiler] = strval( val ); }
    if( strcmp( key , "CarRoof" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRoof] = strval( val ); }
    if( strcmp( key , "CarHood" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHood] = strval( val ); }
    if( strcmp( key , "CarVents" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarVents] = strval( val ); }
    if( strcmp( key , "CarLamps" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarLamps] = strval( val ); }
    if( strcmp( key , "CarPJ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPJ] = strval( val ); }
    if( strcmp( key , "CarC1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC1] = strval( val ); }
    if( strcmp( key , "CarC2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC2] = strval( val ); }
    if( strcmp( key , "Preis" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPreis] = strval( val ); }
    }
    fclose(UserFile);
    PlayerCarSpawn(playerid,x);
    }
    }
    }
    }


    public PlayerCarSpawn(playerid,Slot)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerHaveCar[playerid][Slot])
    {
    PlayerCar[playerid][Slot][CarId] = CreateVehicle(PlayerCar[playerid][Slot][CarModel],PlayerCar[playerid][Slot][Car_x],PlayerCar[playerid][Slot][Car_y],PlayerCar[playerid][Slot][Car_z],PlayerCar[playerid][Slot][Car_R],PlayerCar[playerid][Slot][CarC1],PlayerCar[playerid][Slot][CarC2],-1);
    ChangeVehicleColor(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarC1],PlayerCar[playerid][Slot][CarC2]);
    if(PlayerCar[playerid][Slot][CarPJ] >= 0) {ChangeVehiclePaintjob(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarPJ]);}
    if(PlayerCar[playerid][Slot][CarNitro] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarNitro]);}
    if(PlayerCar[playerid][Slot][CarHyd] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarHyd]);}
    if(PlayerCar[playerid][Slot][CarWheel] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarWheel]);}
    if(PlayerCar[playerid][Slot][CarAusp] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarAusp]);}
    if(PlayerCar[playerid][Slot][CarSideL] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSideL]);}
    if(PlayerCar[playerid][Slot][CarSideR] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSideR]);}
    if(PlayerCar[playerid][Slot][CarFB] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarFB]);}
    if(PlayerCar[playerid][Slot][CarRB] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarRB]);}
    if(PlayerCar[playerid][Slot][CarSpoiler] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSpoiler]);}
    if(PlayerCar[playerid][Slot][CarRoof] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarRoof]);}
    if(PlayerCar[playerid][Slot][CarHood] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarHood]);}
    if(PlayerCar[playerid][Slot][CarVents] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarVents]);}
    if(PlayerCar[playerid][Slot][CarLamps] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarLamps]);}


    new carid = PlayerCar[playerid][Slot][CarId];
    new kennzeichen[32];
    new LocationZone[MAX_ZONE_NAME];
    GetPlayerCarZone(PlayerCar[playerid][Slot][CarId], LocationZone, MAX_ZONE_NAME);
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof playername);
    format(kennzeichen,32, "{000000}%s %c %d", LocationZone, playername[0], carid);
    SetVehicleNumberPlate(carid, kennzeichen);
    }
    }
    }


    public OnPlayerCarUpdate(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new x=0;x<MaxVeh;x++)
    {
    if(PlayerHaveCar[playerid][x])
    {
    DestroyVehicle(PlayerCar[playerid][x][CarId]);


    new string3[84];
    new playername3[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername3, sizeof(playername3));
    format(string3, sizeof(string3), "/Autos/%s_Car_%d.ini", playername3, x);
    new File: hFile = fopen(string3, io_write);
    if (hFile)
    {
    new var[32];
    format(var, 32, "CarId=%d\n",PlayerCar[playerid][x][CarId]);fwrite(hFile, var);
    format(var, 32, "CarModel=%d\n",PlayerCar[playerid][x][CarModel]);fwrite(hFile, var);
    format(var, 32, "Car_x=%.3f\n",PlayerCar[playerid][x][Car_x]);fwrite(hFile, var);
    format(var, 32, "Car_y=%.3f\n",PlayerCar[playerid][x][Car_y]);fwrite(hFile, var);
    format(var, 32, "Car_z=%.3f\n",PlayerCar[playerid][x][Car_z]);fwrite(hFile, var);
    format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][x][Car_R]);fwrite(hFile, var);
    format(var, 32, "CarNitro=%d\n",PlayerCar[playerid][x][CarNitro]);fwrite(hFile, var);
    format(var, 32, "CarHyd=%d\n",PlayerCar[playerid][x][CarHyd]);fwrite(hFile, var);
    format(var, 32, "CarWheel=%d\n",PlayerCar[playerid][x][CarWheel]);fwrite(hFile, var);
    format(var, 32, "CarAusp=%d\n",PlayerCar[playerid][x][CarAusp]);fwrite(hFile, var);
    format(var, 32, "CarSideL=%d\n",PlayerCar[playerid][x][CarSideL]);fwrite(hFile, var);
    format(var, 32, "CarSideR=%d\n",PlayerCar[playerid][x][CarSideR]);fwrite(hFile, var);
    format(var, 32, "CarFB=%d\n",PlayerCar[playerid][x][CarFB]);fwrite(hFile, var);
    format(var, 32, "CarRB=%d\n",PlayerCar[playerid][x][CarRB]);fwrite(hFile, var);
    format(var, 32, "CarSpoiler=%d\n",PlayerCar[playerid][x][CarSpoiler]);fwrite(hFile, var);
    format(var, 32, "CarRoof=%d\n",PlayerCar[playerid][x][CarRoof]);fwrite(hFile, var);
    format(var, 32, "CarHood=%d\n",PlayerCar[playerid][x][CarHood]);fwrite(hFile, var);
    format(var, 32, "CarVents=%d\n",PlayerCar[playerid][x][CarVents]);fwrite(hFile, var);
    format(var, 32, "CarLamps=%d\n",PlayerCar[playerid][x][CarLamps]);fwrite(hFile, var);
    format(var, 32, "CarPJ=%d\n",PlayerCar[playerid][x][CarPJ]);fwrite(hFile, var);
    format(var, 32, "CarC1=%d\n",PlayerCar[playerid][x][CarC1]);fwrite(hFile, var);
    format(var, 32, "CarC2=%d\n",PlayerCar[playerid][x][CarC2]);fwrite(hFile, var);
    format(var, 32, "Preis=%d\n",PlayerCar[playerid][x][CarPreis]);fwrite(hFile, var);
    fclose(hFile);
    }
    }
    }
    }
    }


    //onvehicle spawn
    for(new playerid = 0;playerid <MAX_PLAYERS;playerid++)
    {
    for(new x=0;x<MaxVeh;x++)
    {
    if(IsPlayerConnected(playerid) && PlayerHaveCar[playerid][x])
    {
    if(vehicleid == PlayerCar[playerid][x][CarId])
    {
    SetTimerEx("CarTuning", 700, 0, "ii", playerid, x);
    }
    }
    }
    }
    //Cartuning timer
    public CarTuning(playerid,slot)
    {
    ChangeVehicleColor(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarC1],PlayerCar[playerid][slot][CarC2]);
    if(PlayerCar[playerid][slot][CarPJ] >= 0) {ChangeVehiclePaintjob(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarPJ]);}
    if(PlayerCar[playerid][slot][CarNitro] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarNitro]);}
    if(PlayerCar[playerid][slot][CarHyd] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarHyd]);}
    if(PlayerCar[playerid][slot][CarWheel] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarWheel]);}
    if(PlayerCar[playerid][slot][CarAusp] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarAusp]);}
    if(PlayerCar[playerid][slot][CarSideL] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarSideL]);}
    if(PlayerCar[playerid][slot][CarSideR] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarSideR]);}
    if(PlayerCar[playerid][slot][CarFB] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarFB]);}
    if(PlayerCar[playerid][slot][CarRB] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarRB]);}
    if(PlayerCar[playerid][slot][CarSpoiler] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarSpoiler]);}
    if(PlayerCar[playerid][slot][CarRoof] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarRoof]);}
    if(PlayerCar[playerid][slot][CarHood] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarHood]);}
    if(PlayerCar[playerid][slot][CarVents] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarVents]);}
    if(PlayerCar[playerid][slot][CarLamps] != 0) {AddVehicleComponent(PlayerCar[playerid][slot][CarId],PlayerCar[playerid][slot][CarLamps]);}
    }


    //Onvehicledeath --- Wenn das auto kaputt geht gehen auch die tuning teile weg ????????????
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
    for(new x = 0; x < MaxVeh; x++)
    {
    if(IsPlayerConnected(playerid) && PlayerHaveCar[playerid][x])
    {
    if(vehicleid == PlayerCar[playerid][x][CarId])
    {
    DestroyVehicle(PlayerCar[playerid][x][CarId]);
    PlayerCarSpawn(playerid,x);
    }
    }
    }
    }




    Mfg.

    Das hilft mir leider nicht weiter.


    Ich suche frage nach einen nummerschild


    wo als erstet die Statd abkürzung steht dann der anfangs buchstabe des spielers und vehicle model,


    ich habe das jetzt so aber ich will es wie ich es da oben geschieben hab.



    new cityn[10];
    new Float:xx, Float:yy, Float:zz;
    GetVehiclePos(vehicleid, xx, yy, zz);
    if((xx > -992.5172 && xx < 4000.0000) && (yy < 528.0000 && yy > -4000.0000)) //Los Santos
    {
    cityn = "LS";
    }
    if((xx > -4000.0000 && xx< -992.5172) && (yy < 4000.0000 && yy > -4000.0000)) //San Fierro
    {
    cityn = "SF";
    }
    if((xx > -992.5172 && xx< 4000.0000) && (yy < 4000.0000 && yy > 528.0000)) //Las Venturas
    {
    cityn = "LV";
    }
    new string[20], buchstaben[26];
    new kennzeichen[MAX_VEHICLES];
    format(buchstaben, sizeof(buchstaben), "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
    kennzeichen[vehicleid] = random(98)+1;
    format(string, sizeof(string), "%s %s%s %d",cityn, buchstaben[random(sizeof(buchstaben))], buchstaben[random(sizeof(buchstaben))], kennzeichen[vehicleid]);


    SetVehicleNumberPlate(vehicleid, string);


    if(strcmp(cmd, "/money", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /money [Name oder ID] [Betrag]");
    return 1;
    }
    new playa;
    new money;
    playa = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    money = strval(tmp);
    if(Spieler[playerid][Adminlevel] >= 4)
    {
    if(IsPlayerConnected(playa))
    {
    if(playa != INVALID_PLAYER_ID)
    {
    ResetPlayerMoney(playa);
    ConsumingMoney[playa] = 1;
    PlayerMoney[playa] += money;
    }
    }
    }
    return 1;
    }
    return 1;
    }

    Es fuktioniert immer noch nicht..





    • //new
      new PlayerMoney[MAX_PLAYERS];
      new CurrentMoney[MAX_PLAYERS];
      new ConsumingMoney[MAX_PLAYERS];
    • //Enum Spieler Daten
    • BarGeld,
    • //Das habe ich unter OnPlayerUpdate
    • Spieler[playerid][BarGeld] = GetPlayerMoney(playerid);
    • //Dialog_register Wenn er sich registiert
    • dini_IntSet(path, "BarGeld",5000);
    • GivePlayerMoney(playerid, 5000);
    • Spieler[playerid][BarGeld] = 5000);
    • //Dialog_Login Wenn er sich einloggt
    • ResetPlayerMoney(playerid);
    • ConsumingMoney[playerid] = 1;
    • PlayerMoney[playerid] += Spieler[playerid][BarGeld];
    • CurrentMoney[playerid] = Spieler[playerid][BarGeld];
    • PlayerMoney[playerid] = Spieler[playerid][BarGeld];
    • //Geld Timer
    • public MoneyTimer()
    • {
    • new i, j;
    • for (i = 0, j = MAX_PLAYERS; i < j; i++)
    • {
    • if(GetPlayerMoney(i) > PlayerMoney[i])
    • {
    • new moneydif;
    • moneydif = GetPlayerMoney(i)-PlayerMoney[i];
    • GivePlayerMoney(i, - moneydif);
    • }
    • else if(GetPlayerMoney(i) < PlayerMoney[i])
    • {
    • if(IsPlayerInAnyVehicle(i))
    • {
    • if(GetPlayerInterior(i) == 1 || GetPlayerInterior(i) == 3)
    • {
    • PlayerMoney[i] = GetPlayerMoney(i);
    • }
    • else
    • {
    • new moneydif;
    • moneydif = PlayerMoney[i]-GetPlayerMoney(i);
    • GivePlayerMoney(i, moneydif);
    • }
    • }
    • else
    • {
    • new moneydif;
    • moneydif = PlayerMoney[i]-GetPlayerMoney(i);
    • GivePlayerMoney(i, moneydif);
    • }
    • }
    • }
    • }

    Guten Nachmittag alle zusammen,


    Ich habe ein Problem mit mein Geld System und zwar wenn der Spieler sich registriert bekommt er kein Geld voher wo ich auf Server Geld hatte hat alles funktioniert nur jetzt der fehler bei register bitte um hilfe :)


    //Enum Spieler Daten
    BarGeld,



    //Das habe ich unter OnPlayerUpdate
    Spieler[playerid][BarGeld] = GetPlayerMoney(playerid);


    //Dialog_register Wenn er sich registiert
    dini_IntSet(path, "BarGeld",Spieler[playerid][Gestorben] = 5000);
    Spieler[playerid][BarGeld] = GetPlayerMoney(playerid);



    //Dialog_Login Wenn er sich einloggt
    ResetPlayerMoney(playerid);
    ConsumingMoney[playerid] = 1;
    PlayerMoney[playerid] += Spieler[playerid][BarGeld];
    CurrentMoney[playerid] = Spieler[playerid][BarGeld];
    PlayerMoney[playerid] = Spieler[playerid][BarGeld];


    //Geld Timer


    public MoneyTimer()
    {
    new i, j;
    for (i = 0, j = MAX_PLAYERS; i < j; i++)
    {
    if(GetPlayerMoney(i) > PlayerMoney[i])
    {
    new moneydif;
    moneydif = GetPlayerMoney(i)-PlayerMoney[i];
    GivePlayerMoney(i, - moneydif);
    }
    else if(GetPlayerMoney(i) < PlayerMoney[i])
    {
    if(IsPlayerInAnyVehicle(i))
    {
    if(GetPlayerInterior(i) == 1 || GetPlayerInterior(i) == 3)
    {
    PlayerMoney[i] = GetPlayerMoney(i);
    }
    else
    {
    new moneydif;
    moneydif = PlayerMoney[i]-GetPlayerMoney(i);
    GivePlayerMoney(i, moneydif);
    }
    }
    else
    {
    new moneydif;
    moneydif = PlayerMoney[i]-GetPlayerMoney(i);
    GivePlayerMoney(i, moneydif);
    }
    }
    }
    }



    Ich hoffe mir kann jmd. helfen, ich sag schon mal danke im vorraus

    Guten abend,


    Ich hab ein problem und zwar wenn der Spieler stirbt soll ein pickup auftauchen mit einen 3DTextLabel wird ja auch alles gemacht wird angezeigt schön und gut
    das problem ist wenn der spieler aus dem Krankenhaus raus kommt also spawnt wird ihn am spawn der 3DTextLabel von fahrrad verleih nicht angezeigt obwohl es woher angezeigt hat wo der spieler noch nicht gestorben ist


    Code:




    Wenn er ins krankenhaus kommt spawn


    if(Spieler[playerid][Krankenhaus] == 1)
    {
    new string[256],hours,minutes;
    gettime(hours, minutes);
    TotenKopf[playerid] = CreatePickup(1254,1, Spieler[playerid][Pos_x],Spieler[playerid][Pos_y],Spieler[playerid][Pos_z]);
    format(string, sizeof(string), "Gestorben\n%s\n%d:%d", SpielerName(playerid),hours,minutes);
    TotenKopfLabel[playerid] = Create3DTextLabel(string,COLOR_WEISS, Spieler[playerid][Pos_x],Spieler[playerid][Pos_y],Spieler[playerid][Pos_z], 20, 0, 1);
    SetTimer("KHtimer",180000,1);
    FreezePlayer(playerid);
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid,2040.5,-1406.0,23.200);
    SetPlayerCameraPos(playerid, 2003.300, -1474.800, 46.4000);
    SetPlayerCameraLookAt(playerid, 2038.5000, -1405.3000, 20.2999);
    SetPlayerInterior(playerid, 0);
    ClearPlayerChat(playerid,20);
    SendClientMessage(playerid,COLOR_WEISS,"Du bist gestorben und wirst behandelt. Das dauert 3 Minuten.");
    SendClientMessage(playerid,COLOR_WEISS,"Wenn du Offline gehst wird die Zeit wieder auf 3 Minuten gesetzt.");
    GameTextForPlayer(playerid, "~y~Krankenhaus~n~~g~3 Minuten", 4000, 1);
    }


    timer
    public KHtimer()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    Spieler[i][Krankenhaus] = 0;
    SpawnPlayerEx(i);
    ClearPlayerChat(i,20);
    SendClientMessage(i,COLOR_GRUEN,"Du wurdest behandelt.");
    DestroyPickup(TotenKopf[i]);
    Delete3DTextLabel(TotenKopfLabel[i]);
    }
    return 1;
    }


    Der fahrrad verleih text
    Create3DTextLabel("{0076FF}Fahrradverleih{FFFFFF}\nHier kannst du dir ein {0076FF}Fahrrad{FFFFFF} für{0076FF} $100{FFFFFF} mieten.\nTippe: {0076FF}/fahrrad", 0xFFFFFFFF, 2150.2666,-1902.2662,13.5505, 10.0, 0, 0);


    wenn spieler stirbt
    StopAudioStreamForPlayer(playerid);
    if(IsPlayerNPC(playerid))return 1;
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    new hours,minutes;
    gettime(hours, minutes);
    Spieler[playerid][Krankenhaus] = 1;
    //TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
    //format(string, sizeof(string), "Gestorben\n%s\n%d:%d", SpielerName(playerid),hours,minutes);
    //TotenKopfLabel[playerid] = Create3DTextLabel(string,COLOR_WEISS, pX,pY,pZ, 5, 0, 1);
    Spieler[playerid][Pos_x] = pX;
    Spieler[playerid][Pos_y] = pY;
    Spieler[playerid][Pos_z] = pZ;
    Spieler[killerid][Morde] ++;
    Spieler[playerid][Gestorben] ++;



    Guten abend,


    Ich wollte fragen ob man irgent wie abfragen kann ob der Spieler nicht in der tunen garage ist.
    Ich hab das so: wenn man in die garage fährt



    public OnEnterExitModShop(playerid, enterexit, interiorid)
    {
    inTune[playerid] = 1;
    return 1;
    }


    if(inTune[playerid] == 1)
    {
    //
    }


    und ich wollte noch wissen woher weiß ich das der spieler die garage verlassen hat ? damit ich im inTune auf 0 setzen kann.