Advertisement
Guest User

Deutsches Rollenspiel von Vincent Petritz

a guest
Apr 28th, 2012
2,242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 117.33 KB | None | 0 0
  1. /*
  2.     Deutsches Rollenspiel 2012
  3.     Script von Vincent Petritz
  4. */
  5.  
  6. #include <a_samp>
  7. #include <a_mysql>
  8. #include <ocmd>
  9. #include <sscanf2>
  10. #include <GetVehicleColor>
  11.  
  12. #define SQL_HOST    "xxx"
  13. #define SQL_USER    "yyy"
  14. #define SQL_PASS    "zzz"
  15. #define SQL_DATA    "xyz"
  16.  
  17. #define COLOR_WHITE         0xFFFFFFFF
  18. #define COLOR_YELLOW        0xFFC300FF
  19. #define COLOR_BLUE          0x0037FFFF
  20. #define COLOR_GREEN         0x008900FF
  21. #define COLOR_RED           0xFF000FFF
  22. #define COLOR_PINK          0xFA00FFFF
  23. #define COLOR_LIGHTBLUE     0x0091FFFF
  24.  
  25. #define COLOR_BLUE_HTML         "{0037FF}"
  26. #define COLOR_RED_HTML          "{FF000F}"
  27. #define COLOR_GREEN_HTML        "{008900}"
  28. #define COLOR_YELLOW_HTML       "{FFC300}"
  29. #define COLOR_PURPLE_HTML       "{653AFF}"
  30. #define COLOR_LIGHTBLUE_HTML    "{0091FF}"
  31. #define COLOR_WHITE_HTML        "{FFFFFF}"
  32.  
  33. #define MAX_RANK_LENGH          20
  34. #define MAX_KZ_LENGH            25
  35. #define MAX_TANKEN_NAME         100
  36. #define MAX_FACTIONS            11
  37. #define MAX_AUTOH_NAME          50
  38. #define MAX_CARS_PER_AUTOH      1
  39. #define MAX_IND_NAME            50
  40. #define MAX_FACTION_RANKS       9
  41.  
  42. #define MAX_INDUSTRIEN          3
  43. #define MAX_PICKUP              12
  44. #define MAX_AUTOHAUSER          2
  45. #define MAX_TANKEN              13
  46. #define MAX_FACTIONS            11
  47.  
  48. #define DIALOG_REGISTER     1
  49. #define DIALOG_LOGIN        2
  50. #define DIALOG_RSTEP2       3
  51. #define DIALOG_RSTEP3       4
  52. #define DIALOG_RSTEP4       5
  53. #define DIALOG_ADMINS       6
  54. #define DIALOG_MEMBERS      7
  55. #define DIALOG_TANKEN       8
  56. #define DIALOG_TANKENINFO   9
  57. #define DIALOG_TANKINFO1    10
  58. #define DIALOG_BELIEFPREIS  11
  59. #define DIALOG_AUTOHAUSAUTO 12
  60. #define DIALOG_AUTOHINFO    13
  61. #define DIALOG_INDUINFO     14
  62. #define DIALOG_ZAHLMETHOD   15
  63. #define DIALOG_INDUINFOS    16
  64. #define DIALOG_AUTOHINFOS   17
  65. #define DIALOG_FRANKS       18
  66. #define DIALOG_RSTEP5       19
  67. #define DIALOG_RSTEP6       20
  68. #define DIALOG_METHODBANK   21
  69. #define DIALOG_METHODBANK2  22
  70. #define DIALOG_KEINACC      23
  71. #define DIALOG_FORUMLOGIN   24
  72.  
  73. forward TankTime(playerid, Zahl, TankID);
  74. forward PlaketteOne(playerid, TankID);
  75. forward PlaketteTwo(playerid, TankID);
  76. forward WasserNehmen(playerid);
  77.  
  78. new VehicleNames[212][] =   {
  79.                                 {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},
  80.                                 {"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},
  81.                                 {"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},
  82.                                 {"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},
  83.                                 {"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
  84.                                 {"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
  85.                                 {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},
  86.                                 {"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},
  87.                                 {"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
  88.                                 {"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},
  89.                                 {"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},
  90.                                 {"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
  91.                                 {"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},
  92.                                 {"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},
  93.                                 {"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},
  94.                                 {"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},
  95.                                 {"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},
  96.                                 {"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},
  97.                                 {"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},
  98.                                 {"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},
  99.                                 {"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},
  100.                                 {"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},
  101.                                 {"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},
  102.                                 {"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},
  103.                                 {"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},
  104.                                 {"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
  105.                                 {"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},
  106.                                 {"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},
  107.                                 {"Utility Trailer"}
  108. };
  109.  
  110. enum SpielerDaten {
  111.     Level,
  112.     Name[MAX_PLAYER_NAME],
  113.     Sex,
  114.     Homestate,
  115.     Admin,
  116.     Fraktion,
  117.     National,
  118.     FraktionRank,
  119.     Leader,
  120.     Float:LastX,
  121.     Float:LastY,
  122.     Float:LastZ,
  123.     Skin,
  124.     uID,
  125.     Online,
  126.     Bankguthaben,
  127.     Handguthaben,
  128.     Banknummer
  129. };
  130.  
  131. enum Tankstellen {
  132.     Vorrat,
  133.     ProdPreis,
  134.     LiterPreis,
  135.     Besitzer[MAX_PLAYER_NAME],
  136.     Float:tanX,
  137.     Float:tanY,
  138.     Float:tanZ,
  139.     Float:buyX,
  140.     Float:buyY,
  141.     Float:buyZ,
  142.     BuyPrice,
  143.     tanName[MAX_TANKEN_NAME],
  144.     dbID,
  145.     Text3D:pickUpTextBuy,
  146.     Text3D:pickUpTextPay
  147. };
  148.  
  149. enum FraktionsFahrzeug {
  150.     Fraktion,
  151.     Tank,
  152.     Kennzeichen[MAX_KZ_LENGH],
  153.     Color1,
  154.     Color2,
  155.     Float:vehX,
  156.     Float:vehY,
  157.     Float:vehZ,
  158.     Float:vehA,
  159.     Modell
  160. };
  161.  
  162. enum AutohausCars {
  163.     Float:carX,
  164.     Float:carY,
  165.     Float:carZ,
  166.     carModell,
  167.     carID,
  168.     carLager,
  169.     Float:carA,
  170.     Fahrzeugkosten,
  171.     carAutohaus
  172. };
  173.  
  174. enum Autohauser {
  175.     Float:autX,
  176.     Float:autY,
  177.     Float:autZ,
  178.     autName[MAX_AUTOH_NAME],
  179.     Besitzer[MAX_PLAYER_NAME],
  180.     BuyPrice,
  181.     Cars,
  182.     MaxCars,
  183.     autID,
  184.     Text3D:pickUpText
  185. }
  186.  
  187. enum Industrien {
  188.     Float:indX,
  189.     Float:indY,
  190.     Float:indZ,
  191.     indArt,
  192.     indBesitzer[MAX_PLAYER_NAME],
  193.     indWasser,
  194.     indWasserMax,
  195.     indMetall,
  196.     indMetallMax,
  197.     indOel,
  198.     indOelMax,
  199.     indName[MAX_IND_NAME],
  200.     indID,
  201.     Text3D:indText,
  202.     indKaufpreis
  203. };
  204.  
  205. enum PickUps {
  206.     Float:pickX,
  207.     Float:pickY,
  208.     Float:pickZ,
  209.     pickVirtual,
  210.     pickModel,
  211.     Float:pickGotoX,
  212.     Float:pickGotoY,
  213.     Float:pickGotoZ,
  214.     pickGotoInt,
  215.     pickGotoVirtual,
  216.     pickInt
  217. };
  218.  
  219. new MAX_KNOWING_VEHICLES = 0,
  220.     Spieler[MAX_PLAYERS][SpielerDaten],
  221.     FVehicle[MAX_VEHICLES][FraktionsFahrzeug],
  222.     AutohausAuto[MAX_CARS_PER_AUTOH][AutohausCars],
  223.     Tankstelle[MAX_TANKEN][Tankstellen],
  224.     Autohaus[MAX_AUTOHAUSER][Autohauser],
  225.     Industrie[MAX_INDUSTRIEN][Industrien],
  226.     Pickup[MAX_PICKUP][PickUps],
  227.     Motor[MAX_VEHICLES],
  228.     engine,
  229.     lights,
  230.     alarm,
  231.     doors,
  232.     bonnet,
  233.     boot,
  234.     objective,
  235.     WasserVorrat[MAX_VEHICLES];
  236.  
  237. main()
  238. {
  239.     print("[COMPLETE] main() wurde ausgefuehrt ... Script wurde geladen ...");
  240. }
  241.  
  242. stock SendFraktionsMessage(factionid, color, string[])
  243. {
  244.         for(new i=0; i<MAX_PLAYERS; i++)
  245.         {
  246.             if(IsPlayerConnected(i) && !IsPlayerNPC(i))
  247.             {
  248.                 if(Spieler[i][Fraktion] == factionid)
  249.                 {
  250.                     SendClientMessage(i, color, string);
  251.                 }
  252.             }
  253.         }
  254.         return 0;
  255. }
  256.  
  257. stock GetNearTanke(playerid)
  258. {
  259.     new xID;
  260.     for(new id; id < MAX_TANKEN; id++)
  261.         if(IsPlayerInRangeOfPoint(playerid, 40.0, Tankstelle[id][tanX], Tankstelle[id][tanY], Tankstelle[id][tanZ]))
  262.             xID = Tankstelle[id][dbID];
  263.     return xID;
  264. }
  265.  
  266. stock GetNearAutohaus(playerid)
  267. {
  268.     new aID;
  269.     for(new id; id < MAX_AUTOHAUSER; id++)
  270.         if(IsPlayerInRangeOfPoint(playerid, 50.0, Autohaus[id][autX], Autohaus[id][autY], Autohaus[id][autZ]))
  271.             aID = Autohaus[id][autID];
  272.     return aID;
  273. }
  274.  
  275. stock GetNearIndustrie(playerid)
  276. {
  277.     new iID;
  278.     for(new id; id < MAX_INDUSTRIEN; id++)
  279.         if(IsPlayerInRangeOfPoint(playerid, 50.0, Industrie[id][indX], Industrie[id][indY], Industrie[id][indZ]))
  280.             iID = Industrie[id][indID];
  281.     return iID;
  282. }
  283.  
  284. stock GetNearAutohausRadius(playerid, Float:Radius)
  285. {
  286.     new aID;
  287.     for(new id; id < MAX_AUTOHAUSER; id++)
  288.         if(IsPlayerInRangeOfPoint(playerid, Radius, Autohaus[id][autX], Autohaus[id][autY], Autohaus[id][autZ]))
  289.             aID = Autohaus[id][autID];
  290.     return aID;
  291. }
  292.  
  293. stock GetNearIndustrieRadius(playerid, Float:Radius)
  294. {
  295.     new iID;
  296.     for(new id; id < MAX_INDUSTRIEN; id++)
  297.         if(IsPlayerInRangeOfPoint(playerid, Radius, Industrie[id][indX], Industrie[id][indY], Industrie[id][indZ]))
  298.             iID = Industrie[id][indID];
  299.     return iID;
  300. }
  301.  
  302. stock GetNearTankeRadius(playerid, Float:Radius)
  303. {
  304.     new xID;
  305.     for(new id; id < MAX_TANKEN; id++)
  306.         if(IsPlayerInRangeOfPoint(playerid, Radius, Tankstelle[id][tanX], Tankstelle[id][tanY], Tankstelle[id][tanZ]))
  307.             xID = Tankstelle[id][dbID];
  308.     return xID;
  309. }
  310.  
  311. stock SendRadiusMessage(Float:radius, color, string[], Float:x, Float:y, Float:z)
  312. {
  313.         for(new i=0; i<MAX_PLAYERS; i++)
  314.         {
  315.             if(IsPlayerConnected(i) && !IsPlayerNPC(i))
  316.             {
  317.                 if(IsPlayerInRangeOfPoint(i, radius, x, y, z))
  318.                 {
  319.                     SendClientMessage(i, color, string);
  320.                 }
  321.             }
  322.         }
  323.         return 0;
  324. }
  325.  
  326. stock mysql_GetString(Table[], Field[], Where[], Is[])
  327. {
  328.     new query[128], Get[128];
  329.     mysql_real_escape_string(Table, Table);
  330.     mysql_real_escape_string(Field, Field);
  331.     mysql_real_escape_string(Where, Where);
  332.     mysql_real_escape_string(Is, Is);
  333.     format(query, 128, "SELECT %s FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
  334.     mysql_query(query);
  335.     mysql_store_result();
  336.     mysql_fetch_row(Get);
  337.     return Get;
  338. }
  339.  
  340. stock mysql_ReturnPasswort(xName[])
  341. {
  342.     new query[130], Get[130];
  343.     mysql_real_escape_string(xName, xName);
  344.     format(query, 128, "SELECT Passwort FROM Accounts WHERE Name = '%s'", xName);
  345.     mysql_query(query);
  346.     mysql_store_result();
  347.     mysql_fetch_row(Get);
  348.     mysql_free_result();
  349.     return Get;
  350. }
  351.  
  352. stock Float:mysql_GetFloat(Table[], Field[], Where[], Is[])
  353. {
  354.     new query[128], Float:sqlfloat;
  355.     mysql_real_escape_string(Table, Table);
  356.     mysql_real_escape_string(Field, Field);
  357.     mysql_real_escape_string(Where, Where);
  358.     mysql_real_escape_string(Is, Is);
  359.     format(query, 128, "SELECT %s FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
  360.     mysql_query(query);
  361.     mysql_store_result();
  362.     mysql_fetch_float(sqlfloat);
  363.     mysql_free_result();
  364.     return sqlfloat;
  365. }
  366.  
  367. stock GetPlayerAdmin(playerid)
  368. {
  369.     new Adminrank[80];
  370.     switch(Spieler[playerid][Admin])
  371.     {
  372.         case 0:
  373.             Adminrank = "Spieler";
  374.         case 1:
  375.             Adminrank = "Unterstützer";
  376.         case 2:
  377.             Adminrank = "Helfer";
  378.         case 3:
  379.             Adminrank = "Programmierer";
  380.         case 4:
  381.             Adminrank = "Koordinationsverwaltung";
  382.     }
  383.     return Adminrank;
  384. }
  385.  
  386. stock mysql_SetInt(Table[], Field[], To, Where[], Where2[])
  387. {
  388.     new query[128];
  389.     mysql_real_escape_string(Table, Table);
  390.     mysql_real_escape_string(Field, Field);
  391.     mysql_real_escape_string(Where, Where);
  392.     mysql_real_escape_string(Where2, Where2);
  393.     format(query, 128, "UPDATE %s SET %s = '%d' WHERE %s = '%s'", Table, Field, To, Where, Where2);
  394.     mysql_query(query);
  395.     return true;
  396. }
  397. stock mysql_SetString(Table[], Field[], To[], Where[], Where2[])
  398. {
  399.     new query[128];
  400.     mysql_real_escape_string(Table, Table);
  401.     mysql_real_escape_string(Field, Field);
  402.     mysql_real_escape_string(To, To);
  403.     mysql_real_escape_string(Where, Where);
  404.     mysql_real_escape_string(Where2, Where2);
  405.     format(query, 128, "UPDATE %s SET %s = '%s' WHERE %s = '%s'", Table, Field, To, Where, Where2);
  406.     mysql_query(query);
  407.     return true;
  408. }
  409.  
  410. stock mysql_SetFloat(Table[], Field[], Float:To, Where[], Where2[])
  411. {
  412.     new query[128];
  413.     mysql_real_escape_string(Table, Table);
  414.     mysql_real_escape_string(Field, Field);
  415.     mysql_real_escape_string(Where, Where);
  416.     mysql_real_escape_string(Where2, Where2);
  417.     format(query, 128, "UPDATE %s SET %s = '%.1f' WHERE %s = '%s'", Table, Field, To, Where, Where2);
  418.     mysql_query(query);
  419.     return true;
  420. }
  421.  
  422. stock mysql_GetInt(Table[], Field[], Where[], Is[])
  423. {
  424.     new query[128];
  425.     mysql_real_escape_string(Table, Table);
  426.     mysql_real_escape_string(Field, Field);
  427.     mysql_real_escape_string(Where, Where);
  428.     mysql_real_escape_string(Is, Is);
  429.     format(query, 128, "SELECT %s FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
  430.     mysql_query(query);
  431.     mysql_store_result();
  432.     new sqlint = mysql_fetch_int();
  433.     mysql_free_result();
  434.     return sqlint;
  435. }
  436.  
  437. stock LoadPlayer(playerid)
  438. {
  439.     if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
  440.     {
  441.         GetPlayerName(playerid, Spieler[playerid][Name], MAX_PLAYER_NAME);
  442.         Spieler[playerid][Level] = mysql_GetInt("Accounts", "Level", "Name", Spieler[playerid][Name]);
  443.         Spieler[playerid][Admin] = mysql_GetInt("Accounts", "Admin", "Name", Spieler[playerid][Name]);
  444.         Spieler[playerid][Sex] = mysql_GetInt("Accounts", "Sex", "Name", Spieler[playerid][Name]);
  445.         Spieler[playerid][Homestate] = mysql_GetInt("Accounts", "Homestate", "Name", Spieler[playerid][Name]);
  446.         Spieler[playerid][Fraktion] = mysql_GetInt("Accounts", "Fraktion", "Name", Spieler[playerid][Name]);
  447.         Spieler[playerid][National] = mysql_GetInt("Accounts", "Nationality", "Name", Spieler[playerid][Name]);
  448.         Spieler[playerid][FraktionRank] = mysql_GetInt("Accounts", "Rank", "Name", Spieler[playerid][Name]);
  449.         Spieler[playerid][Leader] = mysql_GetInt("Accounts", "Leader", "Name", Spieler[playerid][Name]);
  450.         Spieler[playerid][LastX] = mysql_GetFloat("Accounts", "LastX", "Name", Spieler[playerid][Name]);
  451.         Spieler[playerid][LastY] = mysql_GetFloat("Accounts", "LastY", "Name", Spieler[playerid][Name]);
  452.         Spieler[playerid][LastZ] = mysql_GetFloat("Accounts", "LastZ", "Name", Spieler[playerid][Name]);
  453.         Spieler[playerid][Skin] = mysql_GetInt("Accounts", "Skin", "Name", Spieler[playerid][Name]);
  454.         Spieler[playerid][uID] = mysql_GetInt("wcf1_user", "userID", "username", Spieler[playerid][Name]);
  455.         Spieler[playerid][Banknummer] = mysql_GetInt("Accounts", "Banknummer", "Name", Spieler[playerid][Name]);
  456.         Spieler[playerid][Bankguthaben] = mysql_GetInt("Accounts", "Bank", "Name", Spieler[playerid][Name]);
  457.         Spieler[playerid][Handguthaben] = mysql_GetInt("Accounts", "Bar", "Name", Spieler[playerid][Name]);
  458.         mysql_SetInt("Accounts", "Online", Spieler[playerid][Online], "Name", Spieler[playerid][Name]);
  459.         SetPVarInt(playerid, "FirstSpawn", 1);
  460.         GivePlayerMoney(playerid, Spieler[playerid][Handguthaben]);
  461.         printf("[LOAD] Spieler %s geladen.", Spieler[playerid][Name]);
  462.     }
  463.     return 1;
  464. }
  465.  
  466. stock CheckForenaccount(playerid, Pass[])
  467. {
  468.     #pragma unused playerid
  469.     new query[256];
  470.     format(query, sizeof(query), "SELECT password FROM wcf1_user WHERE password = md5(md5('%s')) LIMIT 1", Pass);
  471.     mysql_query(query);
  472.     return mysql_num_rows();
  473. }
  474.  
  475. stock CreateAccount(playerid, pass[])
  476. {
  477.     new query[256],
  478.         query2[256],
  479.         xName[MAX_PLAYER_NAME],
  480.         Stunde,
  481.         Minute,
  482.         Sekunde;
  483.     gettime(Stunde, Minute, Sekunde);
  484.     GetPlayerName(playerid, xName, MAX_PLAYER_NAME);
  485.     mysql_real_escape_string(xName,xName);
  486.     mysql_real_escape_string(pass,pass);
  487.     format(query, sizeof(query), "INSERT INTO Accounts (Name, Passwort) VALUES ('%s', '%s')", xName, pass);
  488.     mysql_query(query);
  489.     Spieler[playerid][uID] = mysql_GetInt("wcf1_user", "userID", "username", Spieler[playerid][Name]);
  490.     printf("%s!", query2);
  491.     printf("ForenID: %d!", Spieler[playerid][uID]);
  492.     return true;
  493. }
  494.  
  495. stock IsPlayerInArea(playerid,Float:minX,Float:minY,Float:maxX,Float:maxY)
  496. {
  497.     new Float:pX,Float:pY,Float:pZ;
  498.     GetPlayerPos(playerid,pX,pY,pZ);
  499.     if(pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) return 1;
  500.     else return 0;
  501. }
  502.  
  503. stock mysql_CheckAccountWCF(playerid)
  504. {
  505.     new Query[128],xName[MAX_PLAYER_NAME];
  506.     GetPlayerName(playerid, xName, MAX_PLAYER_NAME);
  507.     mysql_real_escape_string(xName, xName);
  508.     format(Query, sizeof(Query), "SELECT * FROM wcf1_user WHERE username = '%s'", xName);
  509.     mysql_query(Query);
  510.     mysql_store_result();
  511.     return mysql_num_rows();
  512. }
  513.  
  514. stock mysql_CheckAccountSAMP(playerid)
  515. {
  516.     new Query[128],xName[MAX_PLAYER_NAME];
  517.     GetPlayerName(playerid, xName, MAX_PLAYER_NAME);
  518.     mysql_real_escape_string(xName, xName);
  519.     format(Query, sizeof(Query), "SELECT * FROM Accounts WHERE Name = '%s'", xName);
  520.     mysql_query(Query);
  521.     mysql_store_result();
  522.     return mysql_num_rows();
  523. }
  524.  
  525. stock DatabaseConnect()
  526. {
  527.     mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS);
  528.     if(mysql_ping() == 1)
  529.     {
  530.         print("[MySQL] Verbindung zur Datenbank wurde hergestellt!");
  531.         return true;
  532.     }
  533.     else
  534.     {
  535.         print("[MySQL] Es konnte keine Verbindung hergestellt werden!");
  536.         print("[MySQL] Es wird erneut versucht eine Verbindung herzustellen!");
  537.         mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS);
  538.         if(mysql_ping() == 1)
  539.         {
  540.             print("[MySQL] Es konnte nun eine Verbindung hergestellt werden!");
  541.             return true;
  542.         }
  543.         else
  544.         {
  545.             print("[MySQL] Es konnte keine Verbindung hergestellt werden!");
  546.             print("[MySQL] Der Server wird nun beendet!");
  547.             SendRconCommand("exit");
  548.             return true;
  549.         }
  550.     }
  551. }
  552.  
  553. stock GetName(playerid)
  554. {
  555.     new xName[MAX_PLAYER_NAME];
  556.     GetPlayerName(playerid, xName, sizeof(xName));
  557.     return xName;
  558. }
  559.  
  560. stock SaveAll()
  561. {
  562.     for(new x; x < MAX_PLAYERS; x++)
  563.     {
  564.         if(IsPlayerConnected(x))
  565.         {
  566.             mysql_SetInt("Accounts", "Level", Spieler[x][Level], "Name", Spieler[x][Name]);
  567.             mysql_SetInt("Accounts", "Admin", Spieler[x][Admin], "Name", Spieler[x][Name]);
  568.             mysql_SetInt("Accounts", "Sex", Spieler[x][Sex], "Name", Spieler[x][Name]);
  569.             mysql_SetInt("Accounts", "Homestate", Spieler[x][Homestate], "Name", Spieler[x][Name]);
  570.             mysql_SetInt("Accounts", "Fraktion", Spieler[x][Fraktion], "Name", Spieler[x][Name]);
  571.             mysql_SetInt("Accounts", "Nationality", Spieler[x][National], "Name", Spieler[x][Name]);
  572.             mysql_SetInt("Accounts", "Rank", Spieler[x][FraktionRank], "Name", Spieler[x][Name]);
  573.             mysql_SetInt("Accounts", "Leader", Spieler[x][Leader], "Name", Spieler[x][Name]);
  574.             mysql_SetFloat("Accounts", "LastX", Spieler[x][LastX], "Name", Spieler[x][Name]);
  575.             mysql_SetFloat("Accounts", "LastY", Spieler[x][LastY], "Name", Spieler[x][Name]);
  576.             mysql_SetFloat("Accounts", "LastZ", Spieler[x][LastZ], "Name", Spieler[x][Name]);
  577.  
  578.         }
  579.     }
  580.     return 1;
  581. }
  582.  
  583. stock SavePlayer(playerid)
  584. {
  585.     if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
  586.     {
  587.             mysql_SetInt("Accounts", "Level", Spieler[playerid][Level], "Name", Spieler[playerid][Name]);
  588.             mysql_SetInt("Accounts", "Admin", Spieler[playerid][Admin], "Name", Spieler[playerid][Name]);
  589.             mysql_SetInt("Accounts", "Sex", Spieler[playerid][Sex], "Name", Spieler[playerid][Name]);
  590.             mysql_SetInt("Accounts", "Homestate", Spieler[playerid][Homestate], "Name", Spieler[playerid][Name]);
  591.             mysql_SetInt("Accounts", "Fraktion", Spieler[playerid][Fraktion], "Name", Spieler[playerid][Name]);
  592.             mysql_SetInt("Accounts", "Nationality", Spieler[playerid][National], "Name", Spieler[playerid][Name]);
  593.             mysql_SetInt("Accounts", "Rank", Spieler[playerid][FraktionRank], "Name", Spieler[playerid][Name]);
  594.             mysql_SetInt("Accounts", "Leader", Spieler[playerid][Leader], "Name", Spieler[playerid][Name]);
  595.             mysql_SetFloat("Accounts", "LastX", Spieler[playerid][LastX], "Name", Spieler[playerid][Name]);
  596.             mysql_SetFloat("Accounts", "LastY", Spieler[playerid][LastY], "Name", Spieler[playerid][Name]);
  597.             mysql_SetFloat("Accounts", "LastZ", Spieler[playerid][LastZ], "Name", Spieler[playerid][Name]);
  598.             mysql_SetInt("Accounts", "Skin", GetPlayerSkin(playerid), "Name", Spieler[playerid][Name]);
  599.             mysql_SetInt("Accounts", "Online", Spieler[playerid][Online], "Name", Spieler[playerid][Name]);
  600.             printf("%s gespeichert (LastX: %f ... Admin: %d)... :D", GetName(playerid), Spieler[playerid][LastX], Spieler[playerid][Admin]);
  601.     }
  602.     return 1;
  603. }
  604.  
  605. stock UpdateTankstellen(TankID)
  606. {
  607.     new str[500];
  608.     if(strlen(Tankstelle[TankID][Besitzer]) == 0)
  609.     {
  610.         format(str, sizeof(str), "%s\n\nBesitzer: "COLOR_YELLOW_HTML"Keiner\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Literpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Litervorrat:"COLOR_YELLOW_HTML" %dL / 4500L", Tankstelle[TankID][tanName], Tankstelle[TankID][BuyPrice], Tankstelle[TankID][LiterPreis], Tankstelle[TankID][Vorrat]);
  611.     }
  612.     else
  613.     {
  614.         format(str, sizeof(str), "%s\n\n"COLOR_RED_HTML"Zapfsäule\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Literpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Litervorrat: "COLOR_YELLOW_HTML"%dL / 4500L", Tankstelle[TankID][tanName], Tankstelle[TankID][Besitzer], Tankstelle[TankID][BuyPrice], Tankstelle[TankID][LiterPreis], Tankstelle[TankID][Vorrat]);
  615.     }
  616.     Update3DTextLabelText(Tankstelle[TankID][pickUpTextBuy], COLOR_GREEN, str);
  617.     return 1;
  618. }
  619.  
  620. stock LoadIndustrien()
  621. {
  622.     new str1[15],
  623.         str2[300],
  624.         indu = 1;
  625.     while(indu < MAX_INDUSTRIEN)
  626.     {
  627.         format(str1, sizeof(str1), "%d", indu);
  628.         Industrie[indu][indID] = mysql_GetInt("Industrien", "ID", "ID", str1);
  629.         Industrie[indu][indX] = mysql_GetFloat("Industrien", "x", "ID", str1);
  630.         Industrie[indu][indY] = mysql_GetFloat("Industrien", "y", "ID", str1);
  631.         Industrie[indu][indZ] = mysql_GetFloat("Industrien", "z", "ID", str1);
  632.         Industrie[indu][indArt] = mysql_GetInt("Industrien", "Art", "ID", str1);
  633.         Industrie[indu][indWasser] = mysql_GetInt("Industrien", "Wasser", "ID", str1);
  634.         Industrie[indu][indMetall] = mysql_GetInt("Industrien", "Metall", "ID", str1);
  635.         Industrie[indu][indWasserMax] = mysql_GetInt("Industrien", "WasserMax", "ID", str1);
  636.         Industrie[indu][indOelMax] = mysql_GetInt("Industrien", "OelMax", "ID", str1);
  637.         Industrie[indu][indMetallMax] = mysql_GetInt("Industrien", "MetallMax", "ID", str1);
  638.         Industrie[indu][indOel] = mysql_GetInt("Industrien", "Oel", "ID", str1);
  639.         format(Industrie[indu][indBesitzer], MAX_PLAYER_NAME, mysql_GetString("Industrien", "Besitzer", "ID", str1));
  640.         format(Industrie[indu][indName], MAX_PLAYER_NAME, mysql_GetString("Industrien", "Name", "ID", str1));
  641.         Industrie[indu][indKaufpreis] = mysql_GetInt("Industrien", "Kaufpreis", "ID", str1);
  642.         if(Industrie[indu][indArt] == 1)//Ölindustrie
  643.         {
  644.             format(str2, sizeof(str2), "Ölkonzern"COLOR_YELLOW_HTML" %s\n\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Ölvorrat: "COLOR_YELLOW_HTML"%dL", Industrie[indu][indName], Industrie[indu][indBesitzer], Industrie[indu][indKaufpreis], Industrie[indu][indOel]);
  645.         }
  646.         else if(Industrie[indu][indArt] == 2)//Metallkonzern
  647.         {
  648.             format(str2, sizeof(str2), "Metallkonzern"COLOR_YELLOW_HTML" %s\n\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Ölvorrat: "COLOR_YELLOW_HTML"%dL", Industrie[indu][indName], Industrie[indu][indBesitzer], Industrie[indu][indKaufpreis], Industrie[indu][indMetall]);
  649.         }
  650.         printf("[LOAD] Industrie %s geladen.", Industrie[indu][indName]);
  651.         Industrie[indu][indText] = Create3DTextLabel(str2, COLOR_GREEN, Industrie[indu][indX], Industrie[indu][indY], Industrie[indu][indZ], 50.0, 0);
  652.         indu++;
  653.     }
  654.     return 1;
  655. }
  656.  
  657. stock LoadTankstellen()
  658. {
  659.     new str3[15],
  660.         str2[500],
  661.         str4[150],
  662.         tanken = 1;
  663.     while(tanken < MAX_TANKEN)
  664.     {
  665.         format(str3, sizeof(str3), "%d", tanken);
  666.         Tankstelle[tanken][ProdPreis] = mysql_GetInt("Tankstellen", "ProdPreis", "ID", str3);
  667.         Tankstelle[tanken][LiterPreis] = mysql_GetInt("Tankstellen", "LiterPreis", "ID", str3);
  668.         Tankstelle[tanken][Vorrat] = mysql_GetInt("Tankstellen", "LiterVorrat", "ID", str3);
  669.         Tankstelle[tanken][tanX] = mysql_GetFloat("Tankstellen", "fillX", "ID", str3);
  670.         Tankstelle[tanken][tanY] = mysql_GetFloat("Tankstellen", "fillY", "ID", str3);
  671.         Tankstelle[tanken][tanZ] = mysql_GetFloat("Tankstellen", "fillZ", "ID", str3);
  672.         Tankstelle[tanken][buyX] = mysql_GetFloat("Tankstellen", "payX", "ID", str3);
  673.         Tankstelle[tanken][buyY] = mysql_GetFloat("Tankstellen", "payY", "ID", str3);
  674.         Tankstelle[tanken][buyZ] = mysql_GetFloat("Tankstellen", "payZ", "ID", str3);
  675.         Tankstelle[tanken][dbID] = mysql_GetInt("Tankstellen", "ID", "ID", str3);
  676.         format(Tankstelle[tanken][tanName], MAX_TANKEN_NAME, mysql_GetString("Tankstellen", "Bezeichnung", "ID", str3));
  677.         format(Tankstelle[tanken][Besitzer], MAX_PLAYER_NAME, mysql_GetString("Tankstellen", "Besitzer", "ID", str3));
  678.         Tankstelle[tanken][BuyPrice] = mysql_GetInt("Tankstellen", "Kaufpreis", "ID", str3);
  679.         if(strlen(Tankstelle[tanken][Besitzer]) == 0)
  680.         {
  681.             format(str2, sizeof(str2), "%s\n\nBesitzer: "COLOR_YELLOW_HTML"Keiner\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Literpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Litervorrat:"COLOR_YELLOW_HTML" %dL / 4500L", Tankstelle[tanken][tanName], Tankstelle[tanken][BuyPrice], Tankstelle[tanken][LiterPreis], Tankstelle[tanken][Vorrat]);
  682.         }
  683.         else
  684.         {
  685.             format(str2, sizeof(str2), "%s\n\n"COLOR_RED_HTML"Zapfsäule\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Literpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Litervorrat: "COLOR_YELLOW_HTML"%dL / 4500L", Tankstelle[tanken][tanName], Tankstelle[tanken][Besitzer], Tankstelle[tanken][BuyPrice], Tankstelle[tanken][LiterPreis], Tankstelle[tanken][Vorrat]);
  686.         }
  687.         format(str4, sizeof(str4), "%s\n\n"COLOR_RED_HTML"Kasse\n"COLOR_WHITE_HTML"Preis/Liter: $%d", Tankstelle[tanken][tanName], Tankstelle[tanken][LiterPreis]);
  688.         printf("[LOAD] Tankstelle %s geladen.", Tankstelle[tanken][tanName]);
  689.         Tankstelle[tanken][pickUpTextBuy] = Create3DTextLabel(str2, COLOR_GREEN, Tankstelle[tanken][tanX], Tankstelle[tanken][tanY], Tankstelle[tanken][tanZ], 50.0, 0);
  690.         Tankstelle[tanken][pickUpTextPay] = Create3DTextLabel(str4, COLOR_GREEN, Tankstelle[tanken][buyX], Tankstelle[tanken][buyY], Tankstelle[tanken][buyZ], 50.0, 0);
  691.         tanken++;
  692.     }
  693.     return 1;
  694. }
  695.  
  696. stock LoadPickups()
  697. {
  698.     new str[15],
  699.         pix = 1;
  700.     while(pix < MAX_PICKUPS)
  701.     {
  702.         format(str, sizeof(str), "%d", pix);
  703.         Pickup[pix][pickX] = mysql_GetFloat("Pickups", "x", "ID", str);
  704.         Pickup[pix][pickY] = mysql_GetFloat("Pickups", "y", "ID", str);
  705.         Pickup[pix][pickZ] = mysql_GetFloat("Pickups", "z", "ID", str);
  706.         Pickup[pix][pickGotoX] = mysql_GetFloat("Pickups", "gotoX", "ID", str);
  707.         Pickup[pix][pickGotoY] = mysql_GetFloat("Pickups", "gotoY", "ID", str);
  708.         Pickup[pix][pickGotoZ] = mysql_GetFloat("Pickups", "gotoZ", "ID", str);
  709.         Pickup[pix][pickModel] = mysql_GetInt("Pickups", "Model", "ID", str);
  710.         Pickup[pix][pickVirtual] = mysql_GetInt("Pickups", "Virtual", "ID", str);
  711.         Pickup[pix][pickGotoInt] = mysql_GetInt("Pickups", "gotoInt", "ID", str);
  712.         Pickup[pix][pickInt] = mysql_GetInt("Pickups", "Int", "ID", str);
  713.         Pickup[pix][pickGotoVirtual] = mysql_GetInt("Pickups", "gotoVirtual", "ID", str);
  714.         CreatePickup(Pickup[pix][pickModel], 23, Pickup[pix][pickX], Pickup[pix][pickY], Pickup[pix][pickZ], Pickup[pix][pickVirtual]);
  715.     }
  716.     return 1;
  717. }
  718.  
  719. stock LoadAutohauser()
  720. {
  721.     new str[15],
  722.         autohaus = 1,
  723.         str2[350];
  724.     while(autohaus < MAX_AUTOHAUSER)
  725.     {
  726.         format(str, sizeof(str), "%d", autohaus);
  727.         Autohaus[autohaus][autID] = mysql_GetInt("Autohauser", "ID", "ID", str);
  728.         Autohaus[autohaus][autX] = mysql_GetFloat("Autohauser", "x", "ID", str);
  729.         Autohaus[autohaus][autY] = mysql_GetFloat("Autohauser", "y", "ID", str);
  730.         Autohaus[autohaus][autZ] = mysql_GetFloat("Autohauser", "z", "ID", str);
  731.         format(Autohaus[autohaus][Besitzer], MAX_PLAYER_NAME, mysql_GetString("Autohauser", "Besitzer", "ID", str));
  732.         Autohaus[autohaus][BuyPrice] = mysql_GetInt("Autohauser", "BuyPrice", "ID", str);
  733.         Autohaus[autohaus][Cars] = mysql_GetInt("Autohauser", "Cars", "ID", str);
  734.         Autohaus[autohaus][MaxCars] = mysql_GetInt("Autohauser", "MaxCars", "ID", str);
  735.         format(Autohaus[autohaus][autName], MAX_AUTOH_NAME, mysql_GetString("Autohauser", "Name", "ID", str));
  736.         if(strlen(Autohaus[autohaus][Besitzer]) < 1)
  737.         {
  738.             format(str2, sizeof(str2), "%s\n\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"Keiner\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Fahrzeugvorrat: "COLOR_YELLOW_HTML"%d/%d", Autohaus[autohaus][autName], Autohaus[autohaus][BuyPrice], Autohaus[autohaus][Cars], Autohaus[autohaus][MaxCars]);
  739.         }
  740.         else
  741.         {
  742.             format(str2, sizeof(str2), "%s\n\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Fahrzeugvorrat: "COLOR_YELLOW_HTML"%d/%d", Autohaus[autohaus][autName], Autohaus[autohaus][Besitzer], Autohaus[autohaus][BuyPrice], Autohaus[autohaus][Cars], Autohaus[autohaus][MaxCars]);
  743.         }
  744.         printf("[LOAD] Autohaus %s geladen.", Autohaus[autohaus][autName]);
  745.         Autohaus[autohaus][pickUpText] = Create3DTextLabel(str2, COLOR_GREEN, Autohaus[autohaus][autX], Autohaus[autohaus][autY], Autohaus[autohaus][autZ], 50.0, 0);
  746.         autohaus++;
  747.     }
  748.     return 1;
  749. }
  750.  
  751. stock DestroyAllVehicles()
  752. {
  753.     for(new x; x < MAX_VEHICLES; x++)
  754.     {
  755.         if(FVehicle[x][Fraktion] > 0)
  756.         {
  757.             DestroyVehicle(x);
  758.         }
  759.     }
  760.     return 1;
  761. }
  762.  
  763. stock FraktionsautosCount()
  764. {
  765.     new Get[128],
  766.         count;
  767.     mysql_query("SELECT MAX(`ID`) FROM Fraktionsautos");
  768.     mysql_store_result();
  769.     mysql_fetch_row(Get);
  770.     count = strval(Get);
  771.     MAX_KNOWING_VEHICLES = count;
  772.     mysql_free_result();
  773.     return 1;
  774. }
  775.  
  776. stock AutohausautosCount()
  777. {
  778.     new Get[128],
  779.         count;
  780.     mysql_query("SELECT MAX(`ID`) FROM Autohausautos");
  781.     mysql_store_result();
  782.     mysql_fetch_row(Get);
  783.     count = strval(Get);
  784.     MAX_CARS_PER_AUTOH = count;
  785.     mysql_free_result();
  786.     return 1;
  787. }
  788.  
  789. stock LoadAutohausautos()
  790. {
  791.     new str[15],
  792.         carID = 1;
  793.     while(carID < MAX_CARS_PER_AUTOH)
  794.     {
  795.         format(str, sizeof(str), "%d", carID);
  796.         AutohausAuto[carID][carAutohaus] = mysql_GetInt("Autohausautos", "Autohaus", "ID", str);
  797.         AutohausAuto[carID][carX] = mysql_GetFloat("Autohausautos", "x", "ID", str);
  798.         AutohausAuto[carID][carY] = mysql_GetFloat("Autohausautos", "y", "ID", str);
  799.         AutohausAuto[carID][carZ] = mysql_GetFloat("Autohausautos", "z", "ID", str);
  800.         AutohausAuto[carID][carLager] = mysql_GetInt("Autohausautos", "Lager", "ID", str);
  801.         AutohausAuto[carID][carA] = mysql_GetFloat("Autohausautos", "a", "ID", str);
  802.         AutohausAuto[carID][Fahrzeugkosten] = mysql_GetInt("Autohausautos", "Fahrzeugkosten" ,"ID", str);
  803.         format(AutohausAuto[carID][carKennzeichen], MAX_KZ_LENGH, mysql_GetString("Autohausautos", "Kennzeichen", "ID", str));
  804.         AutohausAuto[carID][carModell] = mysql_GetInt("Autohausautos", "Model", "ID", str);
  805.         SetVehicleNumberPlate(CreateVehicle(AutohausAuto[carID][carModell], AutohausAuto[carID][carX], AutohausAuto[carID][carY], AutohausAuto[carID][carZ], AutohausAuto[carID][carA], AutohausAuto[carID][Color1], AutohausAuto[carID][Color2], -1), AutohausAuto[carID][carKennzeichen]);
  806.         printf("[LOAD] Autohausauto %s geladen.", AutohausAuto[carID][carKennzeichen]);
  807.     }
  808.     return 1;
  809. }
  810.  
  811. stock LoadFraktionsautos()
  812. {
  813.     new string[15],
  814.         vehicleid = 1;
  815.     while(vehicleid < MAX_KNOWING_VEHICLES)
  816.     {
  817.         format(string, sizeof(string), "%d", vehicleid);
  818.         FVehicle[vehicleid][Tank] = mysql_GetInt("Fraktionsautos", "Tankmenge", "ID", string);
  819.         format(FVehicle[vehicleid][Kennzeichen], MAX_KZ_LENGH, mysql_GetString("Fraktionsautos", "Kennzeichen", "ID", string));
  820.         FVehicle[vehicleid][Color1] = mysql_GetInt("Fraktionsautos", "Color1", "ID", string);
  821.         FVehicle[vehicleid][Color2] = mysql_GetInt("Fraktionsautos", "Color2", "ID", string);
  822.         FVehicle[vehicleid][vehX] = mysql_GetFloat("Fraktionsautos", "x", "ID", string);
  823.         FVehicle[vehicleid][vehY] = mysql_GetFloat("Fraktionsautos", "y", "ID", string);
  824.         FVehicle[vehicleid][vehZ] = mysql_GetFloat("Fraktionsautos", "z", "ID", string);
  825.         FVehicle[vehicleid][vehA] = mysql_GetFloat("Fraktionsautos", "a", "ID", string);
  826.         FVehicle[vehicleid][Modell] = mysql_GetInt("Fraktionsautos", "VehicleModel", "ID", string);
  827.         FVehicle[vehicleid][Fraktion] = mysql_GetInt("Fraktionsautos", "FraktionID", "ID", string);
  828.         SetVehicleNumberPlate(CreateVehicle(FVehicle[vehicleid][Modell],FVehicle[vehicleid][vehX],FVehicle[vehicleid][vehY],FVehicle[vehicleid][vehZ],FVehicle[vehicleid][vehA],FVehicle[vehicleid][Color1],FVehicle[vehicleid][Color2], -1), FVehicle[vehicleid][Kennzeichen]);
  829.         printf("[LOAD] Fraktionsauto %s geladen.", FVehicle[vehicleid][Kennzeichen]);
  830.         vehicleid++;
  831.     }
  832.     return 1;
  833. }
  834.  
  835. public OnGameModeInit()
  836. {
  837.     mysql_debug(1);
  838.     printf("Gamemode started!");
  839.     DatabaseConnect();
  840.     printf("Databaseconnect successfull!");
  841.     FraktionsautosCount();
  842.     ManualVehicleEngineAndLights();
  843.     SetGameModeText("Deutsches Rollenspiel");
  844.     LoadFraktionsautos();
  845.     LoadTankstellen();
  846.     LoadAutohauser();
  847.     LoadIndustrien();
  848.     for (new i=0; i< MAX_VEHICLES; i++)
  849.     {
  850.         GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
  851.         SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  852.         Motor[i] = 0;
  853.     }
  854.    
  855.     //Autohaus LV
  856.     CreateObject(4100, 1631.1999511719, 1019.200012207, 11.5, 0, 0, 320);
  857.     CreateObject(4100, 1644.9000244141, 1019.200012207, 11.5, 0, 0, 319.99877929688);
  858.     CreateObject(4100, 1658.5999755859, 1019.200012207, 11.5, 0, 0, 319.99877929688);
  859.     CreateObject(4100, 1672.3000488281, 1019.200012207, 11.5, 0, 0, 319.99877929688);
  860.     CreateObject(4100, 1686, 1019.200012207, 11.5, 0, 0, 319.99877929688);
  861.     CreateObject(4100, 1699.6999511719, 1019.200012207, 11.5, 0, 0, 319.99877929688);
  862.     CreateObject(4100, 1713.4000244141, 1019.200012207, 11.5, 0, 0, 319.99877929688);
  863.     CreateObject(4100, 1696.5, 935.09997558594, 11.5, 0, 0, 319.99877929688);
  864.     CreateObject(4100, 1682.8000488281, 935.20001220703, 11.39999961853, 0, 0, 319.99877929688);
  865.     CreateObject(4100, 1710.1999511719, 935.09997558594, 11.5, 0, 0, 319.99877929688);
  866.     CreateObject(4100, 1757.3000488281, 963.20001220703, 11.5, 0, 0, 229.99877929688);
  867.     CreateObject(4100, 1757.3000488281, 976.90002441406, 11.5, 0, 0, 229.99328613281);
  868.     CreateObject(9361, 1627.5, 994.79998779297, 12.39999961853, 0, 0, 44);
  869.     CreateObject(1492, 1629.0999755859, 996.40002441406, 9.6999998092651, 0, 0, 268);
  870.     CreateObject(2904, 1629.0999755859, 993.70001220703, 11.10000038147, 0, 0, 268);
  871.     CreateObject(3749, 1667.8000488281, 943.29998779297, 15.5, 0, 0, 0);
  872.     CreateObject(7956, 1625.0999755859, 943.29998779297, 11.199999809265, 0, 0, 295.99996948242);
  873.     CreateObject(7956, 1610.6999511719, 943.40002441406, 11.199999809265, 0, 0, 296);
  874.     CreateObject(1714, 1625.0999755859, 998.5, 10.10000038147, 0, 0, 40);
  875.     CreateObject(1726, 1627.5999755859, 991.29998779297, 10, 0, 0, 179.99993896484);
  876.     CreateObject(2008, 1626.0999755859, 997.59997558594, 10.10000038147, 0, 0, 182);
  877.     CreateObject(1360, 1630, 997.79998779297, 10.60000038147, 0, 0, 0);
  878.     CreateObject(2195, 1628.5999755859, 998.40002441406, 10.699999809265, 0, 0, 0);
  879.     CreateObject(2811, 1628.3000488281, 991.29998779297, 10, 0, 0, 0);
  880.     CreateObject(2811, 1624.8000488281, 991.20001220703, 10, 0, 0, 0);
  881.     CreateObject(3811, 1629.5, 992.29998779297, 11.10000038147, 0, 0, 0);
  882.     CreateObject(18014, 1662.3000488281, 943.20001220703, 10.10000038147, 0, 0, 0);
  883.     CreateObject(18014, 1673.3000488281, 943.20001220703, 10.300000190735, 0, 0, 0);
  884.     CreateObject(1215, 1629.5, 994, 11.89999961853, 0, 42, 0);
  885.     CreateObject(1360, 1627.8000488281, 999.79998779297, 10.60000038147, 0, 0, 88);
  886.     CreateObject(1215, 1660.3000488281, 941.09997558594, 14, 0, 41.995239257813, 274);
  887.     CreateObject(1215, 1674.9000244141, 940.90002441406, 14.10000038147, 0, 41.98974609375, 273.9990234375);
  888.     CreateObject(1478, 1659.8000488281, 939.70001220703, 10.39999961853, 0, 0, 0);
  889.     CreateObject(1776, 1628.5999755859, 993.40002441406, 11.10000038147, 0, 0, 269.99996948242);
  890.     CreateObject(4100, 1750.4000244141, 934.70001220703, 11.39999961853, 0, 0, 319.99877929688);
  891.     CreateObject(4100, 1750.5, 992.40002441406, 11.39999961853, 0, 0, 319.99877929688);
  892.     CreateObject(4100, 1584.4000244141, 1011.200012207, 11.39999961853, 0, 0, 319.99877929688);
  893.     CreateObject(9131, 1577.4000244141, 943.59997558594, 11.39999961853, 0, 0, 0);
  894.     CreateObject(3515, 1667.4000244141, 967.70001220703, 9.6999998092651, 0, 0, 0);
  895.     CreateObject(1215, 1660.5, 967.79998779297, 10.89999961853, 0, 0, 0);
  896.     CreateObject(1215, 1674.1999511719, 967.79998779297, 10.800000190735, 0, 0, 0);
  897.     CreateObject(1215, 1660.5, 973.79998779297, 10.800000190735, 0, 0, 0);
  898.     CreateObject(1215, 1674.3000488281, 973.79998779297, 10.800000190735, 0, 0, 0);
  899.     CreateObject(11292, 1632.0999755859, 983.70001220703, 9.8000001907349, 0, 0, 359.15930175781);
  900.     CreateObject(11292, 1632.0999755859, 980.5, 9.8000001907349, 0, 0, 179.15405273438);
  901.     CreateObject(5061, 1631.1999511719, 974.79998779297, 10.300000190735, 344.00073242188, 90.165740966797, 177.49505615234);
  902.     CreateObject(1215, 1636.3000488281, 978.20001220703, 12, 0, 0, 0);
  903.     CreateObject(1215, 1636.5, 985.79998779297, 12, 0, 0, 0);
  904.     CreateObject(5821, 1633.5, 987.79998779297, 7.4000000953674, 0, 0, 268);
  905.    
  906.     //Ordnungsamt LS
  907.     CreateObject(8674, 1761.0999755859, -1691.9000244141, 13.89999961853, 0, 0, 270);
  908.     CreateObject(8674, 1802.5, -1720.9000244141, 14, 0, 0, 348);
  909.     CreateObject(9131, 1761.4000244141, -1697.5999755859, 12.800000190735, 0, 0, 0);
  910.     CreateObject(9131, 1761.4000244141, -1697.5999755859, 15, 0, 0, 0);
  911.     CreateObject(638, 1760.5, -1696, 13.10000038147, 0, 0, 0);
  912.     CreateObject(638, 1760.5, -1704.8000488281, 13.10000038147, 0, 0, 0);
  913.     CreateObject(1215, 1760.9000244141, -1696, 15.300000190735, 0, 326, 0);
  914.     CreateObject(989, 1761.3000488281, -1700.6999511719, 14.300000190735, 0, 0, 197.99996948242);
  915.    
  916.     //LSPD
  917.     CreateObject(2011, 1505.32, -1530.33, 14.38,   0.00, 0.00, 0.00);
  918.     CreateObject(2011, 1699.19, -1781.55, 43.82,   0.00, 0.00, 0.00);
  919.     CreateObject(2011, 1512.26, -1530.41, 14.35,   0.00, 0.00, 0.00);
  920.     CreateObject(2011, 1519.31, -1530.35, 14.36,   0.00, 0.00, 0.00);
  921.     CreateObject(715, 1498.51, -1525.26, 21.47,   0.00, 0.00, 2.46);
  922.     CreateObject(715, 1502.87, -1516.70, 21.47,   0.00, 0.00, 0.00);
  923.     CreateObject(715, 1502.92, -1505.47, 21.38,   0.00, 0.00, 0.00);
  924.     CreateObject(715, 1490.18, -1528.93, 21.51,   0.00, 0.00, 0.00);
  925.     CreateObject(715, 1483.73, -1537.71, 21.26,   0.00, 0.00, 0.00);
  926.     CreateObject(715, 1483.50, -1558.69, 21.24,   0.00, 0.00, 358.64);
  927.     CreateObject(715, 1490.30, -1564.96, 21.37,   0.00, 0.00, 0.00);
  928.     CreateObject(715, 1495.84, -1570.68, 21.25,   0.00, 0.00, 0.00);
  929.     CreateObject(715, 1502.60, -1576.32, 21.40,   0.00, 0.00, 0.00);
  930.     CreateObject(715, 1531.46, -1570.67, 21.33,   0.00, 0.00, 0.00);
  931.     CreateObject(715, 1536.06, -1564.37, 21.29,   0.00, 0.00, 0.00);
  932.     CreateObject(715, 1543.21, -1558.45, 21.34,   0.00, 0.00, 0.00);
  933.     CreateObject(715, 1523.49, -1504.99, 21.38,   0.00, 0.00, 0.00);
  934.     CreateObject(715, 1523.70, -1517.87, 21.34,   0.00, 0.00, 359.20);
  935.     CreateObject(715, 1531.28, -1525.16, 21.40,   0.00, 0.00, 0.00);
  936.     CreateObject(715, 1543.07, -1537.95, 21.32,   0.00, 0.00, 0.00);
  937.     CreateObject(10368, 1502.23, -1540.74, 33.06,   0.00, 0.00, 270.01);
  938.     CreateObject(2011, 1505.32, -1530.33, 14.38,   0.00, 0.00, 0.00);
  939.     CreateObject(2011, 1699.19, -1781.55, 43.82,   0.00, 0.00, 0.00);
  940.     CreateObject(2011, 1512.26, -1530.41, 14.35,   0.00, 0.00, 0.00);
  941.     CreateObject(2011, 1519.31, -1530.35, 14.36,   0.00, 0.00, 0.00);
  942.     CreateObject(715, 1498.51, -1525.26, 21.47,   0.00, 0.00, 2.46);
  943.     CreateObject(715, 1502.87, -1516.70, 21.47,   0.00, 0.00, 0.00);
  944.     CreateObject(715, 1490.18, -1528.93, 21.51,   0.00, 0.00, 0.00);
  945.     CreateObject(715, 1483.73, -1537.71, 21.26,   0.00, 0.00, 0.00);
  946.     CreateObject(715, 1483.50, -1558.69, 21.24,   0.00, 0.00, 358.64);
  947.     CreateObject(715, 1490.30, -1564.96, 21.37,   0.00, 0.00, 0.00);
  948.     CreateObject(715, 1531.46, -1570.67, 21.33,   0.00, 0.00, 0.00);
  949.     CreateObject(715, 1543.21, -1558.45, 21.34,   0.00, 0.00, 0.00);
  950.     CreateObject(715, 1523.70, -1517.87, 21.34,   0.00, 0.00, 359.20);
  951.     CreateObject(715, 1531.28, -1525.16, 21.40,   0.00, 0.00, 0.00);
  952.     CreateObject(715, 1543.07, -1537.95, 21.32,   0.00, 0.00, 0.00);
  953.     CreateObject(2011, 1505.32, -1530.33, 14.38,   0.00, 0.00, 0.00);
  954.     CreateObject(2011, 1699.19, -1781.55, 43.82,   0.00, 0.00, 0.00);
  955.     CreateObject(2011, 1512.26, -1530.41, 14.35,   0.00, 0.00, 0.00);
  956.     CreateObject(2011, 1519.31, -1530.35, 14.36,   0.00, 0.00, 0.00);
  957.     CreateObject(715, 1498.51, -1525.26, 21.47,   0.00, 0.00, 2.46);
  958.     CreateObject(715, 1502.87, -1516.70, 21.47,   0.00, 0.00, 0.00);
  959.     CreateObject(715, 1490.18, -1528.93, 21.51,   0.00, 0.00, 0.00);
  960.     CreateObject(715, 1483.73, -1537.71, 21.26,   0.00, 0.00, 0.00);
  961.     CreateObject(715, 1483.50, -1558.69, 21.24,   0.00, 0.00, 358.64);
  962.     CreateObject(715, 1490.30, -1564.96, 21.37,   0.00, 0.00, 0.00);
  963.     CreateObject(715, 1523.64, -1577.12, 21.29,   0.00, 0.00, 0.00);
  964.     CreateObject(715, 1531.46, -1570.67, 21.33,   0.00, 0.00, 0.00);
  965.     CreateObject(715, 1543.21, -1558.45, 21.34,   0.00, 0.00, 0.00);
  966.     CreateObject(715, 1523.70, -1517.87, 21.34,   0.00, 0.00, 359.20);
  967.     CreateObject(715, 1531.28, -1525.16, 21.40,   0.00, 0.00, 0.00);
  968.     CreateObject(715, 1536.11, -1532.88, 21.29,   0.00, 0.00, 0.00);
  969.     CreateObject(715, 1543.07, -1537.95, 21.32,   0.00, 0.00, 0.00);
  970.     CreateObject(744, 1529.78, -1577.07, 12.39,   0.00, 0.00, 1.94);
  971.     CreateObject(853, 1461.47, -1578.41, 12.90,   0.00, 0.00, 0.00);
  972.     CreateObject(854, 1460.28, -1577.61, 12.70,   0.00, 0.00, 0.00);
  973.     CreateObject(870, 1502.75, -1575.68, 13.41,   0.00, 0.00, 0.00);
  974.     CreateObject(870, 1501.38, -1578.24, 13.28,   0.00, 0.00, 0.00);
  975.     CreateObject(870, 1501.39, -1573.46, 13.28,   0.00, 0.00, 0.00);
  976.     CreateObject(870, 1502.23, -1571.71, 13.35,   0.00, 0.00, 0.00);
  977.     CreateObject(870, 1501.08, -1570.51, 13.25,   0.00, 0.00, 0.00);
  978.     CreateObject(870, 1502.46, -1569.92, 13.30,   0.00, 0.00, 0.00);
  979.     CreateObject(870, 1499.09, -1570.11, 13.36,   0.00, 0.00, 0.00);
  980.     CreateObject(870, 1488.37, -1570.43, 13.37,   0.00, 0.00, 0.00);
  981.     CreateObject(870, 1495.69, -1570.34, 13.28,   0.00, 0.00, 0.00);
  982.     CreateObject(870, 1493.63, -1570.19, 13.29,   0.00, 0.00, 0.00);
  983.     CreateObject(870, 1491.82, -1570.32, 13.35,   0.00, 0.00, 0.00);
  984.     CreateObject(870, 1489.89, -1570.41, 13.48,   0.00, 0.00, 0.00);
  985.     CreateObject(870, 1497.79, -1570.75, 13.43,   0.00, 0.00, 0.00);
  986.     CreateObject(870, 1489.24, -1568.01, 13.51,   0.00, 0.00, 0.00);
  987.     CreateObject(870, 1489.26, -1565.90, 13.57,   0.00, 0.00, 0.00);
  988.     CreateObject(870, 1489.29, -1563.63, 13.57,   0.00, 0.00, 0.00);
  989.     CreateObject(870, 1489.14, -1561.85, 13.38,   0.00, 0.00, 0.00);
  990.     CreateObject(870, 1489.33, -1559.96, 13.36,   0.00, 0.00, 0.00);
  991.     CreateObject(870, 1489.46, -1557.26, 13.37,   0.00, 0.00, 0.00);
  992.     CreateObject(870, 1487.61, -1557.65, 13.30,   0.00, 0.00, 0.00);
  993.     CreateObject(870, 1485.96, -1557.82, 13.29,   0.00, 0.00, 0.00);
  994.     CreateObject(870, 1484.19, -1557.72, 13.29,   0.00, 0.00, 0.00);
  995.     CreateObject(870, 1483.25, -1557.84, 13.30,   0.00, 0.00, 0.00);
  996.     CreateObject(870, 1481.58, -1558.14, 13.26,   0.00, 0.00, 0.00);
  997.     CreateObject(870, 1522.50, -1577.77, 13.26,   0.00, 0.00, 0.00);
  998.     CreateObject(870, 1522.16, -1575.15, 13.28,   0.00, 0.00, 0.00);
  999.     CreateObject(870, 1522.41, -1572.86, 13.20,   0.00, 0.00, 0.00);
  1000.     CreateObject(870, 1522.38, -1570.68, 13.29,   0.00, 0.00, 0.00);
  1001.     CreateObject(870, 1524.53, -1570.47, 13.36,   0.00, 0.00, 0.00);
  1002.     CreateObject(870, 1526.60, -1570.64, 13.43,   0.00, 0.00, 0.00);
  1003.     CreateObject(870, 1528.39, -1570.50, 13.55,   0.00, 0.00, 0.00);
  1004.     CreateObject(870, 1530.04, -1570.41, 13.36,   0.00, 0.00, 0.00);
  1005.     CreateObject(870, 1532.11, -1570.38, 13.30,   0.00, 0.00, 0.00);
  1006.     CreateObject(870, 1533.84, -1570.44, 13.31,   0.00, 0.00, 0.00);
  1007.     CreateObject(870, 1535.40, -1570.41, 13.40,   0.00, 0.00, 0.00);
  1008.     CreateObject(870, 1534.91, -1567.95, 13.38,   0.00, 0.00, 0.00);
  1009.     CreateObject(870, 1535.00, -1565.72, 13.36,   0.00, 0.00, 0.00);
  1010.     CreateObject(870, 1534.96, -1562.57, 13.36,   0.00, 0.00, 0.00);
  1011.     CreateObject(870, 1534.95, -1560.29, 13.34,   0.00, 0.00, 0.00);
  1012.     CreateObject(870, 1534.84, -1557.80, 13.33,   -0.02, -0.14, -0.10);
  1013.     CreateObject(870, 1537.03, -1557.90, 13.34,   0.00, 0.00, 0.00);
  1014.     CreateObject(870, 1538.99, -1558.12, 13.48,   0.00, 0.00, 0.00);
  1015.     CreateObject(870, 1540.82, -1558.02, 13.47,   0.00, 0.00, 0.00);
  1016.     CreateObject(870, 1542.85, -1557.66, 13.31,   0.00, 0.00, 0.00);
  1017.     CreateObject(870, 1542.70, -1537.03, 13.37,   0.00, 0.00, 0.00);
  1018.     CreateObject(870, 1541.35, -1537.14, 13.33,   0.00, 0.00, 0.00);
  1019.     CreateObject(870, 1539.31, -1536.95, 13.35,   0.00, 0.00, 0.00);
  1020.     CreateObject(870, 1537.23, -1537.12, 13.39,   0.00, 0.00, 0.00);
  1021.     CreateObject(870, 1536.29, -1537.08, 13.41,   0.00, 0.00, 0.00);
  1022.     CreateObject(870, 1534.87, -1529.19, 13.27,   0.00, 0.00, 0.00);
  1023.     CreateObject(870, 1535.26, -1534.92, 13.28,   0.00, 0.00, 0.00);
  1024.     CreateObject(870, 1535.06, -1533.57, 13.31,   0.00, 0.00, 0.00);
  1025.     CreateObject(870, 1534.88, -1531.06, 13.32,   0.00, 0.00, 0.00);
  1026.     CreateObject(870, 1535.06, -1527.07, 13.36,   0.00, 0.00, 0.00);
  1027.     CreateObject(870, 1534.28, -1537.66, 13.31,   0.00, 0.00, 0.00);
  1028.     CreateObject(870, 1531.62, -1524.14, 13.40,   0.00, 0.00, 0.00);
  1029.     CreateObject(870, 1535.29, -1524.24, 13.39,   0.00, 0.00, 0.00);
  1030.     CreateObject(870, 1533.26, -1524.75, 13.39,   0.00, 0.00, 0.00);
  1031.     CreateObject(870, 1527.51, -1524.56, 13.32,   0.00, 0.00, 0.00);
  1032.     CreateObject(870, 1529.16, -1525.12, 13.41,   0.00, 0.00, 0.00);
  1033.     CreateObject(870, 1525.70, -1524.59, 13.39,   0.00, 0.00, 0.00);
  1034.     CreateObject(870, 1524.00, -1524.55, 13.37,   0.00, 0.00, 0.00);
  1035.     CreateObject(870, 1522.11, -1524.60, 13.41,   0.00, 0.00, 0.00);
  1036.     CreateObject(870, 1522.73, -1522.53, 13.40,   0.00, 0.00, 0.00);
  1037.     CreateObject(870, 1522.58, -1520.64, 13.38,   0.00, 0.00, 0.00);
  1038.     CreateObject(870, 1522.70, -1518.54, 13.46,   0.00, 0.00, 0.00);
  1039.     CreateObject(870, 1522.79, -1516.04, 13.37,   0.00, 0.00, 0.00);
  1040.     CreateObject(870, 1522.86, -1513.99, 13.39,   0.00, 0.00, 0.00);
  1041.     CreateObject(870, 1522.94, -1511.81, 13.37,   0.00, 0.00, 0.00);
  1042.     CreateObject(870, 1522.72, -1509.63, 13.52,   0.00, 0.00, 0.00);
  1043.     CreateObject(870, 1522.96, -1507.21, 13.60,   0.00, 0.00, 0.00);
  1044.     CreateObject(870, 1522.69, -1505.58, 13.46,   0.00, 0.00, 0.00);
  1045.     CreateObject(870, 1522.57, -1503.85, 13.39,   0.00, 0.00, 0.00);
  1046.     CreateObject(870, 1501.91, -1503.95, 13.45,   0.00, 0.00, 0.00);
  1047.     CreateObject(870, 1501.78, -1507.11, 13.43,   0.00, 0.00, 0.00);
  1048.     CreateObject(870, 1501.98, -1509.48, 13.39,   0.00, 0.00, 0.00);
  1049.     CreateObject(870, 1501.82, -1511.43, 13.33,   0.00, 0.00, 0.00);
  1050.     CreateObject(870, 1502.02, -1513.31, 13.35,   0.00, 0.00, 0.00);
  1051.     CreateObject(870, 1502.01, -1517.15, 13.48,   0.00, 0.00, 0.00);
  1052.     CreateObject(870, 1501.89, -1519.25, 13.49,   0.00, 0.00, 0.00);
  1053.     CreateObject(870, 1501.83, -1521.90, 13.39,   0.00, 0.00, 0.00);
  1054.     CreateObject(870, 1501.91, -1524.50, 13.48,   0.00, 0.00, 0.00);
  1055.     CreateObject(870, 1499.67, -1524.54, 13.41,   0.00, 0.00, 0.00);
  1056.     CreateObject(870, 1498.17, -1524.61, 13.42,   0.00, 0.00, 0.00);
  1057.     CreateObject(870, 1495.82, -1524.71, 13.41,   0.00, 0.00, 0.00);
  1058.     CreateObject(870, 1493.85, -1524.61, 13.40,   0.00, 0.00, 0.00);
  1059.     CreateObject(870, 1492.28, -1524.43, 13.39,   0.00, 0.00, 0.00);
  1060.     CreateObject(870, 1489.61, -1524.63, 13.38,   0.00, 0.00, 0.00);
  1061.     CreateObject(870, 1489.37, -1527.02, 13.29,   0.00, 0.00, 0.00);
  1062.     CreateObject(870, 1489.26, -1530.50, 13.40,   0.00, 0.00, 0.00);
  1063.     CreateObject(870, 1489.21, -1533.00, 13.43,   0.00, 0.00, 0.00);
  1064.     CreateObject(870, 1489.25, -1535.40, 13.32,   0.00, 0.00, 0.00);
  1065.     CreateObject(870, 1489.27, -1537.63, 13.30,   0.00, 0.00, 0.00);
  1066.     CreateObject(870, 1487.30, -1537.34, 13.33,   0.00, 0.00, 0.00);
  1067.     CreateObject(870, 1485.20, -1537.33, 13.37,   0.00, 0.00, 0.00);
  1068.     CreateObject(870, 1483.11, -1537.35, 13.31,   0.00, 0.00, 0.00);
  1069.     CreateObject(870, 1481.66, -1537.38, 13.42,   0.00, 0.00, 0.00);
  1070.     CreateObject(1290, 1481.29, -1581.54, 18.84,   0.00, 0.00, 90.00);
  1071.     CreateObject(1256, 1519.23, -1519.41, 15.03,   0.00, 0.00, 0.00);
  1072.     CreateObject(1256, 1519.21, -1515.27, 15.03,   0.00, 0.00, 0.00);
  1073.     CreateObject(1256, 1505.37, -1519.49, 15.03,   0.00, 0.00, 180.00);
  1074.     CreateObject(1256, 1505.42, -1514.88, 15.03,   0.00, 0.00, 180.00);
  1075.     CreateObject(3458, 1460.95, -1560.40, 14.47,   0.00, 0.00, 269.99);
  1076.     CreateObject(3458, 1460.96, -1520.00, 14.47,   0.00, 0.00, 269.99);
  1077.     CreateObject(1361, 1519.07, -1517.31, 15.12,   0.00, 0.00, 0.00);
  1078.     CreateObject(1361, 1505.27, -1517.24, 15.12,   0.00, 0.00, 0.00);
  1079.     CreateObject(1267, 1440.75, -1580.05, 24.16,   0.00, 0.00, 23.42);
  1080.     CreateObject(1258, 1519.25, -1513.34, 15.02,   0.00, 0.00, 90.39);
  1081.     CreateObject(1258, 1505.36, -1512.94, 15.01,   0.00, 0.00, 90.15);
  1082.     CreateObject(2942, 1512.78, -1564.43, 15.00,   0.00, 0.00, 0.00);
  1083.     CreateObject(4602, 1400.29, -1621.55, 83.58,   0.00, 0.00, 0.00);
  1084.     CreateObject(3578, 1473.92, -1582.07, 11.87,   0.00, 0.00, 0.00);
  1085.     CreateObject(3578, 1470.93, -1499.49, 11.87,   0.00, 0.00, 0.00);
  1086.     CreateObject(3578, 1473.95, -1499.49, 11.87,   0.00, 0.00, 0.00);
  1087.     CreateObject(3522, 1505.43, -1571.91, 14.37,   0.00, 0.00, 0.00);
  1088.     CreateObject(3522, 1518.99, -1572.05, 14.37,   0.00, 0.00, 180.10);
  1089.     CreateObject(7893, 1499.28, -1493.65, 13.04,   0.00, 0.00, 104.43);
  1090.     CreateObject(7904, 1444.10, -1579.13, 30.16,   0.00, 0.00, 128.31);
  1091.     CreateObject(8131, 1542.30, -1577.59, 23.19,   0.00, 0.00, 0.00);
  1092.     CreateObject(8652, 1457.74, -1567.49, 13.90,   0.00, 0.00, 90.14);
  1093.     CreateObject(8652, 1457.55, -1514.06, 13.82,   0.00, 0.00, 269.88);
  1094.     CreateObject(1649, 1492.23, -1751.33, 24.96,   0.00, 0.00, 180.00);
  1095.     CreateObject(1649, 1486.56, -1751.33, 24.96,   0.00, 0.00, 180.00);
  1096.     CreateObject(1649, 1481.18, -1751.33, 24.96,   0.00, 0.00, 180.00);
  1097.     CreateObject(1649, 1475.77, -1751.33, 24.96,   0.00, 0.00, 180.00);
  1098.     CreateObject(1649, 1470.23, -1751.33, 24.96,   0.00, 0.00, 180.00);
  1099.     CreateObject(1649, 1492.21, -1751.33, 21.69,   0.00, 0.00, 180.00);
  1100.     CreateObject(1649, 1486.57, -1751.33, 21.69,   0.00, 0.00, 180.00);
  1101.     CreateObject(1649, 1481.06, -1751.33, 21.69,   0.00, 0.00, 180.00);
  1102.     CreateObject(1649, 1475.66, -1751.33, 21.69,   0.00, 0.00, 180.00);
  1103.     CreateObject(1649, 1470.21, -1751.33, 21.69,   0.00, 0.00, 180.00);
  1104.     CreateObject(1649, 1492.20, -1751.33, 18.40,   0.00, 0.00, 180.00);
  1105.     CreateObject(1649, 1492.22, -1751.33, 15.08,   0.00, 0.00, 180.00);
  1106.     CreateObject(1649, 1470.21, -1751.33, 18.40,   0.00, 0.00, 180.00);
  1107.     CreateObject(1649, 1470.18, -1751.33, 15.11,   0.00, 0.00, 180.00);
  1108.     CreateObject(9833, 1533.54, -1510.71, 17.04,   0.00, 0.00, 0.00);
  1109.     CreateObject(11420, 1534.92, -1510.62, 12.77,   0.00, 0.00, -15.60);
  1110.     CreateObject(10183, 1604.00, 1946.00, -1622.00,   0.00, 0.00, 0.00);
  1111.     CreateObject(10183, 1604.20, -1622.62, 12.53,   0.00, 0.00, 315.49);
  1112.     CreateObject(673, 1540.91, -1639.13, 12.86,   0.00, 0.00, 0.00);
  1113.     CreateObject(673, 1541.22, -1648.49, 13.21,   0.00, 0.00, 0.00);
  1114.     CreateObject(700, 1545.83, -1661.58, 13.28,   0.00, 0.00, 0.00);
  1115.     CreateObject(673, 1546.36, -1658.27, 12.45,   0.00, 0.00, 0.00);
  1116.     CreateObject(673, 1546.82, -1664.24, 12.63,   0.00, 0.00, 0.00);
  1117.     CreateObject(673, 1546.51, -1687.09, 12.64,   0.00, 0.00, 0.00);
  1118.     CreateObject(673, 1546.08, -1693.16, 12.64,   0.00, 0.00, 0.00);
  1119.     CreateObject(673, 1541.49, -1702.85, 12.77,   0.00, 0.00, 0.00);
  1120.     CreateObject(673, 1541.32, -1713.09, 12.83,   0.00, 0.00, 0.00);
  1121.     CreateObject(732, 1541.50, -1708.75, 12.91,   0.00, 0.00, 0.00);
  1122.     CreateObject(732, 1541.52, -1643.55, 12.97,   0.00, 0.00, 0.00);
  1123.     CreateObject(700, 1545.74, -1690.14, 13.26,   0.00, 0.00, 0.00);
  1124.     CreateObject(708, 1479.75, -1665.69, 13.70,   0.00, 0.00, 277.11);
  1125.     CreateObject(648, 1500.99, -1710.19, 8.69,   0.00, 0.00, 324.17);
  1126.     CreateObject(648, 1500.76, -1697.44, 8.63,   0.00, 0.00, 324.17);
  1127.     CreateObject(648, 1500.82, -1684.80, 8.67,   0.00, 0.00, 324.17);
  1128.     CreateObject(648, 1456.06, -1709.35, 8.69,   0.00, 0.00, 144.82);
  1129.     CreateObject(648, 1455.92, -1697.88, 8.69,   0.00, 0.00, 144.82);
  1130.     CreateObject(648, 1456.06, -1683.83, 8.69,   0.00, 0.00, 144.82);
  1131.     CreateObject(869, 1457.09, -1712.05, 13.95,   0.00, 0.00, 0.00);
  1132.     CreateObject(869, 1463.27, -1712.19, 14.05,   0.00, 0.00, 0.00);
  1133.     CreateObject(869, 1460.57, -1712.06, 13.71,   0.00, 0.00, 0.00);
  1134.     CreateObject(869, 1456.44, -1709.28, 13.96,   0.00, 0.00, 0.00);
  1135.     CreateObject(869, 1460.44, -1709.21, 13.94,   0.00, 0.00, 0.00);
  1136.     CreateObject(869, 1463.47, -1709.13, 13.85,   0.00, 0.00, 0.00);
  1137.     CreateObject(869, 1456.81, -1706.18, 13.84,   0.00, 0.00, 0.00);
  1138.     CreateObject(869, 1460.10, -1705.95, 13.80,   0.00, 0.00, 0.00);
  1139.     CreateObject(869, 1463.42, -1705.83, 13.91,   0.00, 0.00, 0.00);
  1140.     CreateObject(869, 1457.00, -1702.89, 13.80,   0.00, 0.00, 0.00);
  1141.     CreateObject(869, 1460.55, -1702.53, 13.76,   0.00, 0.00, 0.00);
  1142.     CreateObject(869, 1463.47, -1702.42, 13.80,   0.00, 0.00, 0.00);
  1143.     CreateObject(869, 1456.90, -1699.34, 13.86,   0.00, 0.00, 0.00);
  1144.     CreateObject(869, 1460.72, -1699.35, 13.82,   0.00, 0.00, 0.00);
  1145.     CreateObject(869, 1463.47, -1699.18, 13.94,   0.00, 0.00, 0.00);
  1146.     CreateObject(869, 1457.09, -1696.04, 13.91,   0.00, 0.00, 0.00);
  1147.     CreateObject(869, 1460.82, -1695.84, 13.78,   0.00, 0.00, 0.00);
  1148.     CreateObject(869, 1463.54, -1695.83, 13.78,   0.00, 0.00, 0.00);
  1149.     CreateObject(869, 1457.14, -1692.76, 13.90,   0.00, 0.00, 0.00);
  1150.     CreateObject(869, 1460.87, -1692.40, 13.74,   0.00, 0.00, 0.00);
  1151.     CreateObject(869, 1463.46, -1692.27, 13.92,   0.00, 0.00, 0.00);
  1152.     CreateObject(869, 1456.50, -1689.80, 13.84,   0.00, 0.00, 0.00);
  1153.     CreateObject(869, 1460.33, -1689.59, 13.81,   0.00, 0.00, 0.00);
  1154.     CreateObject(869, 1463.32, -1689.45, 13.97,   0.00, 0.00, 0.00);
  1155.     CreateObject(869, 1456.77, -1686.75, 13.81,   0.00, 0.00, 0.00);
  1156.     CreateObject(869, 1460.50, -1686.66, 13.79,   0.00, 0.00, 0.00);
  1157.     CreateObject(869, 1463.43, -1685.96, 13.85,   0.00, 0.00, 0.00);
  1158.     CreateObject(869, 1457.33, -1683.87, 13.89,   0.00, 0.00, 0.00);
  1159.     CreateObject(869, 1460.70, -1684.01, 13.91,   0.00, 0.00, 0.00);
  1160.     CreateObject(869, 1463.36, -1683.77, 13.95,   0.00, 0.00, 0.00);
  1161.     CreateObject(869, 1500.02, -1684.18, 13.89,   0.00, 0.00, 0.00);
  1162.     CreateObject(869, 1496.81, -1684.02, 13.89,   0.00, 0.00, 0.00);
  1163.     CreateObject(869, 1493.52, -1683.89, 14.10,   0.00, 0.00, 0.00);
  1164.     CreateObject(869, 1500.22, -1687.19, 13.88,   0.00, 0.00, 0.00);
  1165.     CreateObject(869, 1496.51, -1687.06, 13.96,   0.00, 0.00, 0.00);
  1166.     CreateObject(869, 1493.63, -1687.22, 14.01,   0.00, 0.00, 0.00);
  1167.     CreateObject(869, 1499.86, -1690.33, 13.96,   0.00, 0.00, 0.00);
  1168.     CreateObject(869, 1496.05, -1690.33, 13.90,   0.00, 0.00, 0.00);
  1169.     CreateObject(869, 1493.57, -1690.44, 13.85,   0.00, 0.00, 0.00);
  1170.     CreateObject(869, 1496.98, -1693.89, 13.78,   0.00, 0.00, 0.00);
  1171.     CreateObject(869, 1500.22, -1694.06, 13.76,   0.00, 0.00, 0.00);
  1172.     CreateObject(869, 1493.56, -1693.54, 13.90,   0.00, 0.00, 0.00);
  1173.     CreateObject(869, 1500.01, -1697.35, 13.86,   0.00, 0.00, 0.00);
  1174.     CreateObject(869, 1496.50, -1697.47, 13.86,   0.00, 0.00, 0.00);
  1175.     CreateObject(869, 1493.67, -1696.91, 14.05,   0.00, 0.00, 0.00);
  1176.     CreateObject(869, 1500.02, -1700.64, 13.90,   0.00, 0.00, 0.00);
  1177.     CreateObject(869, 1496.46, -1700.73, 13.87,   0.00, 0.00, 0.00);
  1178.     CreateObject(869, 1493.69, -1700.53, 13.89,   0.00, 0.00, 0.00);
  1179.     CreateObject(869, 1500.14, -1703.62, 13.90,   0.00, 0.00, 0.00);
  1180.     CreateObject(869, 1496.69, -1703.69, 13.95,   0.00, 0.00, 0.00);
  1181.     CreateObject(869, 1493.60, -1703.62, 13.89,   0.00, 0.00, 0.00);
  1182.     CreateObject(869, 1500.14, -1706.92, 14.00,   0.00, 0.00, 0.00);
  1183.     CreateObject(869, 1496.60, -1707.07, 14.01,   0.00, 0.00, 0.00);
  1184.     CreateObject(869, 1493.55, -1706.99, 14.05,   0.00, 0.00, 0.00);
  1185.     CreateObject(869, 1500.16, -1710.14, 13.94,   0.00, 0.00, 0.00);
  1186.     CreateObject(869, 1496.88, -1710.22, 13.96,   0.00, 0.00, 0.00);
  1187.     CreateObject(869, 1493.60, -1709.82, 13.96,   0.00, 0.00, 0.00);
  1188.     CreateObject(869, 1500.25, -1712.32, 13.78,   0.00, 0.00, 0.00);
  1189.     CreateObject(869, 1497.22, -1712.07, 13.90,   0.00, 0.00, 0.00);
  1190.     CreateObject(869, 1493.79, -1712.18, 13.90,   0.00, 0.00, 0.00);
  1191.     CreateObject(11548, 1559.13, -1613.43, 12.45,   0.00, 0.00, 321.69);
  1192.     CreateObject(1223, 1547.53, -1622.56, 12.46,   0.00, 0.00, 268.34);
  1193.     CreateObject(1223, 1547.53, -1633.29, 12.54,   0.00, 0.00, 89.10);
  1194.     CreateObject(1223, 1559.88, -1622.56, 12.46,   0.00, 0.00, 268.34);
  1195.     CreateObject(1223, 1559.88, -1633.29, 12.55,   0.00, 0.00, 89.10);
  1196.     CreateObject(1223, 1573.58, -1622.56, 12.54,   0.00, 0.00, 268.34);
  1197.     CreateObject(1223, 1573.58, -1633.29, 12.55,   0.00, 0.00, 89.10);
  1198.     CreateObject(1233, 1537.38, -1681.27, 13.83,   0.00, 0.00, 212.37);
  1199.     CreateObject(1251, 1544.69, -1627.27, 12.41,   0.00, 0.00, 0.00);
  1200.     CreateObject(3578, 1470.69, -1582.07, 11.87,   0.00, 0.00, 0.00);
  1201.     CreateObject(1649, 1492.19, -1751.35, 24.96,   0.00, 0.00, 360.00);
  1202.     CreateObject(1649, 1492.21, -1751.33, 21.69,   0.00, 0.00, 360.00);
  1203.     CreateObject(1649, 1492.20, -1751.33, 18.40,   0.00, 0.00, 360.00);
  1204.     CreateObject(1649, 1492.22, -1751.33, 15.32,   0.00, 0.00, 360.00);
  1205.     CreateObject(1649, 1481.18, -1751.33, 24.96,   0.00, 0.00, 360.00);
  1206.     CreateObject(1649, 1481.06, -1751.33, 21.69,   0.00, 0.00, 360.00);
  1207.     CreateObject(1649, 1486.56, -1751.33, 24.96,   0.00, 0.00, 360.00);
  1208.     CreateObject(1649, 1486.59, -1751.33, 21.69,   0.00, 0.00, 360.00);
  1209.     CreateObject(1649, 1475.00, 7700.00, -1749.00,   0.00, 0.00, 0.00);
  1210.     CreateObject(1649, 1475.00, 7700.00, -1750.00,   0.00, 0.00, 0.00);
  1211.     CreateObject(1649, 1475.00, 7700.00, -1750.31,   0.00, 0.00, 0.00);
  1212.     CreateObject(1649, 1475.00, 7700.00, -1750.88,   0.00, 0.00, 0.00);
  1213.     CreateObject(1649, 1475.77, -1751.33, 24.96,   0.00, 0.00, 360.00);
  1214.     CreateObject(1649, 1475.66, -1751.33, 21.69,   0.00, 0.00, 360.00);
  1215.     CreateObject(1649, 1470.23, -1751.33, 24.96,   0.00, 0.00, 360.00);
  1216.     CreateObject(1649, 1470.21, -1751.33, 21.69,   0.00, 0.00, 360.00);
  1217.     CreateObject(1649, 1470.21, -1751.33, 18.40,   0.00, 0.00, 360.00);
  1218.     CreateObject(1649, 1470.18, -1751.33, 15.11,   0.00, 0.00, 360.00);
  1219.     CreateObject(3437, 1486.66, -1751.48, 14.16,   0.00, 0.00, 0.00);
  1220.     CreateObject(3437, 1475.67, -1751.24, 14.15,   0.00, 0.00, 0.00);
  1221.     CreateObject(656, 1543.63, -1748.00, 12.89,   0.00, 0.00, 0.00);
  1222.     CreateObject(656, 1523.81, -1747.52, 13.04,   0.00, 0.00, 0.00);
  1223.     CreateObject(656, 1438.74, -1747.72, 13.03,   0.00, 0.00, 0.00);
  1224.     CreateObject(656, 1417.07, -1747.96, 13.11,   0.00, 0.00, 0.00);
  1225.     CreateObject(970, 1472.74, -1579.70, 13.11,   0.00, 0.00, 89.29);
  1226.     CreateObject(8843, 1475.89, -1571.47, 12.60,   0.00, 0.00, 0.00);
  1227.     CreateObject(8843, 1469.30, -1571.47, 12.61,   0.00, 0.00, 180.00);
  1228.     CreateObject(970, 1472.70, -1501.85, 13.15,   0.00, 0.00, 90.18);
  1229.     CreateObject(8843, 1475.73, -1510.26, 12.59,   0.00, 0.00, 0.00);
  1230.     CreateObject(8843, 1469.23, -1510.26, 12.59,   0.00, 0.00, 180.00);
  1231.     CreateObject(717, 1423.04, -1613.77, 12.79,   0.00, 0.00, 0.00);
  1232.     CreateObject(717, 1422.97, -1629.13, 12.76,   0.00, 0.00, 0.00);
  1233.     CreateObject(717, 1423.02, -1603.13, 12.74,   0.00, 0.00, 0.00);
  1234.     CreateObject(717, 1423.05, -1639.95, 12.72,   0.00, 0.00, 0.00);
  1235.     CreateObject(717, 1408.00, 1316.00, -1643.00,   0.00, 0.00, 0.00);
  1236.     CreateObject(717, 1392.54, -1643.86, 12.75,   0.00, 0.00, 0.00);
  1237.     CreateObject(717, 1407.97, -1643.86, 12.72,   0.00, 0.00, 0.00);
  1238.     CreateObject(717, 1381.89, -1643.86, 12.76,   0.00, 0.00, 0.00);
  1239.     CreateObject(717, 1377.75, -1613.82, 12.76,   0.00, 0.00, 0.00);
  1240.     CreateObject(717, 1377.71, -1629.38, 12.74,   0.00, 0.00, 0.00);
  1241.     CreateObject(717, 1407.99, -1598.96, 12.75,   0.00, 0.00, 0.00);
  1242.     CreateObject(717, 1392.64, -1596.76, 12.74,   0.00, 0.00, 345.13);
  1243.     CreateObject(717, 1382.00, 3633.00, -1593.00,   0.00, 0.00, 0.00);
  1244.     CreateObject(717, 1382.00, 4655.00, -1593.00,   0.00, 0.00, 0.00);
  1245.     CreateObject(717, 1382.49, -1594.26, 12.65,   0.00, 0.00, 345.10);
  1246.     CreateObject(1408, 1494.26, -1713.79, 14.14,   0.00, 0.00, 0.00);
  1247.     CreateObject(1408, 1499.45, -1713.79, 14.14,   0.00, 0.00, 0.00);
  1248.     CreateObject(1408, 1502.18, -1711.13, 14.14,   0.00, 0.00, 89.86);
  1249.     CreateObject(1408, 1502.18, -1705.66, 14.14,   0.00, 0.00, 89.86);
  1250.     CreateObject(1408, 1502.18, -1700.22, 14.12,   0.00, 0.00, 89.86);
  1251.     CreateObject(1408, 1502.18, -1694.74, 14.12,   0.00, 0.00, 89.86);
  1252.     CreateObject(1408, 1502.18, -1689.27, 14.12,   0.00, 0.00, 89.86);
  1253.     CreateObject(1408, 1502.18, -1684.84, 14.12,   0.00, 0.00, 89.86);
  1254.     CreateObject(1408, 1499.45, -1682.21, 14.12,   0.00, 0.00, 180.54);
  1255.     CreateObject(1408, 1494.64, -1682.21, 14.12,   0.00, 0.00, 180.13);
  1256.     CreateObject(1408, 1491.67, -1684.86, 14.12,   0.00, 0.00, 270.02);
  1257.     CreateObject(1408, 1491.67, -1690.34, 14.12,   0.00, 0.00, 270.02);
  1258.     CreateObject(1408, 1491.67, -1695.78, 14.12,   0.00, 0.00, 270.00);
  1259.     CreateObject(1408, 1491.67, -1701.29, 14.12,   0.00, 0.00, 270.00);
  1260.     CreateObject(1408, 1491.67, -1706.77, 14.12,   0.00, 0.00, 270.00);
  1261.     CreateObject(1408, 1491.67, -1710.79, 14.12,   0.00, 0.00, 270.00);
  1262.     CreateObject(646, 1486.61, -1749.80, 15.82,   0.00, 0.00, 0.00);
  1263.     CreateObject(646, 1475.81, -1749.81, 15.82,   0.00, 0.00, 0.00);
  1264.     CreateObject(8674, 1539.58, -1612.67, 17.37,   0.00, 0.00, 90.00);
  1265.     CreateObject(8674, 1539.58, -1607.48, 17.37,   0.00, 0.00, 90.00);
  1266.     CreateObject(8674, 1544.77, -1617.86, 17.37,   0.00, 0.00, 0.00);
  1267.     CreateObject(8674, 1544.74, -1602.30, 17.37,   0.00, 0.00, 0.00);
  1268.     CreateObject(8674, 1555.06, -1602.30, 17.37,   0.00, 0.00, 0.00);
  1269.     CreateObject(8674, 1565.36, -1602.32, 17.37,   0.00, 0.00, -0.12);
  1270.     CreateObject(8674, 1574.54, -1602.32, 17.37,   0.00, 0.00, -0.12);
  1271.     CreateObject(8674, 1584.83, -1602.32, 17.37,   0.00, 0.00, -0.12);
  1272.     CreateObject(8674, 1595.11, -1602.32, 17.37,   0.00, 0.00, -0.12);
  1273.     CreateObject(8674, 1602.82, -1602.32, 17.37,   0.00, 0.00, -0.12);
  1274.     CreateObject(8674, 1608.13, -1607.55, 17.37,   0.00, 0.00, 90.00);
  1275.     CreateObject(8674, 1608.13, -1617.80, 17.37,   0.00, 0.00, 90.00);
  1276.     CreateObject(8674, 1608.13, -1628.08, 17.37,   0.00, 0.00, 90.00);
  1277.     CreateObject(8674, 1608.13, -1632.94, 17.37,   0.00, 0.00, 90.00);
  1278.     CreateObject(8674, 1602.98, -1638.10, 17.37,   0.00, 0.00, 0.00);
  1279.     CreateObject(1308, 1549.91, -1617.87, 12.55,   0.00, 0.00, 0.00);
  1280.     CreateObject(8652, 1457.75, -1537.77, 13.82,   0.00, 0.00, 90.00);
  1281.     CreateObject(1290, 1464.84, -1582.02, 18.84,   0.00, 0.00, 90.00);
  1282.     CreateObject(1290, 1458.39, -1499.42, 19.03,   0.00, 0.00, 90.00);
  1283.     CreateObject(1290, 1482.79, -1500.18, 18.84,   0.00, 0.00, 90.00);
  1284.     CreateObject(1408, 1465.36, -1711.10, 14.13,   0.00, 0.00, 90.00);
  1285.     CreateObject(1408, 1465.36, -1705.59, 14.13,   0.00, 0.00, 90.00);
  1286.     CreateObject(1408, 1465.36, -1700.11, 14.13,   0.00, 0.00, 90.00);
  1287.     CreateObject(1408, 1465.36, -1694.62, 14.13,   0.00, 0.00, 90.00);
  1288.     CreateObject(1408, 1465.36, -1689.14, 14.13,   0.00, 0.00, 90.00);
  1289.     CreateObject(1408, 1465.36, -1685.12, 14.13,   0.00, 0.00, 90.00);
  1290.     CreateObject(1408, 1462.70, -1682.22, 14.13,   0.00, 0.00, 180.00);
  1291.     CreateObject(1408, 1457.49, -1682.22, 14.13,   0.00, 0.00, 180.00);
  1292.     CreateObject(1408, 1454.86, -1684.95, 14.13,   0.00, 0.00, 270.00);
  1293.     CreateObject(1408, 1454.86, -1690.43, 14.13,   0.00, 0.00, 270.00);
  1294.     CreateObject(1408, 1454.86, -1695.92, 14.13,   0.00, 0.00, 270.00);
  1295.     CreateObject(1408, 1454.86, -1701.41, 14.13,   0.00, 0.00, 270.00);
  1296.     CreateObject(1408, 1454.86, -1706.89, 14.13,   0.00, 0.00, 270.00);
  1297.     CreateObject(1408, 1454.86, -1710.91, 14.13,   0.00, 0.00, 270.00);
  1298.     CreateObject(1408, 1457.52, -1713.78, 14.13,   0.00, 0.00, 0.00);
  1299.     CreateObject(1408, 1462.71, -1713.78, 14.13,   0.00, 0.00, 0.00);
  1300.     CreateObject(4641, 1464.15, -1498.16, 14.27,   0.00, 0.00, 180.00);
  1301.     CreateObject(966, 1479.88, -1499.50, 12.65,   0.00, 0.00, 0.00);
  1302.     CreateObject(966, 1465.47, -1499.50, 12.65,   0.00, 0.00, 180.00);
  1303.     CreateObject(4641, 1480.75, -1583.42, 14.22,   0.00, 0.00, 0.00);
  1304.     CreateObject(966, 1479.94, -1582.04, 12.65,   0.00, 0.00, 0.00);
  1305.     CreateObject(966, 1465.44, -1582.04, 12.65,   0.00, 0.00, 180.00);
  1306.     CreateObject(968, 1465.34, -1582.05, 13.47,   0.00, 90.00, 0.00);
  1307.     CreateObject(968, 1480.02, -1582.02, 13.47,   0.00, 270.00, 0.00);
  1308.     CreateObject(968, 1479.95, -1499.49, 13.49,   0.00, 269.42, 0.00);
  1309.     CreateObject(968, 1465.40, -1499.51, 13.49,   0.00, 90.00, 0.00);
  1310.     CreateObject(984, 1488.91, -1582.26, 13.60,   0.00, 0.00, 90.00);
  1311.     CreateObject(983, 1495.33, -1582.26, 13.65,   0.00, 0.00, 90.00);
  1312.     CreateObject(1232, 1498.48, -1581.42, 15.57,   0.00, 0.00, 0.00);
  1313.     CreateObject(983, 1461.22, -1582.28, 13.65,   0.00, 0.00, 90.00);
  1314.     CreateObject(983, 1462.03, -1499.25, 13.64,   0.00, 0.00, 90.00);
  1315.     CreateObject(984, 1486.58, -1499.23, 13.59,   0.00, 0.00, 90.00);
  1316.     CreateObject(983, 1495.57, -1499.23, 13.66,   0.00, 0.00, 90.00);
  1317.     CreateObject(984, 1531.93, -1499.21, 13.61,   0.00, 0.00, 90.00);
  1318.     CreateObject(983, 1539.94, -1499.21, 13.67,   0.00, 0.00, 90.00);
  1319.     CreateObject(983, 1543.91, -1499.21, 13.67,   0.00, 0.00, 90.00);
  1320.     CreateObject(984, 1547.09, -1505.62, 13.62,   0.00, 0.00, 0.00);
  1321.     CreateObject(984, 1547.09, -1518.47, 13.62,   0.00, 0.00, 0.00);
  1322.     CreateObject(983, 1547.09, -1526.47, 13.66,   0.00, 0.00, 0.00);
  1323.     CreateObject(983, 1547.09, -1530.86, 13.66,   0.00, 0.00, 0.00);
  1324.     CreateObject(984, 1547.11, -1567.20, 13.60,   0.00, 0.00, 0.00);
  1325.     CreateObject(984, 1547.11, -1575.88, 13.60,   0.00, 0.00, 0.00);
  1326.     CreateObject(984, 1540.67, -1582.27, 13.60,   0.00, 0.00, 90.00);
  1327.     CreateObject(984, 1531.95, -1582.27, 13.60,   0.00, 0.00, 90.00);
  1328.     CreateObject(1232, 1525.78, -1581.44, 15.61,   0.00, 0.00, 0.00);
  1329.     CreateObject(1232, 1498.44, -1500.13, 15.59,   0.00, 0.00, 0.00);
  1330.     CreateObject(1232, 1525.71, -1500.12, 15.60,   0.00, 0.00, 0.00);
  1331.     CreateObject(1232, 1546.22, -1533.79, 15.65,   0.00, 0.00, 0.00);
  1332.     CreateObject(1232, 1546.19, -1561.05, 15.63,   0.00, 0.00, 0.00);
  1333.    
  1334.     //Die PN's:
  1335.     CreateObject(971, 1025.3000488281, -1029.3000488281, 31.799999237061, 0, 0, 0);
  1336.     CreateObject(971, 1042.4000244141, -1025.9000244141, 31.299999237061, 0, 0, 0);
  1337.     CreateObject(3550, 488.5, -1734.5, 12, 0, 0, 82);
  1338.     CreateObject(3550, 720, -462.79998779297, 15.699999809265, 0, 0, 269.99996948242);
  1339.     CreateObject(3550, -1934, 239.10000610352, 35.700000762939, 0, 0, 269.99996948242);
  1340.     CreateObject(3550, -1936.8000488281, 239.10000610352, 35.5, 0, 0, 269.99996948242);
  1341.     CreateObject(3550, -2715.8999023438, 218.89999389648, 5.6999998092651, 0, 0, 0);
  1342.     CreateObject(3550, -2715.8999023438, 215.19999694824, 5.6999998092651, 0, 0, 0);
  1343.     CreateObject(3550, -2426.3999023438, 1028.4000244141, 51.799999237061, 0, 358, 89.999969482422);
  1344.     CreateObject(3550, -2423, 1028.4000244141, 51.799999237061, 0, 0, 90);
  1345.     CreateObject(3550, -99.599998474121, 1111.0999755859, 20.10000038147, 0, 359.5, 269.99996948242);
  1346.     CreateObject(3550, -101.19999694824, 1111.1999511719, 19.700000762939, 0, 0, 269.99996948242);
  1347.     CreateObject(971, 1968.5999755859, 2162.6000976563, 12.60000038147, 0, 0, 269.99996948242);
  1348.     return 1;
  1349. }
  1350.  
  1351. public OnGameModeExit()
  1352. {
  1353.     SaveAll();
  1354.     return 1;
  1355. }
  1356.  
  1357. public OnPlayerRequestClass(playerid, classid)
  1358. {
  1359.     SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
  1360.     SpawnPlayer(playerid);
  1361.     return 1;
  1362. }
  1363.  
  1364. public OnPlayerConnect(playerid)
  1365. {
  1366. /*  if(!strfind(GetName(playerid), "_", true) || !strfind(GetName(playerid), ".", true))
  1367.     {
  1368.         SendClientMessage(playerid, COLOR_RED, "[Server] Ungültiger Name.");
  1369.         SendClientMessage(playerid, COLOR_RED, "Bitte kommen mit einem Vornamen_Nachnamen (beachte den Unterstrich) wieder!");
  1370.         Kick(playerid);
  1371.     }*/
  1372.     printf("%s betritt den Server ...", GetName(playerid));
  1373.     if(mysql_CheckAccountWCF(playerid) == 0)
  1374.     {
  1375.         new str[250];
  1376.         printf("WCF Account nicht gefunden!");
  1377.         SendClientMessage(playerid, COLOR_BLUE,"["COLOR_YELLOW_HTML"Database"COLOR_BLUE_HTML": Suche Account ...]");
  1378.         SendClientMessage(playerid, COLOR_BLUE,"[Database: Account "COLOR_RED_HTML"nicht erkannt"COLOR_BLUE_HTML"!]");
  1379.         format(str, sizeof(str), "Hallo "COLOR_YELLOW_HTML"%s,\n"COLOR_WHITE_HTML"es tut uns leid für diese Umstände, doch um unsere Datenbank immer gepflegt zu halten, müsstest du dich erst im Forum ("COLOR_BLUE_HTML"www.forum.deutsches-rollenspiel.de"COLOR_WHITE_HTML") registrieren.", GetName(playerid));
  1380.         ShowPlayerDialog(playerid, DIALOG_KEINACC, DIALOG_STYLE_MSGBOX, "Kein Account gefunden", str, "Bis gleich", "");
  1381.         Kick(playerid);
  1382.     }
  1383.     else if(mysql_CheckAccountWCF(playerid) == 1 && mysql_CheckAccountSAMP(playerid) == 1)
  1384.     {
  1385.         printf("Alles vorhanden ...");
  1386.         SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Suche Account ...]");
  1387.         SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Account wurde"COLOR_GREEN_HTML" gefunden"COLOR_BLUE_HTML"!]");
  1388.         ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", "Loggen Sie sich hier mit Ihrem bei der Registrierung angegebenem Passwort ein.\n"COLOR_RED_HTML"Sollten Sie das Passwort verloren haben, wenden Sie sich an einen Administrator.", "Absenden", "");
  1389.     }
  1390.     else if(mysql_CheckAccountWCF(playerid) == 1 && mysql_CheckAccountSAMP(playerid) == 0)
  1391.     {
  1392.         printf("Nur Forum gefunden, InGame nicht!");
  1393.         SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Suche Account ...]");
  1394.         SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Account wurde"COLOR_GREEN_HTML" gefunden"COLOR_BLUE_HTML"!]");
  1395.         ShowPlayerDialog(playerid, DIALOG_FORUMLOGIN, DIALOG_STYLE_INPUT, "Einloggen in den Forenaccount", "Tippen Sie hier das zu Ihrem Forenaccount passende Passwort ein!", "Absenden", "");
  1396.     }
  1397.     //LSPD
  1398.     RemoveBuildingForPlayer(playerid, 4026, 1497.7969, -1543.7109, 17.5547, 0.25);
  1399.     RemoveBuildingForPlayer(playerid, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
  1400.     RemoveBuildingForPlayer(playerid, 4218, 1497.7031, -1546.6172, 43.9922, 0.25);
  1401.     RemoveBuildingForPlayer(playerid, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
  1402.     RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
  1403.     RemoveBuildingForPlayer(playerid, 1266, 1565.4141, -1722.3125, 25.0391, 0.25);
  1404.     RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
  1405.     RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
  1406.     RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
  1407.     RemoveBuildingForPlayer(playerid, 673, 1415.3125, -1748.5625, 12.3984, 0.25);
  1408.     RemoveBuildingForPlayer(playerid, 700, 1438.0313, -1747.9375, 13.4453, 0.25);
  1409.     RemoveBuildingForPlayer(playerid, 1258, 1445.0078, -1692.2344, 13.6953, 0.25);
  1410.     RemoveBuildingForPlayer(playerid, 712, 1445.8125, -1650.0234, 22.2578, 0.25);
  1411.     RemoveBuildingForPlayer(playerid, 620, 1379.2422, -1622.4531, 12.8672, 0.25);
  1412.     RemoveBuildingForPlayer(playerid, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
  1413.     RemoveBuildingForPlayer(playerid, 1294, 1392.6563, -1594.7188, 16.9063, 0.25);
  1414.     RemoveBuildingForPlayer(playerid, 673, 1457.7266, -1710.0625, 12.3984, 0.25);
  1415.     RemoveBuildingForPlayer(playerid, 620, 1461.6563, -1707.6875, 11.8359, 0.25);
  1416.     RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
  1417.     RemoveBuildingForPlayer(playerid, 673, 1457.5547, -1697.2891, 12.3984, 0.25);
  1418.     RemoveBuildingForPlayer(playerid, 620, 1461.1250, -1687.5625, 11.8359, 0.25);
  1419.     RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1690.6484, 13.7266, 0.25);
  1420.     RemoveBuildingForPlayer(playerid, 641, 1458.6172, -1684.1328, 11.1016, 0.25);
  1421.     RemoveBuildingForPlayer(playerid, 712, 1449.8516, -1655.9375, 22.2578, 0.25);
  1422.     RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
  1423.     RemoveBuildingForPlayer(playerid, 620, 1496.9766, -1686.8516, 11.8359, 0.25);
  1424.     RemoveBuildingForPlayer(playerid, 641, 1494.1406, -1689.2344, 11.1016, 0.25);
  1425.     RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
  1426.     RemoveBuildingForPlayer(playerid, 1229, 1498.0547, -1598.0938, 14.1094, 0.25);
  1427.     RemoveBuildingForPlayer(playerid, 4016, 1497.7969, -1543.7109, 17.5547, 0.25);
  1428.     RemoveBuildingForPlayer(playerid, 673, 1498.9609, -1684.6094, 12.3984, 0.25);
  1429.     RemoveBuildingForPlayer(playerid, 620, 1503.1875, -1621.1250, 11.8359, 0.25);
  1430.     RemoveBuildingForPlayer(playerid, 712, 1508.4453, -1668.7422, 22.2578, 0.25);
  1431.     RemoveBuildingForPlayer(playerid, 1283, 1516.1641, -1591.6563, 15.6250, 0.25);
  1432.     RemoveBuildingForPlayer(playerid, 673, 1522.1641, -1748.5703, 13.0234, 0.25);
  1433.     RemoveBuildingForPlayer(playerid, 1260, 1565.4141, -1722.3125, 25.0391, 0.25);
  1434.     RemoveBuildingForPlayer(playerid, 620, 1541.4531, -1709.6406, 13.0469, 0.25);
  1435.     RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1689.9844, 13.0469, 0.25);
  1436.     RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1661.0313, 13.0469, 0.25);
  1437.     RemoveBuildingForPlayer(playerid, 620, 1541.4531, -1642.0313, 13.0469, 0.25);
  1438.     RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
  1439.     RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25);
  1440.     RemoveBuildingForPlayer(playerid, 1440, 1148.6797, -1385.1875, 13.2656, 0.25);
  1441.     RemoveBuildingForPlayer(playerid, 11372, -2076.4375, -107.9297, 36.9688, 0.25);
  1442.     RemoveBuildingForPlayer(playerid, 11014, -2076.4375, -107.9297, 36.9688, 0.25);
  1443.     //Bergwerk
  1444.     RemoveBuildingForPlayer(playerid, 18555, -1813.8047, -1615.5625, 29.8516, 0.25);
  1445.     RemoveBuildingForPlayer(playerid, 18556, -1907.6172, -1666.6797, 29.8516, 0.25);
  1446.     RemoveBuildingForPlayer(playerid, 18557, -1857.2969, -1617.9766, 26.8125, 0.25);
  1447.     RemoveBuildingForPlayer(playerid, 18560, -1874.3438, -1680.9531, 25.4375, 0.25);
  1448.     RemoveBuildingForPlayer(playerid, 18255, -1939.9141, -1731.4844, 24.9453, 0.25);
  1449.     RemoveBuildingForPlayer(playerid, 18251, -1907.6172, -1666.6797, 29.8516, 0.25);
  1450.     RemoveBuildingForPlayer(playerid, 18252, -1888.9766, -1633.2734, 24.4844, 0.25);
  1451.     RemoveBuildingForPlayer(playerid, 18253, -1888.8047, -1604.1328, 23.3750, 0.25);
  1452.     RemoveBuildingForPlayer(playerid, 18247, -1874.3438, -1680.9531, 25.4375, 0.25);
  1453.     RemoveBuildingForPlayer(playerid, 18248, -1852.2578, -1676.2188, 28.6172, 0.25);
  1454.     RemoveBuildingForPlayer(playerid, 18246, -1857.8359, -1573.3750, 23.3125, 0.25);
  1455.     RemoveBuildingForPlayer(playerid, 18250, -1857.2969, -1617.9766, 26.8125, 0.25);
  1456.     RemoveBuildingForPlayer(playerid, 18254, -1813.8047, -1615.5625, 29.8516, 0.25);
  1457.     RemoveBuildingForPlayer(playerid, 18608, -1818.4531, -1613.0391, 32.7891, 0.25);
  1458.     return 1;
  1459. }
  1460.  
  1461. public OnPlayerDisconnect(playerid, reason)
  1462. {
  1463.     new Float:x,
  1464.         Float:y,
  1465.         Float:z,
  1466.         query[300];
  1467.     GetPlayerPos(playerid, x, y, z);
  1468.     Spieler[playerid][LastX] = x;
  1469.     Spieler[playerid][LastY] = y;
  1470.     Spieler[playerid][LastZ] = z;
  1471.     Spieler[playerid][Online] = 0;
  1472.     SavePlayer(playerid);
  1473.     format(query, sizeof(query), "UPDATE wcf1_avatar SET avatarName = '%d' WHERE userID = '%d'", GetPlayerSkin(playerid), Spieler[playerid][uID]);
  1474.     mysql_query(query);
  1475.     return 1;
  1476. }
  1477.  
  1478. public OnPlayerSpawn(playerid)
  1479. {
  1480.     if(GetPVarInt(playerid, "FirstSpawn") == 1)
  1481.     {
  1482.         SetPlayerPos(playerid, Spieler[playerid][LastX], Spieler[playerid][LastY], Spieler[playerid][LastZ]);
  1483.         SetPVarInt(playerid, "FirstSpawn", 0);
  1484.     }
  1485.     SetPlayerSkin(playerid, Spieler[playerid][Skin]);
  1486.     return 1;
  1487. }
  1488.  
  1489. public OnPlayerDeath(playerid, killerid, reason)
  1490. {
  1491.     return 1;
  1492. }
  1493.  
  1494. public OnVehicleSpawn(vehicleid)
  1495. {
  1496.     GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  1497.     SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  1498.     Motor[vehicleid] = 0;
  1499.     return 1;
  1500. }
  1501.  
  1502. public OnVehicleDeath(vehicleid, killerid)
  1503. {
  1504.     return 1;
  1505. }
  1506.  
  1507. public OnPlayerText(playerid, text[])
  1508. {
  1509.     new str[128],
  1510.         Nation[100];
  1511.     switch(Spieler[playerid][National])
  1512.     {
  1513.         case 1:
  1514.             Nation = "Englisch";
  1515.         case 2:
  1516.             Nation = "Französisch";
  1517.         case 3:
  1518.             Nation = "Amerikanisch";
  1519.         case 4:
  1520.             Nation = "Russisch";
  1521.         case 5:
  1522.             Nation = "Deutsch";
  1523.         case 6:
  1524.             Nation = "Holländisch";
  1525.         case 7:
  1526.             Nation = "Brasilianisch";
  1527.         case 8:
  1528.             Nation = "Schweizerisch";
  1529.         case 9:
  1530.             Nation = "Kanadisch";
  1531.         case 10:
  1532.             Nation = "Kubanisch";
  1533.         case 11:
  1534.             Nation = "Japanisch";
  1535.         case 12:
  1536.             Nation = "Mexikanisch";
  1537.     }
  1538.     format(str, sizeof(str), "%s [%s]: %s", GetName(playerid), Nation, text);
  1539.     SendClientMessageToAll(COLOR_WHITE, str);
  1540.     return 0;
  1541. }
  1542.  
  1543. public OnPlayerCommandText(playerid, cmdtext[])
  1544. {
  1545.     new str1[128];
  1546.     format(str1, sizeof(str1), "[Server] Befehl '"COLOR_YELLOW_HTML"%s"COLOR_RED_HTML"' wurde nicht gefunden!", cmdtext);
  1547.     return SendClientMessage(playerid, COLOR_RED, str1);
  1548. }
  1549.  
  1550. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1551. {
  1552.     if(AutohausAuto[vehicleid][carAutohaus] != 0)
  1553.     {
  1554.         if(Spieler[playerid][Fraktion] == AutohausAuto[vehicleid][carAutohaus])
  1555.         {
  1556.             if(Motor[vehicleid] == 0)
  1557.             {
  1558.                 GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben
  1559.                 SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben, nur dass der Motor nun eingeschaltet wird.
  1560.                 Motor[vehicleid] = 1;
  1561.             }
  1562.             else
  1563.             {
  1564.                 GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
  1565.                 SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  1566.                 Motor[vehicleid] = 0;
  1567.             }
  1568.         }
  1569.         else
  1570.         {
  1571.             new str[300];
  1572.             format(str, sizeof(str), ""COLOR_WHITE_HTML"%s\nFahrzeugname: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Fahrzeugkosten: "COLOR_YELLOW_HTML"$%d\nBei Kauf erhalten Sie die"COLOR_YELLOW_HTML" Fahrzeugpapiere"COLOR_WHITE_HTML" und einen "COLOR_YELLOW_HTML"Schlüssel"COLOR_WHITE_HTML".", Autohaus[vehicleid][autName], VehicleNames[GetVehicleModel(vehicleid) - 400], AutohausAuto[vehicleid][Fahrzeugkosten]);
  1573.             ShowPlayerDialog(playerid, DIALOG_AUTOHAUSAUTO, DIALOG_STYLE_MSGBOX, "Autohaus", str, "Kaufen/Probefahrt", "Nicht kaufen");
  1574.         }
  1575.     }
  1576.     return 1;
  1577. }
  1578.  
  1579. public OnPlayerExitVehicle(playerid, vehicleid)
  1580. {
  1581.     return 1;
  1582. }
  1583.  
  1584. public OnPlayerStateChange(playerid, newstate, oldstate)
  1585. {
  1586.     return 1;
  1587. }
  1588.  
  1589. public OnPlayerEnterCheckpoint(playerid)
  1590. {
  1591.     return 1;
  1592. }
  1593.  
  1594. public OnPlayerLeaveCheckpoint(playerid)
  1595. {
  1596.     return 1;
  1597. }
  1598.  
  1599. public OnPlayerEnterRaceCheckpoint(playerid)
  1600. {
  1601.     return 1;
  1602. }
  1603.  
  1604. public OnPlayerLeaveRaceCheckpoint(playerid)
  1605. {
  1606.     return 1;
  1607. }
  1608.  
  1609. public OnRconCommand(cmd[])
  1610. {
  1611.     return 1;
  1612. }
  1613.  
  1614. public OnPlayerRequestSpawn(playerid)
  1615. {
  1616.     return 1;
  1617. }
  1618.  
  1619. public OnObjectMoved(objectid)
  1620. {
  1621.     return 1;
  1622. }
  1623.  
  1624. public OnPlayerObjectMoved(playerid, objectid)
  1625. {
  1626.     return 1;
  1627. }
  1628.  
  1629. public OnPlayerPickUpPickup(playerid, pickupid)
  1630. {
  1631.     return 1;
  1632. }
  1633.  
  1634. public OnVehicleMod(playerid, vehicleid, componentid)
  1635. {
  1636.     return 1;
  1637. }
  1638.  
  1639. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  1640. {
  1641.     return 1;
  1642. }
  1643.  
  1644. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  1645. {
  1646.     return 1;
  1647. }
  1648.  
  1649. public OnPlayerSelectedMenuRow(playerid, row)
  1650. {
  1651.     return 1;
  1652. }
  1653.  
  1654. public OnPlayerExitedMenu(playerid)
  1655. {
  1656.     return 1;
  1657. }
  1658.  
  1659. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1660. {
  1661.     return 1;
  1662. }
  1663.  
  1664. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1665. {
  1666.     #define HOLDING(%0) ((newkeys & (%0)) == (%0))
  1667.     #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  1668.     #define RELEASED(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
  1669.     if(PRESSED(KEY_FIRE))
  1670.     {
  1671.         new Vehicle = GetPlayerVehicleID(playerid);
  1672.         if(Spieler[playerid][Fraktion] == FVehicle[Vehicle][Fraktion] && GetPlayerVehicleSeat(playerid) == 0 || Spieler[playerid][Admin] > 5)
  1673.         {
  1674.             if(Motor[Vehicle] == 0)
  1675.             {
  1676.                 GetVehicleParamsEx(Vehicle,engine,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben
  1677.                 SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben, nur dass der Motor nun eingeschaltet wird.
  1678.                 Motor[Vehicle] = 1;
  1679.             }
  1680.             else
  1681.             {
  1682.                 GetVehicleParamsEx(Vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
  1683.                 SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  1684.                 Motor[Vehicle] = 0;
  1685.             }
  1686.         }
  1687.     }
  1688.     if(newkeys & 16)
  1689.     {
  1690.         new TankID = GetNearTankeRadius(playerid, 5.0),
  1691.             InduID = GetNearIndustrieRadius(playerid, 5.0),
  1692.             AutoID = GetNearAutohausRadius(playerid, 5.0),
  1693.             str1[150],
  1694.             str2[300];
  1695.         if(TankID > 0 && InduID < 1 && AutoID < 1)
  1696.         {
  1697.             format(str1, sizeof(str1), "Informationen zum Business: "COLOR_YELLOW_HTML" %s", Tankstelle[TankID][tanName]);
  1698.             format(str2, sizeof(str2), "Tankstelle "COLOR_YELLOW_HTML"%s "COLOR_WHITE_HTML"kaufen\nTankstelleninformation ("COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML")\nTankstelle "COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML" beliefern", Tankstelle[TankID][tanName], Tankstelle[TankID][tanName], Tankstelle[TankID][tanName]);
  1699.             ShowPlayerDialog(playerid, DIALOG_TANKENINFO, DIALOG_STYLE_LIST, str1, str2, "Waehlen", "");
  1700.         }
  1701.         else if(InduID > 0 && AutoID < 1 && TankID < 1)
  1702.         {
  1703.             format(str1, sizeof(str1), "Information zum Konzern: "COLOR_YELLOW_HTML" %s", Industrie[InduID][indName]);
  1704.             format(str2, sizeof(str2), "Konzern "COLOR_YELLOW_HTML"%s "COLOR_WHITE_HTML"kaufen\nKonzerninformationen ("COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML")", Industrie[InduID][indName], Industrie[InduID][indName]);
  1705.             ShowPlayerDialog(playerid, DIALOG_INDUINFO, DIALOG_STYLE_LIST, str1, str2, "Waehlen", "");
  1706.         }
  1707.         else if(AutoID > 0 && InduID < 1 && TankID < 1)
  1708.         {
  1709.             format(str1, sizeof(str1), "Information zum Autohaus: "COLOR_YELLOW_HTML" %s", Autohaus[AutoID][autName]);
  1710.             format(str2, sizeof(str2), "Autohaus "COLOR_YELLOW_HTML"%s "COLOR_WHITE_HTML"kaufen\nAutohausinformationen ("COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML")", Autohaus[AutoID][autName], Autohaus[AutoID][autName]);
  1711.             ShowPlayerDialog(playerid, DIALOG_AUTOHINFO, DIALOG_STYLE_LIST, str1, str2, "Waehlen", "");
  1712.         }
  1713.     }
  1714.     return 1;
  1715. }
  1716.  
  1717. public OnRconLoginAttempt(ip[], password[], success)
  1718. {
  1719.     return 1;
  1720. }
  1721.  
  1722. public OnPlayerUpdate(playerid)
  1723. {
  1724.     return 1;
  1725. }
  1726.  
  1727. public OnPlayerStreamIn(playerid, forplayerid)
  1728. {
  1729.     return 1;
  1730. }
  1731.  
  1732. public OnPlayerStreamOut(playerid, forplayerid)
  1733. {
  1734.     return 1;
  1735. }
  1736.  
  1737. public OnVehicleStreamIn(vehicleid, forplayerid)
  1738. {
  1739.     return 1;
  1740. }
  1741.  
  1742. public OnVehicleStreamOut(vehicleid, forplayerid)
  1743. {
  1744.     return 1;
  1745. }
  1746.  
  1747. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1748. {
  1749.     switch(dialogid)
  1750.     {
  1751.         case DIALOG_REGISTER:
  1752.         {
  1753.             if(!response)
  1754.                 return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registration", ""COLOR_RED_HTML"Kein Passwort angegeben!\n"COLOR_WHITE_HTML"Tippen Sie hier ein sicheres Accountpasswort ein.\n"COLOR_RED_HTML"Dieses wird für uns unlesbar, haben Sie daher keine Angst und verwenden Sie ruhig Ihnen bekannte Passwörter um dieses nicht zu vergessen!", "Absenden", "");
  1755.             if(strlen(inputtext) < 4)
  1756.                 return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registration", ""COLOR_RED_HTML"Passwort zu kurz!\n"COLOR_WHITE_HTML"Tippen Sie hier ein sicheres Accountpasswort ein.\n"COLOR_RED_HTML"Dieses wird für uns unlesbar, haben Sie daher keine Angst und verwenden Sie ruhig Ihnen bekannte Passwörter um dieses nicht zu vergessen!", "Absenden", "");
  1757.             else
  1758.             {
  1759.                 Spieler[playerid][Online] = 1;
  1760.                 CreateAccount(playerid, inputtext);
  1761.                 GetPlayerName(playerid, Spieler[playerid][Name], MAX_PLAYER_NAME);
  1762.                 ShowPlayerDialog(playerid, DIALOG_RSTEP2, DIALOG_STYLE_LIST, "Geschlecht Ihres Spielcharakter", "Männlich (Male)\nWeiblich (Female)", "Absenden", "");
  1763.                 return 1;
  1764.             }
  1765.         }
  1766.         case DIALOG_FORUMLOGIN:
  1767.         {
  1768.             if(!response)
  1769.                 return ShowPlayerDialog(playerid, DIALOG_FORUMLOGIN, DIALOG_STYLE_INPUT, "Einloggen in den Forenaccount", "Tippen Sie hier das zu Ihrem Forenaccount passende Passwort ein!", "Absenden", "");
  1770.             if(strlen(inputtext) < 6)
  1771.                 return ShowPlayerDialog(playerid, DIALOG_FORUMLOGIN, DIALOG_STYLE_INPUT, "Einloggen in den Forenaccount", "Tippen Sie hier das zu Ihrem Forenaccount passende Passwort ein!", "Absenden", "");
  1772.             else
  1773.             {
  1774.                 new Var = CheckForenaccount(playerid, inputtext);
  1775.                 printf("Var: %d!", Var);
  1776.                 if(Var >= 1)
  1777.                     return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registration", ""COLOR_RED_HTML"Kein Passwort angegeben!\n"COLOR_WHITE_HTML"Tippen Sie hier ein sicheres Accountpasswort ein.\n"COLOR_RED_HTML"Dieses wird für uns unlesbar, haben Sie daher keine Angst und verwenden Sie ruhig Ihnen bekannte Passwörter um dieses nicht zu vergessen!", "Absenden", "");
  1778.                 else
  1779.                     return Kick(playerid);
  1780.             }
  1781.         }
  1782.         case DIALOG_LOGIN:
  1783.         {
  1784.             if(!response)
  1785.                 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", ""COLOR_RED_HTML"Kein Passwort angegeben!\n"COLOR_WHITE_HTML"Loggen Sie sich hier mit Ihrem bei der Registrierung angegebenem Passwort ein.\n"COLOR_RED_HTML"Sollten Sie das Passwort verloren haben, wenden Sie sich an einen Administrator.", "Absenden", "");
  1786.             if(strlen(inputtext) == 0)
  1787.                 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", ""COLOR_RED_HTML"Eingabe ungültig!\n"COLOR_WHITE_HTML"Loggen Sie sich hier mit Ihrem bei der Registrierung angegebenem Passwort ein.\n"COLOR_RED_HTML"Sollten Sie das Passwort verloren haben, wenden Sie sich an einen Administrator.", "Absenden", "");
  1788.             else
  1789.             {
  1790.                 if(!strcmp(inputtext, mysql_ReturnPasswort(GetName(playerid)), true))
  1791.                 {
  1792.                     SetPVarInt(playerid,"Eingeloggt",1);
  1793.                     Spieler[playerid][Online] = 1;
  1794.                     LoadPlayer(playerid);
  1795.                     GetPlayerName(playerid, Spieler[playerid][Name], MAX_PLAYER_NAME);
  1796.                  }
  1797.                  else
  1798.                  {
  1799.                     ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", ""COLOR_RED_HTML"Eingabe ungültig!\n"COLOR_WHITE_HTML"Loggen Sie sich hier mit Ihrem bei der Registrierung angegebenem Passwort ein.\n"COLOR_RED_HTML"Sollten Sie das Passwort verloren haben, wenden Sie sich an einen Administrator.", "Absenden", "");
  1800.                  }
  1801.             }
  1802.         }
  1803.         case DIALOG_RSTEP2:
  1804.         {
  1805.             if(!response)
  1806.             {
  1807.                 ShowPlayerDialog(playerid, DIALOG_RSTEP2, DIALOG_STYLE_LIST, "Geschlecht Ihres Spielcharakter", "Männlich (Male)\nWeiblich (Female)", "Absenden", "");
  1808.             }
  1809.             else
  1810.             {
  1811.                 if(listitem == 0)
  1812.                 {
  1813.                     Spieler[playerid][Sex] = 1;
  1814.                 }
  1815.                 if(listitem == 1)
  1816.                 {
  1817.                     Spieler[playerid][Sex] = 2;
  1818.                 }
  1819.                 mysql_SetInt("Accounts", "Sex", Spieler[playerid][Sex], "Name", Spieler[playerid][Name]);
  1820.                 mysql_SetInt("wcf1_user_option_value", "userOption8", Spieler[playerid][Sex], "ID", Spieler[playerid][uID]);
  1821.                 ShowPlayerDialog(playerid, DIALOG_RSTEP3, DIALOG_STYLE_LIST, "Herkunft Ihres Spielcharakters", "Las Venturas\nSan Fierro\nLos Santos", "Absenden", "");
  1822.  
  1823.             }
  1824.         }
  1825.         case DIALOG_RSTEP3:
  1826.         {
  1827.             if(!response)
  1828.                 ShowPlayerDialog(playerid, DIALOG_RSTEP3, DIALOG_STYLE_LIST, "Herkunft Ihres Spielcharakters", "Las Venturas\nSan Fierro\nLos Santos", "Absenden", "");
  1829.             else
  1830.             {
  1831.                 if(listitem == 0)
  1832.                     Spieler[playerid][Homestate] = 1;
  1833.                 if(listitem == 1)
  1834.                     Spieler[playerid][Homestate] = 2;
  1835.                 if(listitem == 2)
  1836.                     Spieler[playerid][Homestate] = 3;
  1837.                 printf("%s' Homestate: %d", GetName(playerid), listitem);
  1838.                 mysql_SetInt("Accounts", "Homestate", Spieler[playerid][Homestate], "Name", Spieler[playerid][Name]);
  1839.                 ShowPlayerDialog(playerid, DIALOG_RSTEP4, DIALOG_STYLE_LIST, "Nationalität Ihres Spielcharakters", "Engländer/Engländerin\nFranzose/Französin\nAmerikaner/Amerikanerin\nRusse/Russin\nDeutscher/Deutsche\nHolländer/Holländerin\nBrasilianer/Brasilianerin\nSchweizer/Schweizerin\nKanadier/Kanadierin\nKubaner/Kubanerin\nJapaner/Japanerin\nMexikaner/Mexikanerin", "Absenden", "");
  1840.             }
  1841.         }
  1842.         case DIALOG_RSTEP4:
  1843.         {
  1844.             if(!response)
  1845.                 ShowPlayerDialog(playerid, DIALOG_RSTEP4, DIALOG_STYLE_LIST, "Nationalität Ihres Spielcharakters", "Engländer/Engländerin\nFranzose/Französin\nAmerikaner/Amerikanerin\nRusse/Russin\nDeutscher/Deutsche\nHolländer/Holländerin\nBrasilianer/Brasilianerin\nSchweizer/Schweizerin\nKanadier/Kanadierin\nKubaner/Kubanerin\nJapaner/Japanerin\nMexikaner/Mexikanerin", "Absenden", "");
  1846.             else
  1847.             {
  1848.                 if(listitem == 0)//Engländerin
  1849.                     Spieler[playerid][National] = 1;
  1850.                 if(listitem == 1)//Französisch
  1851.                     Spieler[playerid][National] = 2;
  1852.                 if(listitem == 2)//Amerika
  1853.                     Spieler[playerid][National] = 3;
  1854.                 if(listitem == 3)//Russe
  1855.                     Spieler[playerid][National] = 4;
  1856.                 if(listitem == 4)
  1857.                     Spieler[playerid][National] = 5;
  1858.                 if(listitem == 5)
  1859.                     Spieler[playerid][National] = 6;
  1860.                 if(listitem == 6)
  1861.                     Spieler[playerid][National] = 7;
  1862.                 if(listitem == 7)
  1863.                     Spieler[playerid][National] = 8;
  1864.                 if(listitem == 8)
  1865.                     Spieler[playerid][National] = 9;
  1866.                 if(listitem == 9)
  1867.                     Spieler[playerid][National] = 10;
  1868.                 if(listitem == 10)
  1869.                     Spieler[playerid][National] = 11;
  1870.                 if(listitem == 11)
  1871.                     Spieler[playerid][National] = 12;
  1872.                 mysql_SetInt("Accounts", "Nationality", Spieler[playerid][National], "Name", Spieler[playerid][Name]);
  1873.                 return SpawnPlayer(playerid);
  1874.             }
  1875.         }
  1876.         case DIALOG_TANKEN:
  1877.         {
  1878.             if(!response)
  1879.                 ShowPlayerDialog(playerid, DIALOG_TANKEN, DIALOG_STYLE_INPUT, ""COLOR_RED_HTML"Ungültige Eingabe!\n"COLOR_WHITE_HTML"Tankstelle", "Gewünschte Tankmenge:", "Tanken", "");
  1880.             if(strlen(inputtext) > 0 && strval(inputtext) < 101)
  1881.             {
  1882.                 new TankID = GetNearTanke(playerid);
  1883.                 if(Tankstelle[TankID][Vorrat] >= strval(inputtext))
  1884.                 {
  1885.                     new Vehicle = GetPlayerVehicleID(playerid);
  1886.                     if(Motor[Vehicle] == 0)
  1887.                     {
  1888.                         new TimerZeit = 2000 * strval(inputtext),
  1889.                             Zahl = strval(inputtext);
  1890.                         printf("TimerZeit: %d", TimerZeit);
  1891.                         TogglePlayerControllable(playerid, 0);
  1892.                         printf("Spieler wird gefreezed!");
  1893.                         SetTimerEx("TankTime", TimerZeit, false, "udd", playerid, Zahl, TankID);
  1894.                         printf("Timer gestartet!");
  1895.                         SetPVarInt(playerid, "ZuZahlenTanke", TankID);
  1896.                         printf("ZuZahlenTanke gesetzt!");
  1897.                         SetPVarInt(playerid, "ZuZahlenHere", Tankstelle[TankID][LiterPreis] * strval(inputtext));
  1898.                         printf("ZuZahlenHere gesetzt!");
  1899.                     }
  1900.                     else
  1901.                     {
  1902.                         SendClientMessage(playerid, COLOR_RED, "Das Fahrzeug muss aus sein!");
  1903.                     }
  1904.                 }
  1905.                 else
  1906.                 {
  1907.                     ShowPlayerDialog(playerid, DIALOG_TANKEN, DIALOG_STYLE_INPUT, ""COLOR_RED_HTML"So viel ist nicht vorrätig!\n"COLOR_WHITE_HTML"Tankstelle", "Gewünschte Tankmenge:", "Tanken", "");
  1908.                 }
  1909.             }
  1910.         }
  1911.         case DIALOG_TANKENINFO:
  1912.         {
  1913.             new TankID = GetNearTanke(playerid);
  1914.             if(!response)
  1915.                 SendClientMessage(playerid, COLOR_RED, "[Server] Tankmenü abgebrochen!");
  1916.             if(!IsPlayerInAnyVehicle(playerid))
  1917.             {
  1918.                 if(listitem == 0)
  1919.                 {
  1920.                     if(GetPlayerMoney(playerid) >= Tankstelle[TankID][BuyPrice])
  1921.                     {
  1922.                         if(strlen(Tankstelle[TankID][Besitzer]) < 1)
  1923.                         {
  1924.                             format(Tankstelle[TankID][Besitzer], MAX_PLAYER_NAME, "%s", GetName(playerid));
  1925.                             UpdateTankstellen(TankID);
  1926.                         }
  1927.                     }
  1928.                     else
  1929.                     {
  1930.                         SendClientMessage(playerid, COLOR_RED, "[Server] Sie haben leider nicht genug Geld dabei!");
  1931.                     }
  1932.                 }
  1933.                 if(listitem == 1)
  1934.                 {
  1935.                     new str1[100],
  1936.                         str2[300];
  1937.                     format(str1, sizeof(str1), "Tankstelleninformation: "COLOR_YELLOW_HTML"%s", Tankstelle[TankID][tanName]);
  1938.                     if(strlen(Tankstelle[TankID][Besitzer]) < 1)
  1939.                     {
  1940.                         format(str2, sizeof(str2), ""COLOR_YELLOW_HTML"%s\n\n\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"Keiner\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Liter im Tank: "COLOR_YELLOW_HTML"%dL/4500L\n"COLOR_WHITE_HTML"Preis pro Liter: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Preis pro Belieferungsliter: "COLOR_YELLOW_HTML"$%d", Tankstelle[TankID][tanName],
  1941.                                                                                                                                                                                                                                                                                                                                                                                              Tankstelle[TankID][BuyPrice],
  1942.                                                                                                                                                                                                                                                                                                                                                                                              Tankstelle[TankID][Vorrat],
  1943.                                                                                                                                                                                                                                                                                                                                                                                              Tankstelle[TankID][LiterPreis],
  1944.                                                                                                                                                                                                                                                                                                                                                                                              Tankstelle[TankID][ProdPreis]);
  1945.                     }
  1946.                     else
  1947.                     {
  1948.                         format(str2, sizeof(str2), ""COLOR_YELLOW_HTML"%s\n\n\n"COLOR_WHITE_HTML"Besitzer: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Kaufpreis: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Liter im Tank: "COLOR_YELLOW_HTML"%dL/4500L\n"COLOR_WHITE_HTML"Preis pro Liter: "COLOR_YELLOW_HTML"$%d\n"COLOR_WHITE_HTML"Preis pro Belieferungsliter: "COLOR_YELLOW_HTML"$%d", Tankstelle[TankID][tanName],
  1949.                                                                                                                                                                                                                                                                                                                                                                                          Tankstelle[TankID][Besitzer],
  1950.                                                                                                                                                                                                                                                                                                                                                                                          Tankstelle[TankID][BuyPrice],
  1951.                                                                                                                                                                                                                                                                                                                                                                                          Tankstelle[TankID][Vorrat],
  1952.                                                                                                                                                                                                                                                                                                                                                                                          Tankstelle[TankID][LiterPreis],
  1953.                                                                                                                                                                                                                                                                                                                                                                                          Tankstelle[TankID][ProdPreis]);
  1954.                     }
  1955.                     ShowPlayerDialog(playerid, DIALOG_TANKINFO1, DIALOG_STYLE_MSGBOX, str1, str2, "Schliessen", "");
  1956.                 }
  1957.                 if(listitem == 2)
  1958.                 {
  1959.                     new str[128],
  1960.                         Literzahl = 4500 - Tankstelle[TankID][Vorrat],
  1961.                         str2[128];
  1962.                     printf("Literanzahl: %d!", Literzahl);
  1963.                     format(str, sizeof(str), "["COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML"] Preis pro Belieferungsliter: $%d - Benötigte Literanzahl: %dL.", Tankstelle[TankID][tanName], Tankstelle[TankID][ProdPreis], Literzahl);
  1964.                     SendClientMessage(playerid, COLOR_WHITE, str);
  1965.                     SetPVarInt(playerid, "Belieferungstanke", TankID);
  1966.                     format(str2, sizeof(str2), "["COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML"] Gehen Sie bitte zur Kasse und ohne Sie sich dort eine Plakette (/plakette)!", Tankstelle[TankID][tanName]);
  1967.                     SendClientMessage(playerid, COLOR_WHITE, str2);
  1968.                 }
  1969.             }
  1970.         }
  1971.         case DIALOG_BELIEFPREIS:
  1972.         {
  1973.             new TankID = GetNearTanke(playerid);
  1974.             if(response == 1)
  1975.             {
  1976.                 new str2[128],
  1977.                     Float:x,
  1978.                     Float:y,
  1979.                     Float:z;
  1980.                 GetPlayerPos(playerid, x, y, z);
  1981.                 format(str2, sizeof(str2), "** "COLOR_YELLOW_HTML"%s "COLOR_PURPLE_HTML"erhält eine Plakette vom Verkäufer der Tankstelle "COLOR_YELLOW_HTML"%s.", GetName(playerid), Tankstelle[TankID][tanName]);
  1982.                 SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str2, x, y, z);
  1983.                 SendClientMessage(playerid, COLOR_WHITE, "Verkäufer: Hier die Plakette, kommen Sie dann wenn Sie fertig sind wieder her ...");
  1984.                 SetPVarInt(playerid, "PlaketteForTanke", TankID);
  1985.                 TogglePlayerControllable(playerid, 1);
  1986.             }
  1987.             if(response == 0)
  1988.             {
  1989.                 SendClientMessage(playerid, COLOR_WHITE, "Verkäufer: Vielleicht ja ein anderes Mal...");
  1990.                 TogglePlayerControllable(playerid, 1);
  1991.             }
  1992.         }
  1993.         case DIALOG_AUTOHAUSAUTO:
  1994.         {
  1995.             new Car = GetPlayerVehicleID(playerid),
  1996.                 CarModel = GetVehicleModel(Car),
  1997.                 str1[128],
  1998.                 str2[128];
  1999.             format(str1, sizeof(str1), "< "COLOR_YELLOW_HTML"%s "COLOR_LIGHTBLUE_HTML"> Besucher "COLOR_YELLOW_HTML"%s"COLOR_LIGHTBLUE_HTML" möchte eine Probefahrt machen (Fahrzeug: %s).", Autohaus[Car][autName], GetName(playerid), VehicleNames[CarModel - 400]);
  2000.             SendFraktionsMessage(AutohausAuto[Car][carAutohaus], COLOR_LIGHTBLUE, str1);
  2001.             format(str2, sizeof(str2), "["COLOR_YELLOW_HTML"%s"COLOR_GREEN_HTML"] Wir kümmern uns schnellstmöglich um Sie!", Autohaus[Car][autName]);
  2002.             SendClientMessage(playerid, COLOR_GREEN, str2);
  2003.         }
  2004.         case DIALOG_INDUINFO:
  2005.         {
  2006.             new str2[400],
  2007.                 Indu = GetNearIndustrieRadius(playerid, 5.0);
  2008.             if(listitem == 0)
  2009.             {
  2010.                 SetPVarInt(playerid, "PreisToPay", Industrie[Indu][indKaufpreis]);
  2011.                 ShowPlayerDialog(playerid, DIALOG_ZAHLMETHOD, DIALOG_STYLE_LIST, "Zahlmethode", "Bankkonto\nBar", "Bestätigen", "");
  2012.             }
  2013.             if(listitem == 1)
  2014.                 format(str2, sizeof(str2), "Konzern: "COLOR_YELLOW_HTML"%s\n\n"COLOR_WHITE_HTML"Besitzer des Konzern's: "COLOR_YELLOW_HTML"%s\n"COLOR_WHITE_HTML"Metallmaterialien in Besitz: "COLOR_YELLOW_HTML"%d/%d\n"COLOR_WHITE_HTML"Ölliter in Besitz: "COLOR_YELLOW_HTML"%d/%d\n"COLOR_WHITE_HTML"Wasserliter in Besitz: "COLOR_YELLOW_HTML"%d/%d"COLOR_WHITE_HTML"\nKaufpreis des Unternehmens: "COLOR_YELLOW_HTML"$%d",
  2015.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indName],
  2016.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indBesitzer],
  2017.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indMetall],
  2018.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indMetallMax],
  2019.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indOel],
  2020.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indOelMax],
  2021.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indWasser],
  2022.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indWasserMax],
  2023.                                                                                                                                                                                                                                                                                                                                                                                                                 Industrie[Indu][indKaufpreis]);
  2024.             ShowPlayerDialog(playerid, DIALOG_INDUINFOS, DIALOG_STYLE_MSGBOX, "Informationen", str2, "Ok", "");
  2025.         }
  2026.         case DIALOG_AUTOHINFO:
  2027.         {
  2028.             new str2[300],
  2029.                 AutoH = GetNearAutohausRadius(playerid, 5.0);
  2030.             if(listitem == 0)
  2031.             {
  2032.                 SetPVarInt(playerid, "PreisToPay", Autohaus[AutoH][BuyPrice]);
  2033.                 ShowPlayerDialog(playerid, DIALOG_ZAHLMETHOD, DIALOG_STYLE_LIST, "Zahlmethode", "Bankkonto\nBar", "Bestätigen", "");
  2034.             }
  2035.             if(listitem == 1)
  2036.                 format(str2, sizeof(str2), "Autohaus: "COLOR_YELLOW_HTML"%s\n\n"COLOR_WHITE_HTML"Besitzer des Autohauses: "COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML"\nFahrzeuge vorrätig: "COLOR_YELLOW_HTML"%d/%d\n"COLOR_WHITE_HTML"Kaufpreis des Autohauses: "COLOR_YELLOW_HTML"$%d",
  2037.                                                                                                                                                                                                                                                                     Autohaus[AutoH][autName],
  2038.                                                                                                                                                                                                                                                                     Autohaus[AutoH][Besitzer],
  2039.                                                                                                                                                                                                                                                                     Autohaus[AutoH][Cars],
  2040.                                                                                                                                                                                                                                                                     Autohaus[AutoH][MaxCars],
  2041.                                                                                                                                                                                                                                                                     Autohaus[AutoH][BuyPrice]);
  2042.             ShowPlayerDialog(playerid, DIALOG_AUTOHINFOS, DIALOG_STYLE_MSGBOX, "Informationen", str2, "Ok", "");
  2043.         }
  2044.         case DIALOG_ZAHLMETHOD:
  2045.         {
  2046.             new str[128],
  2047.                 Float:x,
  2048.                 Float:y,
  2049.                 Float:z;
  2050.             GetPlayerPos(playerid, x, y, z);
  2051.             if(listitem == 0)
  2052.             {
  2053.                 if(Spieler[playerid][Bankguthaben] >= GetPVarInt(playerid, "PreisToPay"))
  2054.                 {
  2055.                     format(str, sizeof(str), "** "COLOR_YELLOW_HTML"%s "COLOR_PURPLE_HTML"zückt seine Kreditkarte "COLOR_YELLOW_HTML".", GetName(playerid));
  2056.                     SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str, x, y, z);
  2057.                     ShowPlayerDialog(playerid, DIALOG_METHODBANK, DIALOG_STYLE_INPUT, "Kreditkarteninformationen", "Geben Sie bitte hier Ihre Kontonummer ein!", "Bestaetigen", "");
  2058.                 }
  2059.             }
  2060.             if(listitem == 1)
  2061.             {
  2062.                 if(GetPlayerMoney(playerid) >= GetPVarInt(playerid, "PreisToPay"))
  2063.                 {
  2064.                     format(str, sizeof(str), "** "COLOR_YELLOW_HTML"%s "COLOR_PURPLE_HTML"zückt sein Portemonait"COLOR_YELLOW_HTML".", GetName(playerid));
  2065.                     SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str, x, y, z);
  2066.                     GivePlayerMoney(playerid, -GetPVarInt(playerid, "PreisToPay"));
  2067.                 }
  2068.             }
  2069.         }
  2070.         case DIALOG_METHODBANK:
  2071.         {
  2072.             new str[200];
  2073.             if(!response)
  2074.                 ShowPlayerDialog(playerid, DIALOG_METHODBANK, DIALOG_STYLE_INPUT, "Kreditkarteninformationen", "Geben Sie bitte hier die Kontonummer ein!", "Bestaetigen", "");
  2075.             if(strval(inputtext) == Spieler[playerid][Banknummer])
  2076.             {
  2077.                 format(str, sizeof(str), "PIN für die Kontonummer %d", inputtext);
  2078.                 ShowPlayerDialog(playerid, DIALOG_METHODBANK2, DIALOG_STYLE_PASSWORD, "Kreditkarteninformationen", str, "Bestaetigen", "");
  2079.             }
  2080.             else
  2081.             {
  2082.                 SendClientMessage(playerid, COLOR_RED, "Verkäufer: Tut uns leid, diese Kontonummer stimmt nicht mit Ihrer Identität überein!");
  2083.             }
  2084.         }
  2085.     }
  2086.     return 1;
  2087. }
  2088.  
  2089. public TankTime(playerid, Zahl, TankID)
  2090. {
  2091.     printf("Timer erreicht!");
  2092.     Tankstelle[TankID][Vorrat] -= Zahl;
  2093.     new query[300];
  2094.     format(query, sizeof(query), "UPDATE Tankstellen SET Litervorrat = '%d' WHERE ID = '%d'", Tankstelle[TankID][Vorrat], TankID);
  2095.     mysql_query(query);
  2096.     UpdateTankstellen(TankID);
  2097.     printf("Tankstelle wurde updatet!");
  2098.     TogglePlayerControllable(playerid, 1);
  2099.     RemovePlayerFromVehicle(playerid);
  2100.     SendClientMessage(playerid, COLOR_GREEN, "Tanken erfolgreich, gehe nun bitte zur Kasse.");
  2101.     return 1;
  2102. }
  2103.  
  2104.  
  2105. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  2106. {
  2107.     return 1;
  2108. }
  2109.  
  2110. public PlaketteOne(playerid, TankID)
  2111. {
  2112.     new str2[128];
  2113.     format(str2, sizeof(str2), "Verkäufer: Guten Tag, das ist nett von Ihnen,"COLOR_YELLOW_HTML" %s"COLOR_WHITE_HTML". Der Belieferungspreis pro Liter ist derzeit bei "COLOR_YELLOW_HTML"$%d.", GetName(playerid), Tankstelle[TankID][ProdPreis]);
  2114.     SendClientMessage(playerid, COLOR_WHITE, str2);
  2115.     SetTimerEx("PlaketteTwo", 4000, false, "ud", playerid, TankID);
  2116. }
  2117.  
  2118. public PlaketteTwo(playerid, TankID)
  2119. {
  2120.     new str3[128];
  2121.     format(str3, sizeof(str3), "Preis bei "COLOR_YELLOW_HTML"$%d"COLOR_WHITE_HTML" pro Liter, einverstanden?", Tankstelle[TankID][ProdPreis]);
  2122.     ShowPlayerDialog(playerid, DIALOG_BELIEFPREIS, DIALOG_STYLE_MSGBOX, "Belieferungsfrage", str3, "Einverstanden", "Nicht einv.");
  2123. }
  2124.  
  2125. public WasserNehmen(playerid)
  2126. {
  2127.     new Float:xxx,
  2128.         Float:yyy,
  2129.         Float:zzz,
  2130.         Carxxx = GetPlayerVehicleID(playerid);
  2131.     GetVehiclePos(Carxxx, xxx, yyy, zzz);
  2132.     #pragma unused xxx
  2133.     #pragma unused yyy
  2134.     if(GetPVarInt(playerid, "WerfenOrNehmen") == 1)
  2135.     {
  2136.         if(IsPlayerInArea(playerid, -1553.157, -2347.253, -1483.09, -2207.118))
  2137.         {
  2138.             if(zzz > -0.0810 && zzz < 2.0818)
  2139.             {
  2140.                 new CarID = GetPlayerVehicleID(playerid),
  2141.                     str[128];
  2142.                 WasserVorrat[CarID] += 150;
  2143.                 format(str, sizeof(str), "< "COLOR_YELLOW_HTML"%s "COLOR_LIGHTBLUE_HTML"an "COLOR_YELLOW_HTML"Bergwerkmitarbeiter"COLOR_LIGHTBLUE_HTML" > Kanister beladen (%d/150), fliege zur Abwerfstelle!", GetName(playerid), WasserVorrat[CarID]);
  2144.                 SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
  2145.                 SetPVarInt(playerid, "WerfenOrNehmen", 0);
  2146.             }
  2147.             else
  2148.             {
  2149.                 SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht beladen werden, Sie waren zu hoch/tief!");
  2150.             }
  2151.         }
  2152.         else
  2153.         {
  2154.             SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht beladen werden, Sie waren zu weit weg!");
  2155.         }
  2156.     }
  2157.     if(GetPVarInt(playerid, "WerfenOrNehmen") == 2)
  2158.     {
  2159.         if(IsPlayerInArea(playerid, -1856.782, -1704.97, -1810.071, -1669.936))
  2160.         {
  2161.             if(zzz > 40.1974 && zzz < 55.000)
  2162.             {
  2163.                 new CarID = GetPlayerVehicleID(playerid),
  2164.                     str[128];
  2165.                 WasserVorrat[CarID] = 0;
  2166.                 format(str, sizeof(str), "< "COLOR_YELLOW_HTML"%s "COLOR_LIGHTBLUE_HTML"an "COLOR_YELLOW_HTML"Bergwerkmitarbeiter"COLOR_LIGHTBLUE_HTML" > Kanister abgeladen (%d/150)!", GetName(playerid), WasserVorrat[CarID]);
  2167.                 SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
  2168.                 SetPVarInt(playerid, "WerfenOrNehmen", 0);
  2169.             }
  2170.             else
  2171.             {
  2172.                 SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht abgeladen werden, Sie waren zu hoch/tief!");
  2173.             }
  2174.         }
  2175.         else
  2176.         {
  2177.             SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht abgeladen werden, Sie waren zu weit weg!");
  2178.         }
  2179.     }
  2180. }
  2181.  
  2182. ocmd:ranks(playerid, params[])
  2183. {
  2184.     #pragma unused params
  2185.     if(Spieler[playerid][Leader] >= 1)
  2186.     {
  2187.         new dialogFormat[400];
  2188.         for(new j; j < MAX_FACTION_RANKS; j++)
  2189.         {
  2190.             format(dialogFormat, sizeof(dialogFormat), "%s\n"COLOR_RED_HTML"Rank "COLOR_YELLOW_HTML"%d"COLOR_WHITE_HTML": "COLOR_YELLOW_HTML"%s", dialogFormat, mysql_GetInt("Fraktionsranks", "RankID", "FraktionsID", Spieler[playerid][Leader]), mysql_GetInt("Fraktionsranks", "Rankname", "FraktionsID", Spieler[playerid][Leader]));
  2191.         }
  2192.         ShowPlayerDialog(playerid, DIALOG_FRANKS, DIALOG_STYLE_LIST, "Fraktionsränke", dialogFormat, "Ok", "");
  2193.     }
  2194.     return 1;
  2195. }
  2196.  
  2197. ocmd:createindustrie(playerid, params[])
  2198. {
  2199.     new Nameqqq[50],
  2200.         IndustrieArt,
  2201.         Kaufpreis;
  2202.     if(sscanf(params, "sdd", Nameqqq, IndustrieArt, Kaufpreis))
  2203.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/createindustrie [Name] [Industrieart (1 = Öl; 2 = Metall)] [Kaufpreis]");
  2204.     if(Spieler[playerid][Admin] > 2)
  2205.     {
  2206.         new query[300],
  2207.             Float:x,
  2208.             Float:y,
  2209.             Float:z;
  2210.         GetPlayerPos(playerid, x, y, z);
  2211.         format(query, sizeof(query), "INSERT INTO Industrien (x, y, z, Name, Art, Kaufpreis) VALUES ('%f', '%f', '%f', '%s', '%d', '%d')", x, y, z, Nameqqq, IndustrieArt, Kaufpreis);
  2212.         mysql_query(query);
  2213.         SendClientMessage(playerid, COLOR_GREEN, "Industrie erstellt!");
  2214.         LoadIndustrien();
  2215.     }
  2216.     return 1;
  2217. }
  2218.  
  2219. ocmd:wasser(playerid, params[])
  2220. {
  2221.     new NehmenWerfen[50],
  2222.         Carxxx = GetPlayerVehicleID(playerid);
  2223.     if(sscanf(params, "s", NehmenWerfen))
  2224.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/wasser [nehmen/werfen]");
  2225.     if(GetVehicleModel(Carxxx) != 417 || !IsPlayerInAnyVehicle(playerid))
  2226.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Ungültiges Fahrzeug!");
  2227.     if(Spieler[playerid][Fraktion] == 18)
  2228.     {
  2229.         new Float:xxx,
  2230.             Float:yyy,
  2231.             Float:zzz;
  2232.         GetVehiclePos(Carxxx, xxx, yyy, zzz);
  2233.         #pragma unused xxx
  2234.         #pragma unused yyy
  2235.         if(!strcmp(NehmenWerfen, "nehmen", true))
  2236.         {
  2237.             if(IsPlayerInArea(playerid, -1553.157, -2347.253, -1483.09, -2207.118))
  2238.             {
  2239.                 if(zzz > -0.0810 && zzz < 2.0818)
  2240.                 {
  2241.                     new str[128],
  2242.                         str2[128];
  2243.                     SetTimerEx("WasserNehmen", 15000, false, "u", playerid);
  2244.                     format(str, sizeof(str), "< "COLOR_YELLOW_HTML"%s "COLOR_LIGHTBLUE_HTML"an "COLOR_YELLOW_HTML"Bergwerkmitarbeiter"COLOR_LIGHTBLUE_HTML" > Belade Helikopter ...", GetName(playerid));
  2245.                     SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
  2246.                     format(str2, sizeof(str2), "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_GREEN_HTML"] Belade die Kanister, bleiben Sie 15 Sekunden über dem Wasser!", FVehicle[Carxxx][Kennzeichen]);
  2247.                     SendClientMessage(playerid, COLOR_GREEN, str2);
  2248.                     SetPVarInt(playerid, "WerfenOrNehmen", 1);
  2249.                 }
  2250.                 else
  2251.                 {
  2252.                     SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie fliegen zu hoch oder zu tief!");
  2253.                 }
  2254.             }
  2255.             else
  2256.             {
  2257.                 SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie sind nicht in Nähe des Wassers!");
  2258.             }
  2259.         }
  2260.         else if(!strcmp(NehmenWerfen, "werfen", true))
  2261.         {
  2262.             if(IsPlayerInArea(playerid, -1856.782, -1704.97, -1810.071, -1669.936))
  2263.             {
  2264.                 if(zzz > 40.1974 && zzz < 55.000)
  2265.                 {
  2266.                     new str[128],
  2267.                         str2[128];
  2268.                     SetTimerEx("WasserNehmen", 15000, false, "u", playerid);
  2269.                     format(str, sizeof(str), "< "COLOR_YELLOW_HTML"%s "COLOR_LIGHTBLUE_HTML"an "COLOR_YELLOW_HTML"Bergwerkmitarbeiter"COLOR_LIGHTBLUE_HTML" > Werfe Wasser ab...", GetName(playerid));
  2270.                     SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
  2271.                     format(str2, sizeof(str2), "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_GREEN_HTML"] Belade die Kanister, bleiben Sie 15 Sekunden über der Verarbeitungsmaschine!", FVehicle[Carxxx][Kennzeichen]);
  2272.                     SendClientMessage(playerid, COLOR_GREEN, str2);
  2273.                     SetPVarInt(playerid, "WerfenOrNehmen", 2);
  2274.                 }
  2275.                 else
  2276.                 {
  2277.                     SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie fliegen zu hoch oder zu tief!");
  2278.                 }
  2279.             }
  2280.             else
  2281.             {
  2282.                 SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie sind nicht in Nähe der Verarbeitungsmaschine!");
  2283.             }
  2284.         }
  2285.     }
  2286.     return 1;
  2287. }
  2288.  
  2289.  
  2290. ocmd:createtanke(playerid, params[])
  2291. {
  2292.     new TankenName[50],
  2293.         Kaufpreis;
  2294.     if(sscanf(params, "sd", TankenName, Kaufpreis))
  2295.         return SendClientMessage(playerid, COLOR_RED, "/createtanke [Name] [Kaufpreis]");
  2296.     if(Spieler[playerid][Admin] > 2)
  2297.     {
  2298.         new Float:xx,
  2299.             Float:yy,
  2300.             Float:zz,
  2301.             query[400];
  2302.         GetPlayerPos(playerid, xx, yy, zz);
  2303.         format(query, sizeof(query), "INSERT INTO Tankstellen (Bezeichnung, Kaufpreis, fillX, fillY, fillZ) VALUES ('%s', '%d', '%f', '%f', '%f')", TankenName, Kaufpreis, xx, yy, zz);
  2304.         mysql_query(query);
  2305.         LoadTankstellen();
  2306.     }
  2307.     return 1;
  2308. }
  2309.  
  2310. ocmd:createautohaus(playerid, params[])
  2311. {
  2312.     new Namexx[50],
  2313.         BuyPricex;
  2314.     if(sscanf(params, "sd", Namexx, BuyPricex))
  2315.         return SendClientMessage(playerid, COLOR_RED, "/createautohaus [Name] [Kaufpreis]");
  2316.     if(Spieler[playerid][Admin] > 2)
  2317.     {
  2318.         new Float:x,
  2319.             Float:y,
  2320.             Float:z,
  2321.             query[400];
  2322.         GetPlayerPos(playerid, x, y, z);
  2323.         format(query, sizeof(query), "INSERT INTO Autohauser (Name, x, y, z, BuyPrice) VALUES ('%s', '%f', '%f', '%f', '%d')", Namexx, x, y, z, BuyPricex);
  2324.         mysql_query(query);
  2325.         LoadAutohauser();
  2326.     }
  2327.     return 1;
  2328. }
  2329.  
  2330. ocmd:plakette(playerid, params[])
  2331. {
  2332.     #pragma unused params
  2333.     new TankID = GetNearTanke(playerid);
  2334.     if(IsPlayerInRangeOfPoint(playerid, 4.0, Tankstelle[TankID][buyX], Tankstelle[TankID][buyY], Tankstelle[TankID][buyZ]))
  2335.     {
  2336.         new str1[128];
  2337.         format(str1, sizeof(str1), "Sie: Guten Tag, "COLOR_YELLOW_HTML"%s"COLOR_WHITE_HTML" mein Name, ich möchte Ihre Tankstelle mit Benzin beliefern.", GetName(playerid));
  2338.         SendClientMessage(playerid, COLOR_WHITE, str1);
  2339.         TogglePlayerControllable(playerid, 0);
  2340.         SetTimerEx("PlaketteOne", 4000, false, "ud", playerid, TankID);
  2341.     }
  2342.     return 1;
  2343. }
  2344.  
  2345. ocmd:zahlen(playerid, params[])
  2346. {
  2347.     #pragma unused params
  2348.     new TankID = GetNearTanke(playerid);
  2349.     if(TankID == GetPVarInt(playerid, "ZuZahlenTanke"))
  2350.     {
  2351.         new GeldToPay = GetPVarInt(playerid, "ZuZahlenHere"),
  2352.             str1[128],
  2353.             Float:x,
  2354.             Float:y,
  2355.             Float:z;
  2356.         GivePlayerMoney(playerid, -GeldToPay);
  2357.         GetPlayerPos(playerid, x, y, z);
  2358.         format(str1, sizeof(str1), "** "COLOR_YELLOW_HTML"%s"COLOR_PURPLE_HTML" übergibt dem Verkäufer $%d.", GetName(playerid), GeldToPay);
  2359.         SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str1, x, y, z);
  2360.     }
  2361.     return 1;
  2362. }
  2363.  
  2364. ocmd:setfrak(playerid, params[])
  2365. {
  2366.     new pID;
  2367.     if(sscanf(params, "u", pID))
  2368.         return SendClientMessage(playerid, COLOR_RED, "DU NUSS!");
  2369.     else
  2370.     {
  2371.         Spieler[pID][Fraktion] = Spieler[playerid][Fraktion];
  2372.     }
  2373.     return 1;
  2374. }
  2375.  
  2376. ocmd:tanken(playerid, params[])
  2377. {
  2378.     #pragma unused params
  2379.     new str[100];
  2380.     for(new id; id < MAX_TANKEN; id++)
  2381.     {
  2382.         if(IsPlayerInRangeOfPoint(playerid, 4.0, Tankstelle[id][tanX], Tankstelle[id][tanY], Tankstelle[id][tanZ]) && IsPlayerInAnyVehicle(playerid))
  2383.         {
  2384.             format(str, sizeof(str), "Tankstelle %s, Besitzer: %s", Tankstelle[id][tanName], Tankstelle[id][Besitzer]);
  2385.             ShowPlayerDialog(playerid, DIALOG_TANKEN, DIALOG_STYLE_INPUT, str, "Gewünschte Tankmenge:", "Tanken", "");
  2386.         }
  2387.     }
  2388.     return 1;
  2389. }
  2390.  
  2391. ocmd:createtankepay(playerid, params[])
  2392. {
  2393.     #pragma unused params
  2394.     if(Spieler[playerid][Admin] >= 5)
  2395.     {
  2396.         new TankID = GetNearTanke(playerid),
  2397.             Query[300],
  2398.             Float:x,
  2399.             Float:y,
  2400.             Float:z;
  2401.         GetPlayerPos(playerid, x, y, z);
  2402.         format(Query, sizeof(Query), "UPDATE Tankstellen SET payX = '%f', payY = '%f', payZ = '%f' WHERE ID = '%d'", x, y, z, TankID);
  2403.         mysql_query(Query);
  2404.         SendClientMessage(playerid, COLOR_GREEN, "["COLOR_WHITE_HTML"Tankstellensystem"COLOR_GREEN_HTML"] Tankstelle erstellt!");
  2405.         LoadTankstellen();
  2406.     }
  2407.     return 1;
  2408. }
  2409.  
  2410. ocmd:saveuser(playerid, params[])
  2411. {
  2412.     #pragma unused params
  2413.     if(Spieler[playerid][Admin] >= 1)
  2414.     {
  2415.         new str1[128];
  2416.         format(str1, sizeof(str1), "< OOC > "COLOR_RED_HTML"%s "COLOR_YELLOW_HTML"%s "COLOR_WHITE_HTML"lässt nun alle Accountdaten speichern!", GetPlayerAdmin(playerid), GetName(playerid));
  2417.         SendClientMessageToAll(COLOR_WHITE, str1);
  2418.         SaveAll();
  2419.     }
  2420.     else
  2421.     {
  2422.         SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Sie sind kein Administratorrank 6!");
  2423.     }
  2424.     return 1;
  2425. }
  2426.  
  2427. ocmd:members(playerid, params[])
  2428. {
  2429.     if(Spieler[playerid][Fraktion] < 1)
  2430.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: Sie sind in keiner Fraktion!");
  2431.     else
  2432.     {
  2433.         new str[1500];
  2434.         for(new x; x < MAX_PLAYERS; x++)
  2435.         {
  2436.             if(Spieler[x][Fraktion] == Spieler[playerid][Fraktion])
  2437.             {
  2438.                 format(str, sizeof(str), ""COLOR_YELLOW_HTML"%s "COLOR_BLUE_HTML"[Rank: %d]"COLOR_WHITE_HTML"\n", GetName(x), Spieler[x][FraktionRank]);
  2439.             }
  2440.             ShowPlayerDialog(playerid, DIALOG_MEMBERS, DIALOG_STYLE_LIST, "Fraktionsmitglieder", str, "Ok", "");
  2441.         }
  2442.     }
  2443.     return 1;
  2444. }
  2445.  
  2446. ocmd:admins(playerid, params[])
  2447. {
  2448.     new ListOrText;
  2449.     if(sscanf(params, "d", ListOrText))
  2450.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/admins [1 (Dialog) / 2 (Text)]");
  2451.     if(ListOrText > 2 || ListOrText < 1)
  2452.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/admins [1 (Dialog) / 2 (Text)]");
  2453.     if(ListOrText == 1)
  2454.     {
  2455.         new str[300];
  2456.         for(new j; j < MAX_PLAYERS; j++)
  2457.         {
  2458.             if(Spieler[j][Admin] > 0)
  2459.             {
  2460.                 if(IsPlayerConnected(j))
  2461.                 {
  2462.                     format(str, sizeof(str), "%s\n"COLOR_RED_HTML"%s"COLOR_WHITE_HTML": "COLOR_YELLOW_HTML"%s", str, GetPlayerAdmin(j), GetName(j));
  2463.                 }
  2464.                 else
  2465.                 {
  2466.                     format(str, sizeof(str), ""COLOR_RED_HTML"Kein Teammitglied online, tut uns leid!");
  2467.                 }
  2468.             }
  2469.         }
  2470.         ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_LIST, "Administratoren", str, "Ok", "");
  2471.     }
  2472.     else if(ListOrText == 2)
  2473.     {
  2474.         new str2[128];
  2475.         SendClientMessage(playerid, COLOR_BLUE, "["COLOR_YELLOW_HTML"<>"COLOR_WHITE_HTML"Administratoren"COLOR_YELLOW_HTML"<>"COLOR_BLUE_HTML"]");
  2476.         for(new x; x < MAX_PLAYERS; x++)
  2477.         {
  2478.             if(Spieler[x][Admin] > 0)
  2479.             {
  2480.                 if(IsPlayerConnected(x))
  2481.                 {
  2482.                     format(str2, sizeof(str2), ""COLOR_RED_HTML"%s"COLOR_WHITE_HTML": "COLOR_YELLOW_HTML"%s", GetPlayerAdmin(x), GetName(x));
  2483.                     SendClientMessage(playerid, COLOR_WHITE, str2);
  2484.                 }
  2485.                 else
  2486.                 {
  2487.                     format(str2, sizeof(str2), ""COLOR_RED_HTML"Kein Teammitglied online, tut uns leid!");
  2488.                 }
  2489.             }
  2490.         }
  2491.     }
  2492.     return 1;
  2493. }
  2494.  
  2495. ocmd:factioncarsave(playerid, params[])
  2496. {
  2497.     new FactionID,
  2498.         Kennzeichenx[25];
  2499.     if(sscanf(params, "ds", FactionID, Kennzeichenx))
  2500.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/factioncarsave [FraktionsID]");
  2501.     if(!IsPlayerInAnyVehicle(playerid))
  2502.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: Sie sind in keinem Fahrzeug!");
  2503.     if(Spieler[playerid][Admin] >= 5)
  2504.     {
  2505.         new Float:x,
  2506.             Float:y,
  2507.             Float:z,
  2508.             Float:a,
  2509.             Color1x,
  2510.             Color2x,
  2511.             Model,
  2512.             query[500],
  2513.             Vehicle;
  2514.         Vehicle = GetPlayerVehicleID(playerid);
  2515.         Model = GetVehicleModel(Vehicle);
  2516.         GetVehiclePos(Vehicle, x, y, z);
  2517.         GetVehicleZAngle(Vehicle, a);
  2518.         GetVehicleColor(Vehicle, Color1x, Color2x);
  2519.         format(query, sizeof(query), "INSERT INTO Fraktionsautos (VehicleModel, x, y, z, a, Color1, Color2, FraktionID, Kennzeichen) VALUES ('%d', '%f', '%f', '%f', '%f', '%d', '%d', '%d', '%s')", Model, x, y, z, a, Color1x, Color2x, FactionID, Kennzeichenx);
  2520.         mysql_query(query);
  2521.         RemovePlayerFromVehicle(Vehicle);
  2522.         DestroyAllVehicles();
  2523.         LoadFraktionsautos();
  2524.     }
  2525.     else
  2526.     {
  2527.         SendClientMessage(playerid, COLOR_RED, "[Server] ["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Sie sind kein Administratorrank 6!");
  2528.     }
  2529.     return 1;
  2530. }
  2531.  
  2532. ocmd:veh(playerid, params[])
  2533. {
  2534.     new vID,
  2535.         col1,
  2536.         col2,
  2537.         Float:x,
  2538.         Float:y,
  2539.         Float:z;
  2540.     if(sscanf(params, "ddd", vID, col1, col2))
  2541.         return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/veh [VehicleID] [FarbID 1] [FarbID 2]");
  2542.     if(Spieler[playerid][Admin] >= 2)
  2543.     {
  2544.         new vehicle;
  2545.         GetPlayerPos(playerid, x, y, z);
  2546.         vehicle = CreateVehicle(vID, x, y, z, 0, col1, col2, 60);
  2547.         PutPlayerInVehicle(playerid, vehicle, 0);
  2548.     }
  2549.     else
  2550.     {
  2551.         SendClientMessage(playerid, COLOR_RED, "[Server] ["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Sie sind kein Administratorrank 6!");
  2552.     }
  2553.     return 1;
  2554. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement