Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Deutsches Rollenspiel 2012
- Script von Vincent Petritz
- */
- #include <a_samp>
- #include <a_mysql>
- #include <ocmd>
- #include <sscanf2>
- #include <GetVehicleColor>
- #define SQL_HOST "xxx"
- #define SQL_USER "yyy"
- #define SQL_PASS "zzz"
- #define SQL_DATA "xyz"
- #define COLOR_WHITE 0xFFFFFFFF
- #define COLOR_YELLOW 0xFFC300FF
- #define COLOR_BLUE 0x0037FFFF
- #define COLOR_GREEN 0x008900FF
- #define COLOR_RED 0xFF000FFF
- #define COLOR_PINK 0xFA00FFFF
- #define COLOR_LIGHTBLUE 0x0091FFFF
- #define COLOR_BLUE_HTML "{0037FF}"
- #define COLOR_RED_HTML "{FF000F}"
- #define COLOR_GREEN_HTML "{008900}"
- #define COLOR_YELLOW_HTML "{FFC300}"
- #define COLOR_PURPLE_HTML "{653AFF}"
- #define COLOR_LIGHTBLUE_HTML "{0091FF}"
- #define COLOR_WHITE_HTML "{FFFFFF}"
- #define MAX_RANK_LENGH 20
- #define MAX_KZ_LENGH 25
- #define MAX_TANKEN_NAME 100
- #define MAX_FACTIONS 11
- #define MAX_AUTOH_NAME 50
- #define MAX_CARS_PER_AUTOH 1
- #define MAX_IND_NAME 50
- #define MAX_FACTION_RANKS 9
- #define MAX_INDUSTRIEN 3
- #define MAX_PICKUP 12
- #define MAX_AUTOHAUSER 2
- #define MAX_TANKEN 13
- #define MAX_FACTIONS 11
- #define DIALOG_REGISTER 1
- #define DIALOG_LOGIN 2
- #define DIALOG_RSTEP2 3
- #define DIALOG_RSTEP3 4
- #define DIALOG_RSTEP4 5
- #define DIALOG_ADMINS 6
- #define DIALOG_MEMBERS 7
- #define DIALOG_TANKEN 8
- #define DIALOG_TANKENINFO 9
- #define DIALOG_TANKINFO1 10
- #define DIALOG_BELIEFPREIS 11
- #define DIALOG_AUTOHAUSAUTO 12
- #define DIALOG_AUTOHINFO 13
- #define DIALOG_INDUINFO 14
- #define DIALOG_ZAHLMETHOD 15
- #define DIALOG_INDUINFOS 16
- #define DIALOG_AUTOHINFOS 17
- #define DIALOG_FRANKS 18
- #define DIALOG_RSTEP5 19
- #define DIALOG_RSTEP6 20
- #define DIALOG_METHODBANK 21
- #define DIALOG_METHODBANK2 22
- #define DIALOG_KEINACC 23
- #define DIALOG_FORUMLOGIN 24
- forward TankTime(playerid, Zahl, TankID);
- forward PlaketteOne(playerid, TankID);
- forward PlaketteTwo(playerid, TankID);
- forward WasserNehmen(playerid);
- new VehicleNames[212][] = {
- {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},
- {"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},
- {"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},
- {"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},
- {"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
- {"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
- {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},
- {"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},
- {"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
- {"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},
- {"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},
- {"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
- {"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},
- {"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},
- {"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},
- {"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},
- {"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},
- {"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},
- {"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},
- {"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},
- {"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},
- {"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},
- {"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},
- {"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},
- {"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},
- {"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
- {"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},
- {"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},
- {"Utility Trailer"}
- };
- enum SpielerDaten {
- Level,
- Name[MAX_PLAYER_NAME],
- Sex,
- Homestate,
- Admin,
- Fraktion,
- National,
- FraktionRank,
- Leader,
- Float:LastX,
- Float:LastY,
- Float:LastZ,
- Skin,
- uID,
- Online,
- Bankguthaben,
- Handguthaben,
- Banknummer
- };
- enum Tankstellen {
- Vorrat,
- ProdPreis,
- LiterPreis,
- Besitzer[MAX_PLAYER_NAME],
- Float:tanX,
- Float:tanY,
- Float:tanZ,
- Float:buyX,
- Float:buyY,
- Float:buyZ,
- BuyPrice,
- tanName[MAX_TANKEN_NAME],
- dbID,
- Text3D:pickUpTextBuy,
- Text3D:pickUpTextPay
- };
- enum FraktionsFahrzeug {
- Fraktion,
- Tank,
- Kennzeichen[MAX_KZ_LENGH],
- Color1,
- Color2,
- Float:vehX,
- Float:vehY,
- Float:vehZ,
- Float:vehA,
- Modell
- };
- enum AutohausCars {
- Float:carX,
- Float:carY,
- Float:carZ,
- carModell,
- carID,
- carLager,
- Float:carA,
- Fahrzeugkosten,
- carAutohaus
- };
- enum Autohauser {
- Float:autX,
- Float:autY,
- Float:autZ,
- autName[MAX_AUTOH_NAME],
- Besitzer[MAX_PLAYER_NAME],
- BuyPrice,
- Cars,
- MaxCars,
- autID,
- Text3D:pickUpText
- }
- enum Industrien {
- Float:indX,
- Float:indY,
- Float:indZ,
- indArt,
- indBesitzer[MAX_PLAYER_NAME],
- indWasser,
- indWasserMax,
- indMetall,
- indMetallMax,
- indOel,
- indOelMax,
- indName[MAX_IND_NAME],
- indID,
- Text3D:indText,
- indKaufpreis
- };
- enum PickUps {
- Float:pickX,
- Float:pickY,
- Float:pickZ,
- pickVirtual,
- pickModel,
- Float:pickGotoX,
- Float:pickGotoY,
- Float:pickGotoZ,
- pickGotoInt,
- pickGotoVirtual,
- pickInt
- };
- new MAX_KNOWING_VEHICLES = 0,
- Spieler[MAX_PLAYERS][SpielerDaten],
- FVehicle[MAX_VEHICLES][FraktionsFahrzeug],
- AutohausAuto[MAX_CARS_PER_AUTOH][AutohausCars],
- Tankstelle[MAX_TANKEN][Tankstellen],
- Autohaus[MAX_AUTOHAUSER][Autohauser],
- Industrie[MAX_INDUSTRIEN][Industrien],
- Pickup[MAX_PICKUP][PickUps],
- Motor[MAX_VEHICLES],
- engine,
- lights,
- alarm,
- doors,
- bonnet,
- boot,
- objective,
- WasserVorrat[MAX_VEHICLES];
- main()
- {
- print("[COMPLETE] main() wurde ausgefuehrt ... Script wurde geladen ...");
- }
- stock SendFraktionsMessage(factionid, color, string[])
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && !IsPlayerNPC(i))
- {
- if(Spieler[i][Fraktion] == factionid)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- return 0;
- }
- stock GetNearTanke(playerid)
- {
- new xID;
- for(new id; id < MAX_TANKEN; id++)
- if(IsPlayerInRangeOfPoint(playerid, 40.0, Tankstelle[id][tanX], Tankstelle[id][tanY], Tankstelle[id][tanZ]))
- xID = Tankstelle[id][dbID];
- return xID;
- }
- stock GetNearAutohaus(playerid)
- {
- new aID;
- for(new id; id < MAX_AUTOHAUSER; id++)
- if(IsPlayerInRangeOfPoint(playerid, 50.0, Autohaus[id][autX], Autohaus[id][autY], Autohaus[id][autZ]))
- aID = Autohaus[id][autID];
- return aID;
- }
- stock GetNearIndustrie(playerid)
- {
- new iID;
- for(new id; id < MAX_INDUSTRIEN; id++)
- if(IsPlayerInRangeOfPoint(playerid, 50.0, Industrie[id][indX], Industrie[id][indY], Industrie[id][indZ]))
- iID = Industrie[id][indID];
- return iID;
- }
- stock GetNearAutohausRadius(playerid, Float:Radius)
- {
- new aID;
- for(new id; id < MAX_AUTOHAUSER; id++)
- if(IsPlayerInRangeOfPoint(playerid, Radius, Autohaus[id][autX], Autohaus[id][autY], Autohaus[id][autZ]))
- aID = Autohaus[id][autID];
- return aID;
- }
- stock GetNearIndustrieRadius(playerid, Float:Radius)
- {
- new iID;
- for(new id; id < MAX_INDUSTRIEN; id++)
- if(IsPlayerInRangeOfPoint(playerid, Radius, Industrie[id][indX], Industrie[id][indY], Industrie[id][indZ]))
- iID = Industrie[id][indID];
- return iID;
- }
- stock GetNearTankeRadius(playerid, Float:Radius)
- {
- new xID;
- for(new id; id < MAX_TANKEN; id++)
- if(IsPlayerInRangeOfPoint(playerid, Radius, Tankstelle[id][tanX], Tankstelle[id][tanY], Tankstelle[id][tanZ]))
- xID = Tankstelle[id][dbID];
- return xID;
- }
- stock SendRadiusMessage(Float:radius, color, string[], Float:x, Float:y, Float:z)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && !IsPlayerNPC(i))
- {
- if(IsPlayerInRangeOfPoint(i, radius, x, y, z))
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- return 0;
- }
- stock mysql_GetString(Table[], Field[], Where[], Is[])
- {
- new query[128], Get[128];
- mysql_real_escape_string(Table, Table);
- mysql_real_escape_string(Field, Field);
- mysql_real_escape_string(Where, Where);
- mysql_real_escape_string(Is, Is);
- format(query, 128, "SELECT %s FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
- mysql_query(query);
- mysql_store_result();
- mysql_fetch_row(Get);
- return Get;
- }
- stock mysql_ReturnPasswort(xName[])
- {
- new query[130], Get[130];
- mysql_real_escape_string(xName, xName);
- format(query, 128, "SELECT Passwort FROM Accounts WHERE Name = '%s'", xName);
- mysql_query(query);
- mysql_store_result();
- mysql_fetch_row(Get);
- mysql_free_result();
- return Get;
- }
- stock Float:mysql_GetFloat(Table[], Field[], Where[], Is[])
- {
- new query[128], Float:sqlfloat;
- mysql_real_escape_string(Table, Table);
- mysql_real_escape_string(Field, Field);
- mysql_real_escape_string(Where, Where);
- mysql_real_escape_string(Is, Is);
- format(query, 128, "SELECT %s FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
- mysql_query(query);
- mysql_store_result();
- mysql_fetch_float(sqlfloat);
- mysql_free_result();
- return sqlfloat;
- }
- stock GetPlayerAdmin(playerid)
- {
- new Adminrank[80];
- switch(Spieler[playerid][Admin])
- {
- case 0:
- Adminrank = "Spieler";
- case 1:
- Adminrank = "Unterstützer";
- case 2:
- Adminrank = "Helfer";
- case 3:
- Adminrank = "Programmierer";
- case 4:
- Adminrank = "Koordinationsverwaltung";
- }
- return Adminrank;
- }
- stock mysql_SetInt(Table[], Field[], To, Where[], Where2[])
- {
- new query[128];
- mysql_real_escape_string(Table, Table);
- mysql_real_escape_string(Field, Field);
- mysql_real_escape_string(Where, Where);
- mysql_real_escape_string(Where2, Where2);
- format(query, 128, "UPDATE %s SET %s = '%d' WHERE %s = '%s'", Table, Field, To, Where, Where2);
- mysql_query(query);
- return true;
- }
- stock mysql_SetString(Table[], Field[], To[], Where[], Where2[])
- {
- new query[128];
- mysql_real_escape_string(Table, Table);
- mysql_real_escape_string(Field, Field);
- mysql_real_escape_string(To, To);
- mysql_real_escape_string(Where, Where);
- mysql_real_escape_string(Where2, Where2);
- format(query, 128, "UPDATE %s SET %s = '%s' WHERE %s = '%s'", Table, Field, To, Where, Where2);
- mysql_query(query);
- return true;
- }
- stock mysql_SetFloat(Table[], Field[], Float:To, Where[], Where2[])
- {
- new query[128];
- mysql_real_escape_string(Table, Table);
- mysql_real_escape_string(Field, Field);
- mysql_real_escape_string(Where, Where);
- mysql_real_escape_string(Where2, Where2);
- format(query, 128, "UPDATE %s SET %s = '%.1f' WHERE %s = '%s'", Table, Field, To, Where, Where2);
- mysql_query(query);
- return true;
- }
- stock mysql_GetInt(Table[], Field[], Where[], Is[])
- {
- new query[128];
- mysql_real_escape_string(Table, Table);
- mysql_real_escape_string(Field, Field);
- mysql_real_escape_string(Where, Where);
- mysql_real_escape_string(Is, Is);
- format(query, 128, "SELECT %s FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
- mysql_query(query);
- mysql_store_result();
- new sqlint = mysql_fetch_int();
- mysql_free_result();
- return sqlint;
- }
- stock LoadPlayer(playerid)
- {
- if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
- {
- GetPlayerName(playerid, Spieler[playerid][Name], MAX_PLAYER_NAME);
- Spieler[playerid][Level] = mysql_GetInt("Accounts", "Level", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Admin] = mysql_GetInt("Accounts", "Admin", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Sex] = mysql_GetInt("Accounts", "Sex", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Homestate] = mysql_GetInt("Accounts", "Homestate", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Fraktion] = mysql_GetInt("Accounts", "Fraktion", "Name", Spieler[playerid][Name]);
- Spieler[playerid][National] = mysql_GetInt("Accounts", "Nationality", "Name", Spieler[playerid][Name]);
- Spieler[playerid][FraktionRank] = mysql_GetInt("Accounts", "Rank", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Leader] = mysql_GetInt("Accounts", "Leader", "Name", Spieler[playerid][Name]);
- Spieler[playerid][LastX] = mysql_GetFloat("Accounts", "LastX", "Name", Spieler[playerid][Name]);
- Spieler[playerid][LastY] = mysql_GetFloat("Accounts", "LastY", "Name", Spieler[playerid][Name]);
- Spieler[playerid][LastZ] = mysql_GetFloat("Accounts", "LastZ", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Skin] = mysql_GetInt("Accounts", "Skin", "Name", Spieler[playerid][Name]);
- Spieler[playerid][uID] = mysql_GetInt("wcf1_user", "userID", "username", Spieler[playerid][Name]);
- Spieler[playerid][Banknummer] = mysql_GetInt("Accounts", "Banknummer", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Bankguthaben] = mysql_GetInt("Accounts", "Bank", "Name", Spieler[playerid][Name]);
- Spieler[playerid][Handguthaben] = mysql_GetInt("Accounts", "Bar", "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Online", Spieler[playerid][Online], "Name", Spieler[playerid][Name]);
- SetPVarInt(playerid, "FirstSpawn", 1);
- GivePlayerMoney(playerid, Spieler[playerid][Handguthaben]);
- printf("[LOAD] Spieler %s geladen.", Spieler[playerid][Name]);
- }
- return 1;
- }
- stock CheckForenaccount(playerid, Pass[])
- {
- #pragma unused playerid
- new query[256];
- format(query, sizeof(query), "SELECT password FROM wcf1_user WHERE password = md5(md5('%s')) LIMIT 1", Pass);
- mysql_query(query);
- return mysql_num_rows();
- }
- stock CreateAccount(playerid, pass[])
- {
- new query[256],
- query2[256],
- xName[MAX_PLAYER_NAME],
- Stunde,
- Minute,
- Sekunde;
- gettime(Stunde, Minute, Sekunde);
- GetPlayerName(playerid, xName, MAX_PLAYER_NAME);
- mysql_real_escape_string(xName,xName);
- mysql_real_escape_string(pass,pass);
- format(query, sizeof(query), "INSERT INTO Accounts (Name, Passwort) VALUES ('%s', '%s')", xName, pass);
- mysql_query(query);
- Spieler[playerid][uID] = mysql_GetInt("wcf1_user", "userID", "username", Spieler[playerid][Name]);
- printf("%s!", query2);
- printf("ForenID: %d!", Spieler[playerid][uID]);
- return true;
- }
- stock IsPlayerInArea(playerid,Float:minX,Float:minY,Float:maxX,Float:maxY)
- {
- new Float:pX,Float:pY,Float:pZ;
- GetPlayerPos(playerid,pX,pY,pZ);
- if(pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) return 1;
- else return 0;
- }
- stock mysql_CheckAccountWCF(playerid)
- {
- new Query[128],xName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, xName, MAX_PLAYER_NAME);
- mysql_real_escape_string(xName, xName);
- format(Query, sizeof(Query), "SELECT * FROM wcf1_user WHERE username = '%s'", xName);
- mysql_query(Query);
- mysql_store_result();
- return mysql_num_rows();
- }
- stock mysql_CheckAccountSAMP(playerid)
- {
- new Query[128],xName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, xName, MAX_PLAYER_NAME);
- mysql_real_escape_string(xName, xName);
- format(Query, sizeof(Query), "SELECT * FROM Accounts WHERE Name = '%s'", xName);
- mysql_query(Query);
- mysql_store_result();
- return mysql_num_rows();
- }
- stock DatabaseConnect()
- {
- mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS);
- if(mysql_ping() == 1)
- {
- print("[MySQL] Verbindung zur Datenbank wurde hergestellt!");
- return true;
- }
- else
- {
- print("[MySQL] Es konnte keine Verbindung hergestellt werden!");
- print("[MySQL] Es wird erneut versucht eine Verbindung herzustellen!");
- mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS);
- if(mysql_ping() == 1)
- {
- print("[MySQL] Es konnte nun eine Verbindung hergestellt werden!");
- return true;
- }
- else
- {
- print("[MySQL] Es konnte keine Verbindung hergestellt werden!");
- print("[MySQL] Der Server wird nun beendet!");
- SendRconCommand("exit");
- return true;
- }
- }
- }
- stock GetName(playerid)
- {
- new xName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, xName, sizeof(xName));
- return xName;
- }
- stock SaveAll()
- {
- for(new x; x < MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x))
- {
- mysql_SetInt("Accounts", "Level", Spieler[x][Level], "Name", Spieler[x][Name]);
- mysql_SetInt("Accounts", "Admin", Spieler[x][Admin], "Name", Spieler[x][Name]);
- mysql_SetInt("Accounts", "Sex", Spieler[x][Sex], "Name", Spieler[x][Name]);
- mysql_SetInt("Accounts", "Homestate", Spieler[x][Homestate], "Name", Spieler[x][Name]);
- mysql_SetInt("Accounts", "Fraktion", Spieler[x][Fraktion], "Name", Spieler[x][Name]);
- mysql_SetInt("Accounts", "Nationality", Spieler[x][National], "Name", Spieler[x][Name]);
- mysql_SetInt("Accounts", "Rank", Spieler[x][FraktionRank], "Name", Spieler[x][Name]);
- mysql_SetInt("Accounts", "Leader", Spieler[x][Leader], "Name", Spieler[x][Name]);
- mysql_SetFloat("Accounts", "LastX", Spieler[x][LastX], "Name", Spieler[x][Name]);
- mysql_SetFloat("Accounts", "LastY", Spieler[x][LastY], "Name", Spieler[x][Name]);
- mysql_SetFloat("Accounts", "LastZ", Spieler[x][LastZ], "Name", Spieler[x][Name]);
- }
- }
- return 1;
- }
- stock SavePlayer(playerid)
- {
- if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
- {
- mysql_SetInt("Accounts", "Level", Spieler[playerid][Level], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Admin", Spieler[playerid][Admin], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Sex", Spieler[playerid][Sex], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Homestate", Spieler[playerid][Homestate], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Fraktion", Spieler[playerid][Fraktion], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Nationality", Spieler[playerid][National], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Rank", Spieler[playerid][FraktionRank], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Leader", Spieler[playerid][Leader], "Name", Spieler[playerid][Name]);
- mysql_SetFloat("Accounts", "LastX", Spieler[playerid][LastX], "Name", Spieler[playerid][Name]);
- mysql_SetFloat("Accounts", "LastY", Spieler[playerid][LastY], "Name", Spieler[playerid][Name]);
- mysql_SetFloat("Accounts", "LastZ", Spieler[playerid][LastZ], "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Skin", GetPlayerSkin(playerid), "Name", Spieler[playerid][Name]);
- mysql_SetInt("Accounts", "Online", Spieler[playerid][Online], "Name", Spieler[playerid][Name]);
- printf("%s gespeichert (LastX: %f ... Admin: %d)... :D", GetName(playerid), Spieler[playerid][LastX], Spieler[playerid][Admin]);
- }
- return 1;
- }
- stock UpdateTankstellen(TankID)
- {
- new str[500];
- if(strlen(Tankstelle[TankID][Besitzer]) == 0)
- {
- 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]);
- }
- else
- {
- 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]);
- }
- Update3DTextLabelText(Tankstelle[TankID][pickUpTextBuy], COLOR_GREEN, str);
- return 1;
- }
- stock LoadIndustrien()
- {
- new str1[15],
- str2[300],
- indu = 1;
- while(indu < MAX_INDUSTRIEN)
- {
- format(str1, sizeof(str1), "%d", indu);
- Industrie[indu][indID] = mysql_GetInt("Industrien", "ID", "ID", str1);
- Industrie[indu][indX] = mysql_GetFloat("Industrien", "x", "ID", str1);
- Industrie[indu][indY] = mysql_GetFloat("Industrien", "y", "ID", str1);
- Industrie[indu][indZ] = mysql_GetFloat("Industrien", "z", "ID", str1);
- Industrie[indu][indArt] = mysql_GetInt("Industrien", "Art", "ID", str1);
- Industrie[indu][indWasser] = mysql_GetInt("Industrien", "Wasser", "ID", str1);
- Industrie[indu][indMetall] = mysql_GetInt("Industrien", "Metall", "ID", str1);
- Industrie[indu][indWasserMax] = mysql_GetInt("Industrien", "WasserMax", "ID", str1);
- Industrie[indu][indOelMax] = mysql_GetInt("Industrien", "OelMax", "ID", str1);
- Industrie[indu][indMetallMax] = mysql_GetInt("Industrien", "MetallMax", "ID", str1);
- Industrie[indu][indOel] = mysql_GetInt("Industrien", "Oel", "ID", str1);
- format(Industrie[indu][indBesitzer], MAX_PLAYER_NAME, mysql_GetString("Industrien", "Besitzer", "ID", str1));
- format(Industrie[indu][indName], MAX_PLAYER_NAME, mysql_GetString("Industrien", "Name", "ID", str1));
- Industrie[indu][indKaufpreis] = mysql_GetInt("Industrien", "Kaufpreis", "ID", str1);
- if(Industrie[indu][indArt] == 1)//Ölindustrie
- {
- 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]);
- }
- else if(Industrie[indu][indArt] == 2)//Metallkonzern
- {
- 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]);
- }
- printf("[LOAD] Industrie %s geladen.", Industrie[indu][indName]);
- Industrie[indu][indText] = Create3DTextLabel(str2, COLOR_GREEN, Industrie[indu][indX], Industrie[indu][indY], Industrie[indu][indZ], 50.0, 0);
- indu++;
- }
- return 1;
- }
- stock LoadTankstellen()
- {
- new str3[15],
- str2[500],
- str4[150],
- tanken = 1;
- while(tanken < MAX_TANKEN)
- {
- format(str3, sizeof(str3), "%d", tanken);
- Tankstelle[tanken][ProdPreis] = mysql_GetInt("Tankstellen", "ProdPreis", "ID", str3);
- Tankstelle[tanken][LiterPreis] = mysql_GetInt("Tankstellen", "LiterPreis", "ID", str3);
- Tankstelle[tanken][Vorrat] = mysql_GetInt("Tankstellen", "LiterVorrat", "ID", str3);
- Tankstelle[tanken][tanX] = mysql_GetFloat("Tankstellen", "fillX", "ID", str3);
- Tankstelle[tanken][tanY] = mysql_GetFloat("Tankstellen", "fillY", "ID", str3);
- Tankstelle[tanken][tanZ] = mysql_GetFloat("Tankstellen", "fillZ", "ID", str3);
- Tankstelle[tanken][buyX] = mysql_GetFloat("Tankstellen", "payX", "ID", str3);
- Tankstelle[tanken][buyY] = mysql_GetFloat("Tankstellen", "payY", "ID", str3);
- Tankstelle[tanken][buyZ] = mysql_GetFloat("Tankstellen", "payZ", "ID", str3);
- Tankstelle[tanken][dbID] = mysql_GetInt("Tankstellen", "ID", "ID", str3);
- format(Tankstelle[tanken][tanName], MAX_TANKEN_NAME, mysql_GetString("Tankstellen", "Bezeichnung", "ID", str3));
- format(Tankstelle[tanken][Besitzer], MAX_PLAYER_NAME, mysql_GetString("Tankstellen", "Besitzer", "ID", str3));
- Tankstelle[tanken][BuyPrice] = mysql_GetInt("Tankstellen", "Kaufpreis", "ID", str3);
- if(strlen(Tankstelle[tanken][Besitzer]) == 0)
- {
- 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]);
- }
- else
- {
- 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]);
- }
- format(str4, sizeof(str4), "%s\n\n"COLOR_RED_HTML"Kasse\n"COLOR_WHITE_HTML"Preis/Liter: $%d", Tankstelle[tanken][tanName], Tankstelle[tanken][LiterPreis]);
- printf("[LOAD] Tankstelle %s geladen.", Tankstelle[tanken][tanName]);
- Tankstelle[tanken][pickUpTextBuy] = Create3DTextLabel(str2, COLOR_GREEN, Tankstelle[tanken][tanX], Tankstelle[tanken][tanY], Tankstelle[tanken][tanZ], 50.0, 0);
- Tankstelle[tanken][pickUpTextPay] = Create3DTextLabel(str4, COLOR_GREEN, Tankstelle[tanken][buyX], Tankstelle[tanken][buyY], Tankstelle[tanken][buyZ], 50.0, 0);
- tanken++;
- }
- return 1;
- }
- stock LoadPickups()
- {
- new str[15],
- pix = 1;
- while(pix < MAX_PICKUPS)
- {
- format(str, sizeof(str), "%d", pix);
- Pickup[pix][pickX] = mysql_GetFloat("Pickups", "x", "ID", str);
- Pickup[pix][pickY] = mysql_GetFloat("Pickups", "y", "ID", str);
- Pickup[pix][pickZ] = mysql_GetFloat("Pickups", "z", "ID", str);
- Pickup[pix][pickGotoX] = mysql_GetFloat("Pickups", "gotoX", "ID", str);
- Pickup[pix][pickGotoY] = mysql_GetFloat("Pickups", "gotoY", "ID", str);
- Pickup[pix][pickGotoZ] = mysql_GetFloat("Pickups", "gotoZ", "ID", str);
- Pickup[pix][pickModel] = mysql_GetInt("Pickups", "Model", "ID", str);
- Pickup[pix][pickVirtual] = mysql_GetInt("Pickups", "Virtual", "ID", str);
- Pickup[pix][pickGotoInt] = mysql_GetInt("Pickups", "gotoInt", "ID", str);
- Pickup[pix][pickInt] = mysql_GetInt("Pickups", "Int", "ID", str);
- Pickup[pix][pickGotoVirtual] = mysql_GetInt("Pickups", "gotoVirtual", "ID", str);
- CreatePickup(Pickup[pix][pickModel], 23, Pickup[pix][pickX], Pickup[pix][pickY], Pickup[pix][pickZ], Pickup[pix][pickVirtual]);
- }
- return 1;
- }
- stock LoadAutohauser()
- {
- new str[15],
- autohaus = 1,
- str2[350];
- while(autohaus < MAX_AUTOHAUSER)
- {
- format(str, sizeof(str), "%d", autohaus);
- Autohaus[autohaus][autID] = mysql_GetInt("Autohauser", "ID", "ID", str);
- Autohaus[autohaus][autX] = mysql_GetFloat("Autohauser", "x", "ID", str);
- Autohaus[autohaus][autY] = mysql_GetFloat("Autohauser", "y", "ID", str);
- Autohaus[autohaus][autZ] = mysql_GetFloat("Autohauser", "z", "ID", str);
- format(Autohaus[autohaus][Besitzer], MAX_PLAYER_NAME, mysql_GetString("Autohauser", "Besitzer", "ID", str));
- Autohaus[autohaus][BuyPrice] = mysql_GetInt("Autohauser", "BuyPrice", "ID", str);
- Autohaus[autohaus][Cars] = mysql_GetInt("Autohauser", "Cars", "ID", str);
- Autohaus[autohaus][MaxCars] = mysql_GetInt("Autohauser", "MaxCars", "ID", str);
- format(Autohaus[autohaus][autName], MAX_AUTOH_NAME, mysql_GetString("Autohauser", "Name", "ID", str));
- if(strlen(Autohaus[autohaus][Besitzer]) < 1)
- {
- 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]);
- }
- else
- {
- 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]);
- }
- printf("[LOAD] Autohaus %s geladen.", Autohaus[autohaus][autName]);
- Autohaus[autohaus][pickUpText] = Create3DTextLabel(str2, COLOR_GREEN, Autohaus[autohaus][autX], Autohaus[autohaus][autY], Autohaus[autohaus][autZ], 50.0, 0);
- autohaus++;
- }
- return 1;
- }
- stock DestroyAllVehicles()
- {
- for(new x; x < MAX_VEHICLES; x++)
- {
- if(FVehicle[x][Fraktion] > 0)
- {
- DestroyVehicle(x);
- }
- }
- return 1;
- }
- stock FraktionsautosCount()
- {
- new Get[128],
- count;
- mysql_query("SELECT MAX(`ID`) FROM Fraktionsautos");
- mysql_store_result();
- mysql_fetch_row(Get);
- count = strval(Get);
- MAX_KNOWING_VEHICLES = count;
- mysql_free_result();
- return 1;
- }
- stock AutohausautosCount()
- {
- new Get[128],
- count;
- mysql_query("SELECT MAX(`ID`) FROM Autohausautos");
- mysql_store_result();
- mysql_fetch_row(Get);
- count = strval(Get);
- MAX_CARS_PER_AUTOH = count;
- mysql_free_result();
- return 1;
- }
- stock LoadAutohausautos()
- {
- new str[15],
- carID = 1;
- while(carID < MAX_CARS_PER_AUTOH)
- {
- format(str, sizeof(str), "%d", carID);
- AutohausAuto[carID][carAutohaus] = mysql_GetInt("Autohausautos", "Autohaus", "ID", str);
- AutohausAuto[carID][carX] = mysql_GetFloat("Autohausautos", "x", "ID", str);
- AutohausAuto[carID][carY] = mysql_GetFloat("Autohausautos", "y", "ID", str);
- AutohausAuto[carID][carZ] = mysql_GetFloat("Autohausautos", "z", "ID", str);
- AutohausAuto[carID][carLager] = mysql_GetInt("Autohausautos", "Lager", "ID", str);
- AutohausAuto[carID][carA] = mysql_GetFloat("Autohausautos", "a", "ID", str);
- AutohausAuto[carID][Fahrzeugkosten] = mysql_GetInt("Autohausautos", "Fahrzeugkosten" ,"ID", str);
- format(AutohausAuto[carID][carKennzeichen], MAX_KZ_LENGH, mysql_GetString("Autohausautos", "Kennzeichen", "ID", str));
- AutohausAuto[carID][carModell] = mysql_GetInt("Autohausautos", "Model", "ID", str);
- 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]);
- printf("[LOAD] Autohausauto %s geladen.", AutohausAuto[carID][carKennzeichen]);
- }
- return 1;
- }
- stock LoadFraktionsautos()
- {
- new string[15],
- vehicleid = 1;
- while(vehicleid < MAX_KNOWING_VEHICLES)
- {
- format(string, sizeof(string), "%d", vehicleid);
- FVehicle[vehicleid][Tank] = mysql_GetInt("Fraktionsautos", "Tankmenge", "ID", string);
- format(FVehicle[vehicleid][Kennzeichen], MAX_KZ_LENGH, mysql_GetString("Fraktionsautos", "Kennzeichen", "ID", string));
- FVehicle[vehicleid][Color1] = mysql_GetInt("Fraktionsautos", "Color1", "ID", string);
- FVehicle[vehicleid][Color2] = mysql_GetInt("Fraktionsautos", "Color2", "ID", string);
- FVehicle[vehicleid][vehX] = mysql_GetFloat("Fraktionsautos", "x", "ID", string);
- FVehicle[vehicleid][vehY] = mysql_GetFloat("Fraktionsautos", "y", "ID", string);
- FVehicle[vehicleid][vehZ] = mysql_GetFloat("Fraktionsautos", "z", "ID", string);
- FVehicle[vehicleid][vehA] = mysql_GetFloat("Fraktionsautos", "a", "ID", string);
- FVehicle[vehicleid][Modell] = mysql_GetInt("Fraktionsautos", "VehicleModel", "ID", string);
- FVehicle[vehicleid][Fraktion] = mysql_GetInt("Fraktionsautos", "FraktionID", "ID", string);
- 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]);
- printf("[LOAD] Fraktionsauto %s geladen.", FVehicle[vehicleid][Kennzeichen]);
- vehicleid++;
- }
- return 1;
- }
- public OnGameModeInit()
- {
- mysql_debug(1);
- printf("Gamemode started!");
- DatabaseConnect();
- printf("Databaseconnect successfull!");
- FraktionsautosCount();
- ManualVehicleEngineAndLights();
- SetGameModeText("Deutsches Rollenspiel");
- LoadFraktionsautos();
- LoadTankstellen();
- LoadAutohauser();
- LoadIndustrien();
- for (new i=0; i< MAX_VEHICLES; i++)
- {
- GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
- Motor[i] = 0;
- }
- //Autohaus LV
- CreateObject(4100, 1631.1999511719, 1019.200012207, 11.5, 0, 0, 320);
- CreateObject(4100, 1644.9000244141, 1019.200012207, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1658.5999755859, 1019.200012207, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1672.3000488281, 1019.200012207, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1686, 1019.200012207, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1699.6999511719, 1019.200012207, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1713.4000244141, 1019.200012207, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1696.5, 935.09997558594, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1682.8000488281, 935.20001220703, 11.39999961853, 0, 0, 319.99877929688);
- CreateObject(4100, 1710.1999511719, 935.09997558594, 11.5, 0, 0, 319.99877929688);
- CreateObject(4100, 1757.3000488281, 963.20001220703, 11.5, 0, 0, 229.99877929688);
- CreateObject(4100, 1757.3000488281, 976.90002441406, 11.5, 0, 0, 229.99328613281);
- CreateObject(9361, 1627.5, 994.79998779297, 12.39999961853, 0, 0, 44);
- CreateObject(1492, 1629.0999755859, 996.40002441406, 9.6999998092651, 0, 0, 268);
- CreateObject(2904, 1629.0999755859, 993.70001220703, 11.10000038147, 0, 0, 268);
- CreateObject(3749, 1667.8000488281, 943.29998779297, 15.5, 0, 0, 0);
- CreateObject(7956, 1625.0999755859, 943.29998779297, 11.199999809265, 0, 0, 295.99996948242);
- CreateObject(7956, 1610.6999511719, 943.40002441406, 11.199999809265, 0, 0, 296);
- CreateObject(1714, 1625.0999755859, 998.5, 10.10000038147, 0, 0, 40);
- CreateObject(1726, 1627.5999755859, 991.29998779297, 10, 0, 0, 179.99993896484);
- CreateObject(2008, 1626.0999755859, 997.59997558594, 10.10000038147, 0, 0, 182);
- CreateObject(1360, 1630, 997.79998779297, 10.60000038147, 0, 0, 0);
- CreateObject(2195, 1628.5999755859, 998.40002441406, 10.699999809265, 0, 0, 0);
- CreateObject(2811, 1628.3000488281, 991.29998779297, 10, 0, 0, 0);
- CreateObject(2811, 1624.8000488281, 991.20001220703, 10, 0, 0, 0);
- CreateObject(3811, 1629.5, 992.29998779297, 11.10000038147, 0, 0, 0);
- CreateObject(18014, 1662.3000488281, 943.20001220703, 10.10000038147, 0, 0, 0);
- CreateObject(18014, 1673.3000488281, 943.20001220703, 10.300000190735, 0, 0, 0);
- CreateObject(1215, 1629.5, 994, 11.89999961853, 0, 42, 0);
- CreateObject(1360, 1627.8000488281, 999.79998779297, 10.60000038147, 0, 0, 88);
- CreateObject(1215, 1660.3000488281, 941.09997558594, 14, 0, 41.995239257813, 274);
- CreateObject(1215, 1674.9000244141, 940.90002441406, 14.10000038147, 0, 41.98974609375, 273.9990234375);
- CreateObject(1478, 1659.8000488281, 939.70001220703, 10.39999961853, 0, 0, 0);
- CreateObject(1776, 1628.5999755859, 993.40002441406, 11.10000038147, 0, 0, 269.99996948242);
- CreateObject(4100, 1750.4000244141, 934.70001220703, 11.39999961853, 0, 0, 319.99877929688);
- CreateObject(4100, 1750.5, 992.40002441406, 11.39999961853, 0, 0, 319.99877929688);
- CreateObject(4100, 1584.4000244141, 1011.200012207, 11.39999961853, 0, 0, 319.99877929688);
- CreateObject(9131, 1577.4000244141, 943.59997558594, 11.39999961853, 0, 0, 0);
- CreateObject(3515, 1667.4000244141, 967.70001220703, 9.6999998092651, 0, 0, 0);
- CreateObject(1215, 1660.5, 967.79998779297, 10.89999961853, 0, 0, 0);
- CreateObject(1215, 1674.1999511719, 967.79998779297, 10.800000190735, 0, 0, 0);
- CreateObject(1215, 1660.5, 973.79998779297, 10.800000190735, 0, 0, 0);
- CreateObject(1215, 1674.3000488281, 973.79998779297, 10.800000190735, 0, 0, 0);
- CreateObject(11292, 1632.0999755859, 983.70001220703, 9.8000001907349, 0, 0, 359.15930175781);
- CreateObject(11292, 1632.0999755859, 980.5, 9.8000001907349, 0, 0, 179.15405273438);
- CreateObject(5061, 1631.1999511719, 974.79998779297, 10.300000190735, 344.00073242188, 90.165740966797, 177.49505615234);
- CreateObject(1215, 1636.3000488281, 978.20001220703, 12, 0, 0, 0);
- CreateObject(1215, 1636.5, 985.79998779297, 12, 0, 0, 0);
- CreateObject(5821, 1633.5, 987.79998779297, 7.4000000953674, 0, 0, 268);
- //Ordnungsamt LS
- CreateObject(8674, 1761.0999755859, -1691.9000244141, 13.89999961853, 0, 0, 270);
- CreateObject(8674, 1802.5, -1720.9000244141, 14, 0, 0, 348);
- CreateObject(9131, 1761.4000244141, -1697.5999755859, 12.800000190735, 0, 0, 0);
- CreateObject(9131, 1761.4000244141, -1697.5999755859, 15, 0, 0, 0);
- CreateObject(638, 1760.5, -1696, 13.10000038147, 0, 0, 0);
- CreateObject(638, 1760.5, -1704.8000488281, 13.10000038147, 0, 0, 0);
- CreateObject(1215, 1760.9000244141, -1696, 15.300000190735, 0, 326, 0);
- CreateObject(989, 1761.3000488281, -1700.6999511719, 14.300000190735, 0, 0, 197.99996948242);
- //LSPD
- CreateObject(2011, 1505.32, -1530.33, 14.38, 0.00, 0.00, 0.00);
- CreateObject(2011, 1699.19, -1781.55, 43.82, 0.00, 0.00, 0.00);
- CreateObject(2011, 1512.26, -1530.41, 14.35, 0.00, 0.00, 0.00);
- CreateObject(2011, 1519.31, -1530.35, 14.36, 0.00, 0.00, 0.00);
- CreateObject(715, 1498.51, -1525.26, 21.47, 0.00, 0.00, 2.46);
- CreateObject(715, 1502.87, -1516.70, 21.47, 0.00, 0.00, 0.00);
- CreateObject(715, 1502.92, -1505.47, 21.38, 0.00, 0.00, 0.00);
- CreateObject(715, 1490.18, -1528.93, 21.51, 0.00, 0.00, 0.00);
- CreateObject(715, 1483.73, -1537.71, 21.26, 0.00, 0.00, 0.00);
- CreateObject(715, 1483.50, -1558.69, 21.24, 0.00, 0.00, 358.64);
- CreateObject(715, 1490.30, -1564.96, 21.37, 0.00, 0.00, 0.00);
- CreateObject(715, 1495.84, -1570.68, 21.25, 0.00, 0.00, 0.00);
- CreateObject(715, 1502.60, -1576.32, 21.40, 0.00, 0.00, 0.00);
- CreateObject(715, 1531.46, -1570.67, 21.33, 0.00, 0.00, 0.00);
- CreateObject(715, 1536.06, -1564.37, 21.29, 0.00, 0.00, 0.00);
- CreateObject(715, 1543.21, -1558.45, 21.34, 0.00, 0.00, 0.00);
- CreateObject(715, 1523.49, -1504.99, 21.38, 0.00, 0.00, 0.00);
- CreateObject(715, 1523.70, -1517.87, 21.34, 0.00, 0.00, 359.20);
- CreateObject(715, 1531.28, -1525.16, 21.40, 0.00, 0.00, 0.00);
- CreateObject(715, 1543.07, -1537.95, 21.32, 0.00, 0.00, 0.00);
- CreateObject(10368, 1502.23, -1540.74, 33.06, 0.00, 0.00, 270.01);
- CreateObject(2011, 1505.32, -1530.33, 14.38, 0.00, 0.00, 0.00);
- CreateObject(2011, 1699.19, -1781.55, 43.82, 0.00, 0.00, 0.00);
- CreateObject(2011, 1512.26, -1530.41, 14.35, 0.00, 0.00, 0.00);
- CreateObject(2011, 1519.31, -1530.35, 14.36, 0.00, 0.00, 0.00);
- CreateObject(715, 1498.51, -1525.26, 21.47, 0.00, 0.00, 2.46);
- CreateObject(715, 1502.87, -1516.70, 21.47, 0.00, 0.00, 0.00);
- CreateObject(715, 1490.18, -1528.93, 21.51, 0.00, 0.00, 0.00);
- CreateObject(715, 1483.73, -1537.71, 21.26, 0.00, 0.00, 0.00);
- CreateObject(715, 1483.50, -1558.69, 21.24, 0.00, 0.00, 358.64);
- CreateObject(715, 1490.30, -1564.96, 21.37, 0.00, 0.00, 0.00);
- CreateObject(715, 1531.46, -1570.67, 21.33, 0.00, 0.00, 0.00);
- CreateObject(715, 1543.21, -1558.45, 21.34, 0.00, 0.00, 0.00);
- CreateObject(715, 1523.70, -1517.87, 21.34, 0.00, 0.00, 359.20);
- CreateObject(715, 1531.28, -1525.16, 21.40, 0.00, 0.00, 0.00);
- CreateObject(715, 1543.07, -1537.95, 21.32, 0.00, 0.00, 0.00);
- CreateObject(2011, 1505.32, -1530.33, 14.38, 0.00, 0.00, 0.00);
- CreateObject(2011, 1699.19, -1781.55, 43.82, 0.00, 0.00, 0.00);
- CreateObject(2011, 1512.26, -1530.41, 14.35, 0.00, 0.00, 0.00);
- CreateObject(2011, 1519.31, -1530.35, 14.36, 0.00, 0.00, 0.00);
- CreateObject(715, 1498.51, -1525.26, 21.47, 0.00, 0.00, 2.46);
- CreateObject(715, 1502.87, -1516.70, 21.47, 0.00, 0.00, 0.00);
- CreateObject(715, 1490.18, -1528.93, 21.51, 0.00, 0.00, 0.00);
- CreateObject(715, 1483.73, -1537.71, 21.26, 0.00, 0.00, 0.00);
- CreateObject(715, 1483.50, -1558.69, 21.24, 0.00, 0.00, 358.64);
- CreateObject(715, 1490.30, -1564.96, 21.37, 0.00, 0.00, 0.00);
- CreateObject(715, 1523.64, -1577.12, 21.29, 0.00, 0.00, 0.00);
- CreateObject(715, 1531.46, -1570.67, 21.33, 0.00, 0.00, 0.00);
- CreateObject(715, 1543.21, -1558.45, 21.34, 0.00, 0.00, 0.00);
- CreateObject(715, 1523.70, -1517.87, 21.34, 0.00, 0.00, 359.20);
- CreateObject(715, 1531.28, -1525.16, 21.40, 0.00, 0.00, 0.00);
- CreateObject(715, 1536.11, -1532.88, 21.29, 0.00, 0.00, 0.00);
- CreateObject(715, 1543.07, -1537.95, 21.32, 0.00, 0.00, 0.00);
- CreateObject(744, 1529.78, -1577.07, 12.39, 0.00, 0.00, 1.94);
- CreateObject(853, 1461.47, -1578.41, 12.90, 0.00, 0.00, 0.00);
- CreateObject(854, 1460.28, -1577.61, 12.70, 0.00, 0.00, 0.00);
- CreateObject(870, 1502.75, -1575.68, 13.41, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.38, -1578.24, 13.28, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.39, -1573.46, 13.28, 0.00, 0.00, 0.00);
- CreateObject(870, 1502.23, -1571.71, 13.35, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.08, -1570.51, 13.25, 0.00, 0.00, 0.00);
- CreateObject(870, 1502.46, -1569.92, 13.30, 0.00, 0.00, 0.00);
- CreateObject(870, 1499.09, -1570.11, 13.36, 0.00, 0.00, 0.00);
- CreateObject(870, 1488.37, -1570.43, 13.37, 0.00, 0.00, 0.00);
- CreateObject(870, 1495.69, -1570.34, 13.28, 0.00, 0.00, 0.00);
- CreateObject(870, 1493.63, -1570.19, 13.29, 0.00, 0.00, 0.00);
- CreateObject(870, 1491.82, -1570.32, 13.35, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.89, -1570.41, 13.48, 0.00, 0.00, 0.00);
- CreateObject(870, 1497.79, -1570.75, 13.43, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.24, -1568.01, 13.51, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.26, -1565.90, 13.57, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.29, -1563.63, 13.57, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.14, -1561.85, 13.38, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.33, -1559.96, 13.36, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.46, -1557.26, 13.37, 0.00, 0.00, 0.00);
- CreateObject(870, 1487.61, -1557.65, 13.30, 0.00, 0.00, 0.00);
- CreateObject(870, 1485.96, -1557.82, 13.29, 0.00, 0.00, 0.00);
- CreateObject(870, 1484.19, -1557.72, 13.29, 0.00, 0.00, 0.00);
- CreateObject(870, 1483.25, -1557.84, 13.30, 0.00, 0.00, 0.00);
- CreateObject(870, 1481.58, -1558.14, 13.26, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.50, -1577.77, 13.26, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.16, -1575.15, 13.28, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.41, -1572.86, 13.20, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.38, -1570.68, 13.29, 0.00, 0.00, 0.00);
- CreateObject(870, 1524.53, -1570.47, 13.36, 0.00, 0.00, 0.00);
- CreateObject(870, 1526.60, -1570.64, 13.43, 0.00, 0.00, 0.00);
- CreateObject(870, 1528.39, -1570.50, 13.55, 0.00, 0.00, 0.00);
- CreateObject(870, 1530.04, -1570.41, 13.36, 0.00, 0.00, 0.00);
- CreateObject(870, 1532.11, -1570.38, 13.30, 0.00, 0.00, 0.00);
- CreateObject(870, 1533.84, -1570.44, 13.31, 0.00, 0.00, 0.00);
- CreateObject(870, 1535.40, -1570.41, 13.40, 0.00, 0.00, 0.00);
- CreateObject(870, 1534.91, -1567.95, 13.38, 0.00, 0.00, 0.00);
- CreateObject(870, 1535.00, -1565.72, 13.36, 0.00, 0.00, 0.00);
- CreateObject(870, 1534.96, -1562.57, 13.36, 0.00, 0.00, 0.00);
- CreateObject(870, 1534.95, -1560.29, 13.34, 0.00, 0.00, 0.00);
- CreateObject(870, 1534.84, -1557.80, 13.33, -0.02, -0.14, -0.10);
- CreateObject(870, 1537.03, -1557.90, 13.34, 0.00, 0.00, 0.00);
- CreateObject(870, 1538.99, -1558.12, 13.48, 0.00, 0.00, 0.00);
- CreateObject(870, 1540.82, -1558.02, 13.47, 0.00, 0.00, 0.00);
- CreateObject(870, 1542.85, -1557.66, 13.31, 0.00, 0.00, 0.00);
- CreateObject(870, 1542.70, -1537.03, 13.37, 0.00, 0.00, 0.00);
- CreateObject(870, 1541.35, -1537.14, 13.33, 0.00, 0.00, 0.00);
- CreateObject(870, 1539.31, -1536.95, 13.35, 0.00, 0.00, 0.00);
- CreateObject(870, 1537.23, -1537.12, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1536.29, -1537.08, 13.41, 0.00, 0.00, 0.00);
- CreateObject(870, 1534.87, -1529.19, 13.27, 0.00, 0.00, 0.00);
- CreateObject(870, 1535.26, -1534.92, 13.28, 0.00, 0.00, 0.00);
- CreateObject(870, 1535.06, -1533.57, 13.31, 0.00, 0.00, 0.00);
- CreateObject(870, 1534.88, -1531.06, 13.32, 0.00, 0.00, 0.00);
- CreateObject(870, 1535.06, -1527.07, 13.36, 0.00, 0.00, 0.00);
- CreateObject(870, 1534.28, -1537.66, 13.31, 0.00, 0.00, 0.00);
- CreateObject(870, 1531.62, -1524.14, 13.40, 0.00, 0.00, 0.00);
- CreateObject(870, 1535.29, -1524.24, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1533.26, -1524.75, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1527.51, -1524.56, 13.32, 0.00, 0.00, 0.00);
- CreateObject(870, 1529.16, -1525.12, 13.41, 0.00, 0.00, 0.00);
- CreateObject(870, 1525.70, -1524.59, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1524.00, -1524.55, 13.37, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.11, -1524.60, 13.41, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.73, -1522.53, 13.40, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.58, -1520.64, 13.38, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.70, -1518.54, 13.46, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.79, -1516.04, 13.37, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.86, -1513.99, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.94, -1511.81, 13.37, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.72, -1509.63, 13.52, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.96, -1507.21, 13.60, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.69, -1505.58, 13.46, 0.00, 0.00, 0.00);
- CreateObject(870, 1522.57, -1503.85, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.91, -1503.95, 13.45, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.78, -1507.11, 13.43, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.98, -1509.48, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.82, -1511.43, 13.33, 0.00, 0.00, 0.00);
- CreateObject(870, 1502.02, -1513.31, 13.35, 0.00, 0.00, 0.00);
- CreateObject(870, 1502.01, -1517.15, 13.48, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.89, -1519.25, 13.49, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.83, -1521.90, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1501.91, -1524.50, 13.48, 0.00, 0.00, 0.00);
- CreateObject(870, 1499.67, -1524.54, 13.41, 0.00, 0.00, 0.00);
- CreateObject(870, 1498.17, -1524.61, 13.42, 0.00, 0.00, 0.00);
- CreateObject(870, 1495.82, -1524.71, 13.41, 0.00, 0.00, 0.00);
- CreateObject(870, 1493.85, -1524.61, 13.40, 0.00, 0.00, 0.00);
- CreateObject(870, 1492.28, -1524.43, 13.39, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.61, -1524.63, 13.38, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.37, -1527.02, 13.29, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.26, -1530.50, 13.40, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.21, -1533.00, 13.43, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.25, -1535.40, 13.32, 0.00, 0.00, 0.00);
- CreateObject(870, 1489.27, -1537.63, 13.30, 0.00, 0.00, 0.00);
- CreateObject(870, 1487.30, -1537.34, 13.33, 0.00, 0.00, 0.00);
- CreateObject(870, 1485.20, -1537.33, 13.37, 0.00, 0.00, 0.00);
- CreateObject(870, 1483.11, -1537.35, 13.31, 0.00, 0.00, 0.00);
- CreateObject(870, 1481.66, -1537.38, 13.42, 0.00, 0.00, 0.00);
- CreateObject(1290, 1481.29, -1581.54, 18.84, 0.00, 0.00, 90.00);
- CreateObject(1256, 1519.23, -1519.41, 15.03, 0.00, 0.00, 0.00);
- CreateObject(1256, 1519.21, -1515.27, 15.03, 0.00, 0.00, 0.00);
- CreateObject(1256, 1505.37, -1519.49, 15.03, 0.00, 0.00, 180.00);
- CreateObject(1256, 1505.42, -1514.88, 15.03, 0.00, 0.00, 180.00);
- CreateObject(3458, 1460.95, -1560.40, 14.47, 0.00, 0.00, 269.99);
- CreateObject(3458, 1460.96, -1520.00, 14.47, 0.00, 0.00, 269.99);
- CreateObject(1361, 1519.07, -1517.31, 15.12, 0.00, 0.00, 0.00);
- CreateObject(1361, 1505.27, -1517.24, 15.12, 0.00, 0.00, 0.00);
- CreateObject(1267, 1440.75, -1580.05, 24.16, 0.00, 0.00, 23.42);
- CreateObject(1258, 1519.25, -1513.34, 15.02, 0.00, 0.00, 90.39);
- CreateObject(1258, 1505.36, -1512.94, 15.01, 0.00, 0.00, 90.15);
- CreateObject(2942, 1512.78, -1564.43, 15.00, 0.00, 0.00, 0.00);
- CreateObject(4602, 1400.29, -1621.55, 83.58, 0.00, 0.00, 0.00);
- CreateObject(3578, 1473.92, -1582.07, 11.87, 0.00, 0.00, 0.00);
- CreateObject(3578, 1470.93, -1499.49, 11.87, 0.00, 0.00, 0.00);
- CreateObject(3578, 1473.95, -1499.49, 11.87, 0.00, 0.00, 0.00);
- CreateObject(3522, 1505.43, -1571.91, 14.37, 0.00, 0.00, 0.00);
- CreateObject(3522, 1518.99, -1572.05, 14.37, 0.00, 0.00, 180.10);
- CreateObject(7893, 1499.28, -1493.65, 13.04, 0.00, 0.00, 104.43);
- CreateObject(7904, 1444.10, -1579.13, 30.16, 0.00, 0.00, 128.31);
- CreateObject(8131, 1542.30, -1577.59, 23.19, 0.00, 0.00, 0.00);
- CreateObject(8652, 1457.74, -1567.49, 13.90, 0.00, 0.00, 90.14);
- CreateObject(8652, 1457.55, -1514.06, 13.82, 0.00, 0.00, 269.88);
- CreateObject(1649, 1492.23, -1751.33, 24.96, 0.00, 0.00, 180.00);
- CreateObject(1649, 1486.56, -1751.33, 24.96, 0.00, 0.00, 180.00);
- CreateObject(1649, 1481.18, -1751.33, 24.96, 0.00, 0.00, 180.00);
- CreateObject(1649, 1475.77, -1751.33, 24.96, 0.00, 0.00, 180.00);
- CreateObject(1649, 1470.23, -1751.33, 24.96, 0.00, 0.00, 180.00);
- CreateObject(1649, 1492.21, -1751.33, 21.69, 0.00, 0.00, 180.00);
- CreateObject(1649, 1486.57, -1751.33, 21.69, 0.00, 0.00, 180.00);
- CreateObject(1649, 1481.06, -1751.33, 21.69, 0.00, 0.00, 180.00);
- CreateObject(1649, 1475.66, -1751.33, 21.69, 0.00, 0.00, 180.00);
- CreateObject(1649, 1470.21, -1751.33, 21.69, 0.00, 0.00, 180.00);
- CreateObject(1649, 1492.20, -1751.33, 18.40, 0.00, 0.00, 180.00);
- CreateObject(1649, 1492.22, -1751.33, 15.08, 0.00, 0.00, 180.00);
- CreateObject(1649, 1470.21, -1751.33, 18.40, 0.00, 0.00, 180.00);
- CreateObject(1649, 1470.18, -1751.33, 15.11, 0.00, 0.00, 180.00);
- CreateObject(9833, 1533.54, -1510.71, 17.04, 0.00, 0.00, 0.00);
- CreateObject(11420, 1534.92, -1510.62, 12.77, 0.00, 0.00, -15.60);
- CreateObject(10183, 1604.00, 1946.00, -1622.00, 0.00, 0.00, 0.00);
- CreateObject(10183, 1604.20, -1622.62, 12.53, 0.00, 0.00, 315.49);
- CreateObject(673, 1540.91, -1639.13, 12.86, 0.00, 0.00, 0.00);
- CreateObject(673, 1541.22, -1648.49, 13.21, 0.00, 0.00, 0.00);
- CreateObject(700, 1545.83, -1661.58, 13.28, 0.00, 0.00, 0.00);
- CreateObject(673, 1546.36, -1658.27, 12.45, 0.00, 0.00, 0.00);
- CreateObject(673, 1546.82, -1664.24, 12.63, 0.00, 0.00, 0.00);
- CreateObject(673, 1546.51, -1687.09, 12.64, 0.00, 0.00, 0.00);
- CreateObject(673, 1546.08, -1693.16, 12.64, 0.00, 0.00, 0.00);
- CreateObject(673, 1541.49, -1702.85, 12.77, 0.00, 0.00, 0.00);
- CreateObject(673, 1541.32, -1713.09, 12.83, 0.00, 0.00, 0.00);
- CreateObject(732, 1541.50, -1708.75, 12.91, 0.00, 0.00, 0.00);
- CreateObject(732, 1541.52, -1643.55, 12.97, 0.00, 0.00, 0.00);
- CreateObject(700, 1545.74, -1690.14, 13.26, 0.00, 0.00, 0.00);
- CreateObject(708, 1479.75, -1665.69, 13.70, 0.00, 0.00, 277.11);
- CreateObject(648, 1500.99, -1710.19, 8.69, 0.00, 0.00, 324.17);
- CreateObject(648, 1500.76, -1697.44, 8.63, 0.00, 0.00, 324.17);
- CreateObject(648, 1500.82, -1684.80, 8.67, 0.00, 0.00, 324.17);
- CreateObject(648, 1456.06, -1709.35, 8.69, 0.00, 0.00, 144.82);
- CreateObject(648, 1455.92, -1697.88, 8.69, 0.00, 0.00, 144.82);
- CreateObject(648, 1456.06, -1683.83, 8.69, 0.00, 0.00, 144.82);
- CreateObject(869, 1457.09, -1712.05, 13.95, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.27, -1712.19, 14.05, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.57, -1712.06, 13.71, 0.00, 0.00, 0.00);
- CreateObject(869, 1456.44, -1709.28, 13.96, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.44, -1709.21, 13.94, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.47, -1709.13, 13.85, 0.00, 0.00, 0.00);
- CreateObject(869, 1456.81, -1706.18, 13.84, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.10, -1705.95, 13.80, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.42, -1705.83, 13.91, 0.00, 0.00, 0.00);
- CreateObject(869, 1457.00, -1702.89, 13.80, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.55, -1702.53, 13.76, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.47, -1702.42, 13.80, 0.00, 0.00, 0.00);
- CreateObject(869, 1456.90, -1699.34, 13.86, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.72, -1699.35, 13.82, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.47, -1699.18, 13.94, 0.00, 0.00, 0.00);
- CreateObject(869, 1457.09, -1696.04, 13.91, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.82, -1695.84, 13.78, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.54, -1695.83, 13.78, 0.00, 0.00, 0.00);
- CreateObject(869, 1457.14, -1692.76, 13.90, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.87, -1692.40, 13.74, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.46, -1692.27, 13.92, 0.00, 0.00, 0.00);
- CreateObject(869, 1456.50, -1689.80, 13.84, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.33, -1689.59, 13.81, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.32, -1689.45, 13.97, 0.00, 0.00, 0.00);
- CreateObject(869, 1456.77, -1686.75, 13.81, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.50, -1686.66, 13.79, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.43, -1685.96, 13.85, 0.00, 0.00, 0.00);
- CreateObject(869, 1457.33, -1683.87, 13.89, 0.00, 0.00, 0.00);
- CreateObject(869, 1460.70, -1684.01, 13.91, 0.00, 0.00, 0.00);
- CreateObject(869, 1463.36, -1683.77, 13.95, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.02, -1684.18, 13.89, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.81, -1684.02, 13.89, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.52, -1683.89, 14.10, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.22, -1687.19, 13.88, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.51, -1687.06, 13.96, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.63, -1687.22, 14.01, 0.00, 0.00, 0.00);
- CreateObject(869, 1499.86, -1690.33, 13.96, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.05, -1690.33, 13.90, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.57, -1690.44, 13.85, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.98, -1693.89, 13.78, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.22, -1694.06, 13.76, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.56, -1693.54, 13.90, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.01, -1697.35, 13.86, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.50, -1697.47, 13.86, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.67, -1696.91, 14.05, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.02, -1700.64, 13.90, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.46, -1700.73, 13.87, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.69, -1700.53, 13.89, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.14, -1703.62, 13.90, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.69, -1703.69, 13.95, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.60, -1703.62, 13.89, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.14, -1706.92, 14.00, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.60, -1707.07, 14.01, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.55, -1706.99, 14.05, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.16, -1710.14, 13.94, 0.00, 0.00, 0.00);
- CreateObject(869, 1496.88, -1710.22, 13.96, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.60, -1709.82, 13.96, 0.00, 0.00, 0.00);
- CreateObject(869, 1500.25, -1712.32, 13.78, 0.00, 0.00, 0.00);
- CreateObject(869, 1497.22, -1712.07, 13.90, 0.00, 0.00, 0.00);
- CreateObject(869, 1493.79, -1712.18, 13.90, 0.00, 0.00, 0.00);
- CreateObject(11548, 1559.13, -1613.43, 12.45, 0.00, 0.00, 321.69);
- CreateObject(1223, 1547.53, -1622.56, 12.46, 0.00, 0.00, 268.34);
- CreateObject(1223, 1547.53, -1633.29, 12.54, 0.00, 0.00, 89.10);
- CreateObject(1223, 1559.88, -1622.56, 12.46, 0.00, 0.00, 268.34);
- CreateObject(1223, 1559.88, -1633.29, 12.55, 0.00, 0.00, 89.10);
- CreateObject(1223, 1573.58, -1622.56, 12.54, 0.00, 0.00, 268.34);
- CreateObject(1223, 1573.58, -1633.29, 12.55, 0.00, 0.00, 89.10);
- CreateObject(1233, 1537.38, -1681.27, 13.83, 0.00, 0.00, 212.37);
- CreateObject(1251, 1544.69, -1627.27, 12.41, 0.00, 0.00, 0.00);
- CreateObject(3578, 1470.69, -1582.07, 11.87, 0.00, 0.00, 0.00);
- CreateObject(1649, 1492.19, -1751.35, 24.96, 0.00, 0.00, 360.00);
- CreateObject(1649, 1492.21, -1751.33, 21.69, 0.00, 0.00, 360.00);
- CreateObject(1649, 1492.20, -1751.33, 18.40, 0.00, 0.00, 360.00);
- CreateObject(1649, 1492.22, -1751.33, 15.32, 0.00, 0.00, 360.00);
- CreateObject(1649, 1481.18, -1751.33, 24.96, 0.00, 0.00, 360.00);
- CreateObject(1649, 1481.06, -1751.33, 21.69, 0.00, 0.00, 360.00);
- CreateObject(1649, 1486.56, -1751.33, 24.96, 0.00, 0.00, 360.00);
- CreateObject(1649, 1486.59, -1751.33, 21.69, 0.00, 0.00, 360.00);
- CreateObject(1649, 1475.00, 7700.00, -1749.00, 0.00, 0.00, 0.00);
- CreateObject(1649, 1475.00, 7700.00, -1750.00, 0.00, 0.00, 0.00);
- CreateObject(1649, 1475.00, 7700.00, -1750.31, 0.00, 0.00, 0.00);
- CreateObject(1649, 1475.00, 7700.00, -1750.88, 0.00, 0.00, 0.00);
- CreateObject(1649, 1475.77, -1751.33, 24.96, 0.00, 0.00, 360.00);
- CreateObject(1649, 1475.66, -1751.33, 21.69, 0.00, 0.00, 360.00);
- CreateObject(1649, 1470.23, -1751.33, 24.96, 0.00, 0.00, 360.00);
- CreateObject(1649, 1470.21, -1751.33, 21.69, 0.00, 0.00, 360.00);
- CreateObject(1649, 1470.21, -1751.33, 18.40, 0.00, 0.00, 360.00);
- CreateObject(1649, 1470.18, -1751.33, 15.11, 0.00, 0.00, 360.00);
- CreateObject(3437, 1486.66, -1751.48, 14.16, 0.00, 0.00, 0.00);
- CreateObject(3437, 1475.67, -1751.24, 14.15, 0.00, 0.00, 0.00);
- CreateObject(656, 1543.63, -1748.00, 12.89, 0.00, 0.00, 0.00);
- CreateObject(656, 1523.81, -1747.52, 13.04, 0.00, 0.00, 0.00);
- CreateObject(656, 1438.74, -1747.72, 13.03, 0.00, 0.00, 0.00);
- CreateObject(656, 1417.07, -1747.96, 13.11, 0.00, 0.00, 0.00);
- CreateObject(970, 1472.74, -1579.70, 13.11, 0.00, 0.00, 89.29);
- CreateObject(8843, 1475.89, -1571.47, 12.60, 0.00, 0.00, 0.00);
- CreateObject(8843, 1469.30, -1571.47, 12.61, 0.00, 0.00, 180.00);
- CreateObject(970, 1472.70, -1501.85, 13.15, 0.00, 0.00, 90.18);
- CreateObject(8843, 1475.73, -1510.26, 12.59, 0.00, 0.00, 0.00);
- CreateObject(8843, 1469.23, -1510.26, 12.59, 0.00, 0.00, 180.00);
- CreateObject(717, 1423.04, -1613.77, 12.79, 0.00, 0.00, 0.00);
- CreateObject(717, 1422.97, -1629.13, 12.76, 0.00, 0.00, 0.00);
- CreateObject(717, 1423.02, -1603.13, 12.74, 0.00, 0.00, 0.00);
- CreateObject(717, 1423.05, -1639.95, 12.72, 0.00, 0.00, 0.00);
- CreateObject(717, 1408.00, 1316.00, -1643.00, 0.00, 0.00, 0.00);
- CreateObject(717, 1392.54, -1643.86, 12.75, 0.00, 0.00, 0.00);
- CreateObject(717, 1407.97, -1643.86, 12.72, 0.00, 0.00, 0.00);
- CreateObject(717, 1381.89, -1643.86, 12.76, 0.00, 0.00, 0.00);
- CreateObject(717, 1377.75, -1613.82, 12.76, 0.00, 0.00, 0.00);
- CreateObject(717, 1377.71, -1629.38, 12.74, 0.00, 0.00, 0.00);
- CreateObject(717, 1407.99, -1598.96, 12.75, 0.00, 0.00, 0.00);
- CreateObject(717, 1392.64, -1596.76, 12.74, 0.00, 0.00, 345.13);
- CreateObject(717, 1382.00, 3633.00, -1593.00, 0.00, 0.00, 0.00);
- CreateObject(717, 1382.00, 4655.00, -1593.00, 0.00, 0.00, 0.00);
- CreateObject(717, 1382.49, -1594.26, 12.65, 0.00, 0.00, 345.10);
- CreateObject(1408, 1494.26, -1713.79, 14.14, 0.00, 0.00, 0.00);
- CreateObject(1408, 1499.45, -1713.79, 14.14, 0.00, 0.00, 0.00);
- CreateObject(1408, 1502.18, -1711.13, 14.14, 0.00, 0.00, 89.86);
- CreateObject(1408, 1502.18, -1705.66, 14.14, 0.00, 0.00, 89.86);
- CreateObject(1408, 1502.18, -1700.22, 14.12, 0.00, 0.00, 89.86);
- CreateObject(1408, 1502.18, -1694.74, 14.12, 0.00, 0.00, 89.86);
- CreateObject(1408, 1502.18, -1689.27, 14.12, 0.00, 0.00, 89.86);
- CreateObject(1408, 1502.18, -1684.84, 14.12, 0.00, 0.00, 89.86);
- CreateObject(1408, 1499.45, -1682.21, 14.12, 0.00, 0.00, 180.54);
- CreateObject(1408, 1494.64, -1682.21, 14.12, 0.00, 0.00, 180.13);
- CreateObject(1408, 1491.67, -1684.86, 14.12, 0.00, 0.00, 270.02);
- CreateObject(1408, 1491.67, -1690.34, 14.12, 0.00, 0.00, 270.02);
- CreateObject(1408, 1491.67, -1695.78, 14.12, 0.00, 0.00, 270.00);
- CreateObject(1408, 1491.67, -1701.29, 14.12, 0.00, 0.00, 270.00);
- CreateObject(1408, 1491.67, -1706.77, 14.12, 0.00, 0.00, 270.00);
- CreateObject(1408, 1491.67, -1710.79, 14.12, 0.00, 0.00, 270.00);
- CreateObject(646, 1486.61, -1749.80, 15.82, 0.00, 0.00, 0.00);
- CreateObject(646, 1475.81, -1749.81, 15.82, 0.00, 0.00, 0.00);
- CreateObject(8674, 1539.58, -1612.67, 17.37, 0.00, 0.00, 90.00);
- CreateObject(8674, 1539.58, -1607.48, 17.37, 0.00, 0.00, 90.00);
- CreateObject(8674, 1544.77, -1617.86, 17.37, 0.00, 0.00, 0.00);
- CreateObject(8674, 1544.74, -1602.30, 17.37, 0.00, 0.00, 0.00);
- CreateObject(8674, 1555.06, -1602.30, 17.37, 0.00, 0.00, 0.00);
- CreateObject(8674, 1565.36, -1602.32, 17.37, 0.00, 0.00, -0.12);
- CreateObject(8674, 1574.54, -1602.32, 17.37, 0.00, 0.00, -0.12);
- CreateObject(8674, 1584.83, -1602.32, 17.37, 0.00, 0.00, -0.12);
- CreateObject(8674, 1595.11, -1602.32, 17.37, 0.00, 0.00, -0.12);
- CreateObject(8674, 1602.82, -1602.32, 17.37, 0.00, 0.00, -0.12);
- CreateObject(8674, 1608.13, -1607.55, 17.37, 0.00, 0.00, 90.00);
- CreateObject(8674, 1608.13, -1617.80, 17.37, 0.00, 0.00, 90.00);
- CreateObject(8674, 1608.13, -1628.08, 17.37, 0.00, 0.00, 90.00);
- CreateObject(8674, 1608.13, -1632.94, 17.37, 0.00, 0.00, 90.00);
- CreateObject(8674, 1602.98, -1638.10, 17.37, 0.00, 0.00, 0.00);
- CreateObject(1308, 1549.91, -1617.87, 12.55, 0.00, 0.00, 0.00);
- CreateObject(8652, 1457.75, -1537.77, 13.82, 0.00, 0.00, 90.00);
- CreateObject(1290, 1464.84, -1582.02, 18.84, 0.00, 0.00, 90.00);
- CreateObject(1290, 1458.39, -1499.42, 19.03, 0.00, 0.00, 90.00);
- CreateObject(1290, 1482.79, -1500.18, 18.84, 0.00, 0.00, 90.00);
- CreateObject(1408, 1465.36, -1711.10, 14.13, 0.00, 0.00, 90.00);
- CreateObject(1408, 1465.36, -1705.59, 14.13, 0.00, 0.00, 90.00);
- CreateObject(1408, 1465.36, -1700.11, 14.13, 0.00, 0.00, 90.00);
- CreateObject(1408, 1465.36, -1694.62, 14.13, 0.00, 0.00, 90.00);
- CreateObject(1408, 1465.36, -1689.14, 14.13, 0.00, 0.00, 90.00);
- CreateObject(1408, 1465.36, -1685.12, 14.13, 0.00, 0.00, 90.00);
- CreateObject(1408, 1462.70, -1682.22, 14.13, 0.00, 0.00, 180.00);
- CreateObject(1408, 1457.49, -1682.22, 14.13, 0.00, 0.00, 180.00);
- CreateObject(1408, 1454.86, -1684.95, 14.13, 0.00, 0.00, 270.00);
- CreateObject(1408, 1454.86, -1690.43, 14.13, 0.00, 0.00, 270.00);
- CreateObject(1408, 1454.86, -1695.92, 14.13, 0.00, 0.00, 270.00);
- CreateObject(1408, 1454.86, -1701.41, 14.13, 0.00, 0.00, 270.00);
- CreateObject(1408, 1454.86, -1706.89, 14.13, 0.00, 0.00, 270.00);
- CreateObject(1408, 1454.86, -1710.91, 14.13, 0.00, 0.00, 270.00);
- CreateObject(1408, 1457.52, -1713.78, 14.13, 0.00, 0.00, 0.00);
- CreateObject(1408, 1462.71, -1713.78, 14.13, 0.00, 0.00, 0.00);
- CreateObject(4641, 1464.15, -1498.16, 14.27, 0.00, 0.00, 180.00);
- CreateObject(966, 1479.88, -1499.50, 12.65, 0.00, 0.00, 0.00);
- CreateObject(966, 1465.47, -1499.50, 12.65, 0.00, 0.00, 180.00);
- CreateObject(4641, 1480.75, -1583.42, 14.22, 0.00, 0.00, 0.00);
- CreateObject(966, 1479.94, -1582.04, 12.65, 0.00, 0.00, 0.00);
- CreateObject(966, 1465.44, -1582.04, 12.65, 0.00, 0.00, 180.00);
- CreateObject(968, 1465.34, -1582.05, 13.47, 0.00, 90.00, 0.00);
- CreateObject(968, 1480.02, -1582.02, 13.47, 0.00, 270.00, 0.00);
- CreateObject(968, 1479.95, -1499.49, 13.49, 0.00, 269.42, 0.00);
- CreateObject(968, 1465.40, -1499.51, 13.49, 0.00, 90.00, 0.00);
- CreateObject(984, 1488.91, -1582.26, 13.60, 0.00, 0.00, 90.00);
- CreateObject(983, 1495.33, -1582.26, 13.65, 0.00, 0.00, 90.00);
- CreateObject(1232, 1498.48, -1581.42, 15.57, 0.00, 0.00, 0.00);
- CreateObject(983, 1461.22, -1582.28, 13.65, 0.00, 0.00, 90.00);
- CreateObject(983, 1462.03, -1499.25, 13.64, 0.00, 0.00, 90.00);
- CreateObject(984, 1486.58, -1499.23, 13.59, 0.00, 0.00, 90.00);
- CreateObject(983, 1495.57, -1499.23, 13.66, 0.00, 0.00, 90.00);
- CreateObject(984, 1531.93, -1499.21, 13.61, 0.00, 0.00, 90.00);
- CreateObject(983, 1539.94, -1499.21, 13.67, 0.00, 0.00, 90.00);
- CreateObject(983, 1543.91, -1499.21, 13.67, 0.00, 0.00, 90.00);
- CreateObject(984, 1547.09, -1505.62, 13.62, 0.00, 0.00, 0.00);
- CreateObject(984, 1547.09, -1518.47, 13.62, 0.00, 0.00, 0.00);
- CreateObject(983, 1547.09, -1526.47, 13.66, 0.00, 0.00, 0.00);
- CreateObject(983, 1547.09, -1530.86, 13.66, 0.00, 0.00, 0.00);
- CreateObject(984, 1547.11, -1567.20, 13.60, 0.00, 0.00, 0.00);
- CreateObject(984, 1547.11, -1575.88, 13.60, 0.00, 0.00, 0.00);
- CreateObject(984, 1540.67, -1582.27, 13.60, 0.00, 0.00, 90.00);
- CreateObject(984, 1531.95, -1582.27, 13.60, 0.00, 0.00, 90.00);
- CreateObject(1232, 1525.78, -1581.44, 15.61, 0.00, 0.00, 0.00);
- CreateObject(1232, 1498.44, -1500.13, 15.59, 0.00, 0.00, 0.00);
- CreateObject(1232, 1525.71, -1500.12, 15.60, 0.00, 0.00, 0.00);
- CreateObject(1232, 1546.22, -1533.79, 15.65, 0.00, 0.00, 0.00);
- CreateObject(1232, 1546.19, -1561.05, 15.63, 0.00, 0.00, 0.00);
- //Die PN's:
- CreateObject(971, 1025.3000488281, -1029.3000488281, 31.799999237061, 0, 0, 0);
- CreateObject(971, 1042.4000244141, -1025.9000244141, 31.299999237061, 0, 0, 0);
- CreateObject(3550, 488.5, -1734.5, 12, 0, 0, 82);
- CreateObject(3550, 720, -462.79998779297, 15.699999809265, 0, 0, 269.99996948242);
- CreateObject(3550, -1934, 239.10000610352, 35.700000762939, 0, 0, 269.99996948242);
- CreateObject(3550, -1936.8000488281, 239.10000610352, 35.5, 0, 0, 269.99996948242);
- CreateObject(3550, -2715.8999023438, 218.89999389648, 5.6999998092651, 0, 0, 0);
- CreateObject(3550, -2715.8999023438, 215.19999694824, 5.6999998092651, 0, 0, 0);
- CreateObject(3550, -2426.3999023438, 1028.4000244141, 51.799999237061, 0, 358, 89.999969482422);
- CreateObject(3550, -2423, 1028.4000244141, 51.799999237061, 0, 0, 90);
- CreateObject(3550, -99.599998474121, 1111.0999755859, 20.10000038147, 0, 359.5, 269.99996948242);
- CreateObject(3550, -101.19999694824, 1111.1999511719, 19.700000762939, 0, 0, 269.99996948242);
- CreateObject(971, 1968.5999755859, 2162.6000976563, 12.60000038147, 0, 0, 269.99996948242);
- return 1;
- }
- public OnGameModeExit()
- {
- SaveAll();
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
- SpawnPlayer(playerid);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- /* if(!strfind(GetName(playerid), "_", true) || !strfind(GetName(playerid), ".", true))
- {
- SendClientMessage(playerid, COLOR_RED, "[Server] Ungültiger Name.");
- SendClientMessage(playerid, COLOR_RED, "Bitte kommen mit einem Vornamen_Nachnamen (beachte den Unterstrich) wieder!");
- Kick(playerid);
- }*/
- printf("%s betritt den Server ...", GetName(playerid));
- if(mysql_CheckAccountWCF(playerid) == 0)
- {
- new str[250];
- printf("WCF Account nicht gefunden!");
- SendClientMessage(playerid, COLOR_BLUE,"["COLOR_YELLOW_HTML"Database"COLOR_BLUE_HTML": Suche Account ...]");
- SendClientMessage(playerid, COLOR_BLUE,"[Database: Account "COLOR_RED_HTML"nicht erkannt"COLOR_BLUE_HTML"!]");
- 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));
- ShowPlayerDialog(playerid, DIALOG_KEINACC, DIALOG_STYLE_MSGBOX, "Kein Account gefunden", str, "Bis gleich", "");
- Kick(playerid);
- }
- else if(mysql_CheckAccountWCF(playerid) == 1 && mysql_CheckAccountSAMP(playerid) == 1)
- {
- printf("Alles vorhanden ...");
- SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Suche Account ...]");
- SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Account wurde"COLOR_GREEN_HTML" gefunden"COLOR_BLUE_HTML"!]");
- 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", "");
- }
- else if(mysql_CheckAccountWCF(playerid) == 1 && mysql_CheckAccountSAMP(playerid) == 0)
- {
- printf("Nur Forum gefunden, InGame nicht!");
- SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Suche Account ...]");
- SendClientMessage(playerid, COLOR_BLUE,"["COLOR_WHITE_HTML"Datenbank"COLOR_BLUE_HTML": Account wurde"COLOR_GREEN_HTML" gefunden"COLOR_BLUE_HTML"!]");
- ShowPlayerDialog(playerid, DIALOG_FORUMLOGIN, DIALOG_STYLE_INPUT, "Einloggen in den Forenaccount", "Tippen Sie hier das zu Ihrem Forenaccount passende Passwort ein!", "Absenden", "");
- }
- //LSPD
- RemoveBuildingForPlayer(playerid, 4026, 1497.7969, -1543.7109, 17.5547, 0.25);
- RemoveBuildingForPlayer(playerid, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
- RemoveBuildingForPlayer(playerid, 4218, 1497.7031, -1546.6172, 43.9922, 0.25);
- RemoveBuildingForPlayer(playerid, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
- RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
- RemoveBuildingForPlayer(playerid, 1266, 1565.4141, -1722.3125, 25.0391, 0.25);
- RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
- RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
- RemoveBuildingForPlayer(playerid, 713, 1496.8672, -1707.8203, 13.4063, 0.25);
- RemoveBuildingForPlayer(playerid, 673, 1415.3125, -1748.5625, 12.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 700, 1438.0313, -1747.9375, 13.4453, 0.25);
- RemoveBuildingForPlayer(playerid, 1258, 1445.0078, -1692.2344, 13.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 712, 1445.8125, -1650.0234, 22.2578, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1379.2422, -1622.4531, 12.8672, 0.25);
- RemoveBuildingForPlayer(playerid, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
- RemoveBuildingForPlayer(playerid, 1294, 1392.6563, -1594.7188, 16.9063, 0.25);
- RemoveBuildingForPlayer(playerid, 673, 1457.7266, -1710.0625, 12.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1461.6563, -1707.6875, 11.8359, 0.25);
- RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1701.5703, 13.7266, 0.25);
- RemoveBuildingForPlayer(playerid, 673, 1457.5547, -1697.2891, 12.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1461.1250, -1687.5625, 11.8359, 0.25);
- RemoveBuildingForPlayer(playerid, 700, 1463.0625, -1690.6484, 13.7266, 0.25);
- RemoveBuildingForPlayer(playerid, 641, 1458.6172, -1684.1328, 11.1016, 0.25);
- RemoveBuildingForPlayer(playerid, 712, 1449.8516, -1655.9375, 22.2578, 0.25);
- RemoveBuildingForPlayer(playerid, 700, 1494.2109, -1694.4375, 13.7266, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1496.9766, -1686.8516, 11.8359, 0.25);
- RemoveBuildingForPlayer(playerid, 641, 1494.1406, -1689.2344, 11.1016, 0.25);
- RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
- RemoveBuildingForPlayer(playerid, 1229, 1498.0547, -1598.0938, 14.1094, 0.25);
- RemoveBuildingForPlayer(playerid, 4016, 1497.7969, -1543.7109, 17.5547, 0.25);
- RemoveBuildingForPlayer(playerid, 673, 1498.9609, -1684.6094, 12.3984, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1503.1875, -1621.1250, 11.8359, 0.25);
- RemoveBuildingForPlayer(playerid, 712, 1508.4453, -1668.7422, 22.2578, 0.25);
- RemoveBuildingForPlayer(playerid, 1283, 1516.1641, -1591.6563, 15.6250, 0.25);
- RemoveBuildingForPlayer(playerid, 673, 1522.1641, -1748.5703, 13.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 1260, 1565.4141, -1722.3125, 25.0391, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1541.4531, -1709.6406, 13.0469, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1689.9844, 13.0469, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1661.0313, 13.0469, 0.25);
- RemoveBuildingForPlayer(playerid, 620, 1541.4531, -1642.0313, 13.0469, 0.25);
- RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
- RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25);
- RemoveBuildingForPlayer(playerid, 1440, 1148.6797, -1385.1875, 13.2656, 0.25);
- RemoveBuildingForPlayer(playerid, 11372, -2076.4375, -107.9297, 36.9688, 0.25);
- RemoveBuildingForPlayer(playerid, 11014, -2076.4375, -107.9297, 36.9688, 0.25);
- //Bergwerk
- RemoveBuildingForPlayer(playerid, 18555, -1813.8047, -1615.5625, 29.8516, 0.25);
- RemoveBuildingForPlayer(playerid, 18556, -1907.6172, -1666.6797, 29.8516, 0.25);
- RemoveBuildingForPlayer(playerid, 18557, -1857.2969, -1617.9766, 26.8125, 0.25);
- RemoveBuildingForPlayer(playerid, 18560, -1874.3438, -1680.9531, 25.4375, 0.25);
- RemoveBuildingForPlayer(playerid, 18255, -1939.9141, -1731.4844, 24.9453, 0.25);
- RemoveBuildingForPlayer(playerid, 18251, -1907.6172, -1666.6797, 29.8516, 0.25);
- RemoveBuildingForPlayer(playerid, 18252, -1888.9766, -1633.2734, 24.4844, 0.25);
- RemoveBuildingForPlayer(playerid, 18253, -1888.8047, -1604.1328, 23.3750, 0.25);
- RemoveBuildingForPlayer(playerid, 18247, -1874.3438, -1680.9531, 25.4375, 0.25);
- RemoveBuildingForPlayer(playerid, 18248, -1852.2578, -1676.2188, 28.6172, 0.25);
- RemoveBuildingForPlayer(playerid, 18246, -1857.8359, -1573.3750, 23.3125, 0.25);
- RemoveBuildingForPlayer(playerid, 18250, -1857.2969, -1617.9766, 26.8125, 0.25);
- RemoveBuildingForPlayer(playerid, 18254, -1813.8047, -1615.5625, 29.8516, 0.25);
- RemoveBuildingForPlayer(playerid, 18608, -1818.4531, -1613.0391, 32.7891, 0.25);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new Float:x,
- Float:y,
- Float:z,
- query[300];
- GetPlayerPos(playerid, x, y, z);
- Spieler[playerid][LastX] = x;
- Spieler[playerid][LastY] = y;
- Spieler[playerid][LastZ] = z;
- Spieler[playerid][Online] = 0;
- SavePlayer(playerid);
- format(query, sizeof(query), "UPDATE wcf1_avatar SET avatarName = '%d' WHERE userID = '%d'", GetPlayerSkin(playerid), Spieler[playerid][uID]);
- mysql_query(query);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(GetPVarInt(playerid, "FirstSpawn") == 1)
- {
- SetPlayerPos(playerid, Spieler[playerid][LastX], Spieler[playerid][LastY], Spieler[playerid][LastZ]);
- SetPVarInt(playerid, "FirstSpawn", 0);
- }
- SetPlayerSkin(playerid, Spieler[playerid][Skin]);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
- Motor[vehicleid] = 0;
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new str[128],
- Nation[100];
- switch(Spieler[playerid][National])
- {
- case 1:
- Nation = "Englisch";
- case 2:
- Nation = "Französisch";
- case 3:
- Nation = "Amerikanisch";
- case 4:
- Nation = "Russisch";
- case 5:
- Nation = "Deutsch";
- case 6:
- Nation = "Holländisch";
- case 7:
- Nation = "Brasilianisch";
- case 8:
- Nation = "Schweizerisch";
- case 9:
- Nation = "Kanadisch";
- case 10:
- Nation = "Kubanisch";
- case 11:
- Nation = "Japanisch";
- case 12:
- Nation = "Mexikanisch";
- }
- format(str, sizeof(str), "%s [%s]: %s", GetName(playerid), Nation, text);
- SendClientMessageToAll(COLOR_WHITE, str);
- return 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new str1[128];
- format(str1, sizeof(str1), "[Server] Befehl '"COLOR_YELLOW_HTML"%s"COLOR_RED_HTML"' wurde nicht gefunden!", cmdtext);
- return SendClientMessage(playerid, COLOR_RED, str1);
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(AutohausAuto[vehicleid][carAutohaus] != 0)
- {
- if(Spieler[playerid][Fraktion] == AutohausAuto[vehicleid][carAutohaus])
- {
- if(Motor[vehicleid] == 0)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben
- SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben, nur dass der Motor nun eingeschaltet wird.
- Motor[vehicleid] = 1;
- }
- else
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
- Motor[vehicleid] = 0;
- }
- }
- else
- {
- new str[300];
- 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]);
- ShowPlayerDialog(playerid, DIALOG_AUTOHAUSAUTO, DIALOG_STYLE_MSGBOX, "Autohaus", str, "Kaufen/Probefahrt", "Nicht kaufen");
- }
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- #define HOLDING(%0) ((newkeys & (%0)) == (%0))
- #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define RELEASED(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
- if(PRESSED(KEY_FIRE))
- {
- new Vehicle = GetPlayerVehicleID(playerid);
- if(Spieler[playerid][Fraktion] == FVehicle[Vehicle][Fraktion] && GetPlayerVehicleSeat(playerid) == 0 || Spieler[playerid][Admin] > 5)
- {
- if(Motor[Vehicle] == 0)
- {
- GetVehicleParamsEx(Vehicle,engine,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben
- SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); // Selbe Prozedur wie oben, nur dass der Motor nun eingeschaltet wird.
- Motor[Vehicle] = 1;
- }
- else
- {
- GetVehicleParamsEx(Vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
- Motor[Vehicle] = 0;
- }
- }
- }
- if(newkeys & 16)
- {
- new TankID = GetNearTankeRadius(playerid, 5.0),
- InduID = GetNearIndustrieRadius(playerid, 5.0),
- AutoID = GetNearAutohausRadius(playerid, 5.0),
- str1[150],
- str2[300];
- if(TankID > 0 && InduID < 1 && AutoID < 1)
- {
- format(str1, sizeof(str1), "Informationen zum Business: "COLOR_YELLOW_HTML" %s", Tankstelle[TankID][tanName]);
- 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]);
- ShowPlayerDialog(playerid, DIALOG_TANKENINFO, DIALOG_STYLE_LIST, str1, str2, "Waehlen", "");
- }
- else if(InduID > 0 && AutoID < 1 && TankID < 1)
- {
- format(str1, sizeof(str1), "Information zum Konzern: "COLOR_YELLOW_HTML" %s", Industrie[InduID][indName]);
- 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]);
- ShowPlayerDialog(playerid, DIALOG_INDUINFO, DIALOG_STYLE_LIST, str1, str2, "Waehlen", "");
- }
- else if(AutoID > 0 && InduID < 1 && TankID < 1)
- {
- format(str1, sizeof(str1), "Information zum Autohaus: "COLOR_YELLOW_HTML" %s", Autohaus[AutoID][autName]);
- 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]);
- ShowPlayerDialog(playerid, DIALOG_AUTOHINFO, DIALOG_STYLE_LIST, str1, str2, "Waehlen", "");
- }
- }
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case DIALOG_REGISTER:
- {
- if(!response)
- 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", "");
- if(strlen(inputtext) < 4)
- 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", "");
- else
- {
- Spieler[playerid][Online] = 1;
- CreateAccount(playerid, inputtext);
- GetPlayerName(playerid, Spieler[playerid][Name], MAX_PLAYER_NAME);
- ShowPlayerDialog(playerid, DIALOG_RSTEP2, DIALOG_STYLE_LIST, "Geschlecht Ihres Spielcharakter", "Männlich (Male)\nWeiblich (Female)", "Absenden", "");
- return 1;
- }
- }
- case DIALOG_FORUMLOGIN:
- {
- if(!response)
- return ShowPlayerDialog(playerid, DIALOG_FORUMLOGIN, DIALOG_STYLE_INPUT, "Einloggen in den Forenaccount", "Tippen Sie hier das zu Ihrem Forenaccount passende Passwort ein!", "Absenden", "");
- if(strlen(inputtext) < 6)
- return ShowPlayerDialog(playerid, DIALOG_FORUMLOGIN, DIALOG_STYLE_INPUT, "Einloggen in den Forenaccount", "Tippen Sie hier das zu Ihrem Forenaccount passende Passwort ein!", "Absenden", "");
- else
- {
- new Var = CheckForenaccount(playerid, inputtext);
- printf("Var: %d!", Var);
- if(Var >= 1)
- 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", "");
- else
- return Kick(playerid);
- }
- }
- case DIALOG_LOGIN:
- {
- if(!response)
- 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", "");
- if(strlen(inputtext) == 0)
- 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", "");
- else
- {
- if(!strcmp(inputtext, mysql_ReturnPasswort(GetName(playerid)), true))
- {
- SetPVarInt(playerid,"Eingeloggt",1);
- Spieler[playerid][Online] = 1;
- LoadPlayer(playerid);
- GetPlayerName(playerid, Spieler[playerid][Name], MAX_PLAYER_NAME);
- }
- else
- {
- 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", "");
- }
- }
- }
- case DIALOG_RSTEP2:
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIALOG_RSTEP2, DIALOG_STYLE_LIST, "Geschlecht Ihres Spielcharakter", "Männlich (Male)\nWeiblich (Female)", "Absenden", "");
- }
- else
- {
- if(listitem == 0)
- {
- Spieler[playerid][Sex] = 1;
- }
- if(listitem == 1)
- {
- Spieler[playerid][Sex] = 2;
- }
- mysql_SetInt("Accounts", "Sex", Spieler[playerid][Sex], "Name", Spieler[playerid][Name]);
- mysql_SetInt("wcf1_user_option_value", "userOption8", Spieler[playerid][Sex], "ID", Spieler[playerid][uID]);
- ShowPlayerDialog(playerid, DIALOG_RSTEP3, DIALOG_STYLE_LIST, "Herkunft Ihres Spielcharakters", "Las Venturas\nSan Fierro\nLos Santos", "Absenden", "");
- }
- }
- case DIALOG_RSTEP3:
- {
- if(!response)
- ShowPlayerDialog(playerid, DIALOG_RSTEP3, DIALOG_STYLE_LIST, "Herkunft Ihres Spielcharakters", "Las Venturas\nSan Fierro\nLos Santos", "Absenden", "");
- else
- {
- if(listitem == 0)
- Spieler[playerid][Homestate] = 1;
- if(listitem == 1)
- Spieler[playerid][Homestate] = 2;
- if(listitem == 2)
- Spieler[playerid][Homestate] = 3;
- printf("%s' Homestate: %d", GetName(playerid), listitem);
- mysql_SetInt("Accounts", "Homestate", Spieler[playerid][Homestate], "Name", Spieler[playerid][Name]);
- 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", "");
- }
- }
- case DIALOG_RSTEP4:
- {
- if(!response)
- 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", "");
- else
- {
- if(listitem == 0)//Engländerin
- Spieler[playerid][National] = 1;
- if(listitem == 1)//Französisch
- Spieler[playerid][National] = 2;
- if(listitem == 2)//Amerika
- Spieler[playerid][National] = 3;
- if(listitem == 3)//Russe
- Spieler[playerid][National] = 4;
- if(listitem == 4)
- Spieler[playerid][National] = 5;
- if(listitem == 5)
- Spieler[playerid][National] = 6;
- if(listitem == 6)
- Spieler[playerid][National] = 7;
- if(listitem == 7)
- Spieler[playerid][National] = 8;
- if(listitem == 8)
- Spieler[playerid][National] = 9;
- if(listitem == 9)
- Spieler[playerid][National] = 10;
- if(listitem == 10)
- Spieler[playerid][National] = 11;
- if(listitem == 11)
- Spieler[playerid][National] = 12;
- mysql_SetInt("Accounts", "Nationality", Spieler[playerid][National], "Name", Spieler[playerid][Name]);
- return SpawnPlayer(playerid);
- }
- }
- case DIALOG_TANKEN:
- {
- if(!response)
- ShowPlayerDialog(playerid, DIALOG_TANKEN, DIALOG_STYLE_INPUT, ""COLOR_RED_HTML"Ungültige Eingabe!\n"COLOR_WHITE_HTML"Tankstelle", "Gewünschte Tankmenge:", "Tanken", "");
- if(strlen(inputtext) > 0 && strval(inputtext) < 101)
- {
- new TankID = GetNearTanke(playerid);
- if(Tankstelle[TankID][Vorrat] >= strval(inputtext))
- {
- new Vehicle = GetPlayerVehicleID(playerid);
- if(Motor[Vehicle] == 0)
- {
- new TimerZeit = 2000 * strval(inputtext),
- Zahl = strval(inputtext);
- printf("TimerZeit: %d", TimerZeit);
- TogglePlayerControllable(playerid, 0);
- printf("Spieler wird gefreezed!");
- SetTimerEx("TankTime", TimerZeit, false, "udd", playerid, Zahl, TankID);
- printf("Timer gestartet!");
- SetPVarInt(playerid, "ZuZahlenTanke", TankID);
- printf("ZuZahlenTanke gesetzt!");
- SetPVarInt(playerid, "ZuZahlenHere", Tankstelle[TankID][LiterPreis] * strval(inputtext));
- printf("ZuZahlenHere gesetzt!");
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "Das Fahrzeug muss aus sein!");
- }
- }
- else
- {
- 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", "");
- }
- }
- }
- case DIALOG_TANKENINFO:
- {
- new TankID = GetNearTanke(playerid);
- if(!response)
- SendClientMessage(playerid, COLOR_RED, "[Server] Tankmenü abgebrochen!");
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) >= Tankstelle[TankID][BuyPrice])
- {
- if(strlen(Tankstelle[TankID][Besitzer]) < 1)
- {
- format(Tankstelle[TankID][Besitzer], MAX_PLAYER_NAME, "%s", GetName(playerid));
- UpdateTankstellen(TankID);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "[Server] Sie haben leider nicht genug Geld dabei!");
- }
- }
- if(listitem == 1)
- {
- new str1[100],
- str2[300];
- format(str1, sizeof(str1), "Tankstelleninformation: "COLOR_YELLOW_HTML"%s", Tankstelle[TankID][tanName]);
- if(strlen(Tankstelle[TankID][Besitzer]) < 1)
- {
- 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],
- Tankstelle[TankID][BuyPrice],
- Tankstelle[TankID][Vorrat],
- Tankstelle[TankID][LiterPreis],
- Tankstelle[TankID][ProdPreis]);
- }
- else
- {
- 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],
- Tankstelle[TankID][Besitzer],
- Tankstelle[TankID][BuyPrice],
- Tankstelle[TankID][Vorrat],
- Tankstelle[TankID][LiterPreis],
- Tankstelle[TankID][ProdPreis]);
- }
- ShowPlayerDialog(playerid, DIALOG_TANKINFO1, DIALOG_STYLE_MSGBOX, str1, str2, "Schliessen", "");
- }
- if(listitem == 2)
- {
- new str[128],
- Literzahl = 4500 - Tankstelle[TankID][Vorrat],
- str2[128];
- printf("Literanzahl: %d!", Literzahl);
- 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);
- SendClientMessage(playerid, COLOR_WHITE, str);
- SetPVarInt(playerid, "Belieferungstanke", TankID);
- 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]);
- SendClientMessage(playerid, COLOR_WHITE, str2);
- }
- }
- }
- case DIALOG_BELIEFPREIS:
- {
- new TankID = GetNearTanke(playerid);
- if(response == 1)
- {
- new str2[128],
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- 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]);
- SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str2, x, y, z);
- SendClientMessage(playerid, COLOR_WHITE, "Verkäufer: Hier die Plakette, kommen Sie dann wenn Sie fertig sind wieder her ...");
- SetPVarInt(playerid, "PlaketteForTanke", TankID);
- TogglePlayerControllable(playerid, 1);
- }
- if(response == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "Verkäufer: Vielleicht ja ein anderes Mal...");
- TogglePlayerControllable(playerid, 1);
- }
- }
- case DIALOG_AUTOHAUSAUTO:
- {
- new Car = GetPlayerVehicleID(playerid),
- CarModel = GetVehicleModel(Car),
- str1[128],
- str2[128];
- 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]);
- SendFraktionsMessage(AutohausAuto[Car][carAutohaus], COLOR_LIGHTBLUE, str1);
- format(str2, sizeof(str2), "["COLOR_YELLOW_HTML"%s"COLOR_GREEN_HTML"] Wir kümmern uns schnellstmöglich um Sie!", Autohaus[Car][autName]);
- SendClientMessage(playerid, COLOR_GREEN, str2);
- }
- case DIALOG_INDUINFO:
- {
- new str2[400],
- Indu = GetNearIndustrieRadius(playerid, 5.0);
- if(listitem == 0)
- {
- SetPVarInt(playerid, "PreisToPay", Industrie[Indu][indKaufpreis]);
- ShowPlayerDialog(playerid, DIALOG_ZAHLMETHOD, DIALOG_STYLE_LIST, "Zahlmethode", "Bankkonto\nBar", "Bestätigen", "");
- }
- if(listitem == 1)
- 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",
- Industrie[Indu][indName],
- Industrie[Indu][indBesitzer],
- Industrie[Indu][indMetall],
- Industrie[Indu][indMetallMax],
- Industrie[Indu][indOel],
- Industrie[Indu][indOelMax],
- Industrie[Indu][indWasser],
- Industrie[Indu][indWasserMax],
- Industrie[Indu][indKaufpreis]);
- ShowPlayerDialog(playerid, DIALOG_INDUINFOS, DIALOG_STYLE_MSGBOX, "Informationen", str2, "Ok", "");
- }
- case DIALOG_AUTOHINFO:
- {
- new str2[300],
- AutoH = GetNearAutohausRadius(playerid, 5.0);
- if(listitem == 0)
- {
- SetPVarInt(playerid, "PreisToPay", Autohaus[AutoH][BuyPrice]);
- ShowPlayerDialog(playerid, DIALOG_ZAHLMETHOD, DIALOG_STYLE_LIST, "Zahlmethode", "Bankkonto\nBar", "Bestätigen", "");
- }
- if(listitem == 1)
- 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",
- Autohaus[AutoH][autName],
- Autohaus[AutoH][Besitzer],
- Autohaus[AutoH][Cars],
- Autohaus[AutoH][MaxCars],
- Autohaus[AutoH][BuyPrice]);
- ShowPlayerDialog(playerid, DIALOG_AUTOHINFOS, DIALOG_STYLE_MSGBOX, "Informationen", str2, "Ok", "");
- }
- case DIALOG_ZAHLMETHOD:
- {
- new str[128],
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(listitem == 0)
- {
- if(Spieler[playerid][Bankguthaben] >= GetPVarInt(playerid, "PreisToPay"))
- {
- format(str, sizeof(str), "** "COLOR_YELLOW_HTML"%s "COLOR_PURPLE_HTML"zückt seine Kreditkarte "COLOR_YELLOW_HTML".", GetName(playerid));
- SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str, x, y, z);
- ShowPlayerDialog(playerid, DIALOG_METHODBANK, DIALOG_STYLE_INPUT, "Kreditkarteninformationen", "Geben Sie bitte hier Ihre Kontonummer ein!", "Bestaetigen", "");
- }
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) >= GetPVarInt(playerid, "PreisToPay"))
- {
- format(str, sizeof(str), "** "COLOR_YELLOW_HTML"%s "COLOR_PURPLE_HTML"zückt sein Portemonait"COLOR_YELLOW_HTML".", GetName(playerid));
- SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str, x, y, z);
- GivePlayerMoney(playerid, -GetPVarInt(playerid, "PreisToPay"));
- }
- }
- }
- case DIALOG_METHODBANK:
- {
- new str[200];
- if(!response)
- ShowPlayerDialog(playerid, DIALOG_METHODBANK, DIALOG_STYLE_INPUT, "Kreditkarteninformationen", "Geben Sie bitte hier die Kontonummer ein!", "Bestaetigen", "");
- if(strval(inputtext) == Spieler[playerid][Banknummer])
- {
- format(str, sizeof(str), "PIN für die Kontonummer %d", inputtext);
- ShowPlayerDialog(playerid, DIALOG_METHODBANK2, DIALOG_STYLE_PASSWORD, "Kreditkarteninformationen", str, "Bestaetigen", "");
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "Verkäufer: Tut uns leid, diese Kontonummer stimmt nicht mit Ihrer Identität überein!");
- }
- }
- }
- return 1;
- }
- public TankTime(playerid, Zahl, TankID)
- {
- printf("Timer erreicht!");
- Tankstelle[TankID][Vorrat] -= Zahl;
- new query[300];
- format(query, sizeof(query), "UPDATE Tankstellen SET Litervorrat = '%d' WHERE ID = '%d'", Tankstelle[TankID][Vorrat], TankID);
- mysql_query(query);
- UpdateTankstellen(TankID);
- printf("Tankstelle wurde updatet!");
- TogglePlayerControllable(playerid, 1);
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_GREEN, "Tanken erfolgreich, gehe nun bitte zur Kasse.");
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public PlaketteOne(playerid, TankID)
- {
- new str2[128];
- 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]);
- SendClientMessage(playerid, COLOR_WHITE, str2);
- SetTimerEx("PlaketteTwo", 4000, false, "ud", playerid, TankID);
- }
- public PlaketteTwo(playerid, TankID)
- {
- new str3[128];
- format(str3, sizeof(str3), "Preis bei "COLOR_YELLOW_HTML"$%d"COLOR_WHITE_HTML" pro Liter, einverstanden?", Tankstelle[TankID][ProdPreis]);
- ShowPlayerDialog(playerid, DIALOG_BELIEFPREIS, DIALOG_STYLE_MSGBOX, "Belieferungsfrage", str3, "Einverstanden", "Nicht einv.");
- }
- public WasserNehmen(playerid)
- {
- new Float:xxx,
- Float:yyy,
- Float:zzz,
- Carxxx = GetPlayerVehicleID(playerid);
- GetVehiclePos(Carxxx, xxx, yyy, zzz);
- #pragma unused xxx
- #pragma unused yyy
- if(GetPVarInt(playerid, "WerfenOrNehmen") == 1)
- {
- if(IsPlayerInArea(playerid, -1553.157, -2347.253, -1483.09, -2207.118))
- {
- if(zzz > -0.0810 && zzz < 2.0818)
- {
- new CarID = GetPlayerVehicleID(playerid),
- str[128];
- WasserVorrat[CarID] += 150;
- 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]);
- SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
- SetPVarInt(playerid, "WerfenOrNehmen", 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht beladen werden, Sie waren zu hoch/tief!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht beladen werden, Sie waren zu weit weg!");
- }
- }
- if(GetPVarInt(playerid, "WerfenOrNehmen") == 2)
- {
- if(IsPlayerInArea(playerid, -1856.782, -1704.97, -1810.071, -1669.936))
- {
- if(zzz > 40.1974 && zzz < 55.000)
- {
- new CarID = GetPlayerVehicleID(playerid),
- str[128];
- WasserVorrat[CarID] = 0;
- 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]);
- SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
- SetPVarInt(playerid, "WerfenOrNehmen", 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht abgeladen werden, Sie waren zu hoch/tief!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_RED_HTML"] Kanister konnten nicht abgeladen werden, Sie waren zu weit weg!");
- }
- }
- }
- ocmd:ranks(playerid, params[])
- {
- #pragma unused params
- if(Spieler[playerid][Leader] >= 1)
- {
- new dialogFormat[400];
- for(new j; j < MAX_FACTION_RANKS; j++)
- {
- 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]));
- }
- ShowPlayerDialog(playerid, DIALOG_FRANKS, DIALOG_STYLE_LIST, "Fraktionsränke", dialogFormat, "Ok", "");
- }
- return 1;
- }
- ocmd:createindustrie(playerid, params[])
- {
- new Nameqqq[50],
- IndustrieArt,
- Kaufpreis;
- if(sscanf(params, "sdd", Nameqqq, IndustrieArt, Kaufpreis))
- 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]");
- if(Spieler[playerid][Admin] > 2)
- {
- new query[300],
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- 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);
- mysql_query(query);
- SendClientMessage(playerid, COLOR_GREEN, "Industrie erstellt!");
- LoadIndustrien();
- }
- return 1;
- }
- ocmd:wasser(playerid, params[])
- {
- new NehmenWerfen[50],
- Carxxx = GetPlayerVehicleID(playerid);
- if(sscanf(params, "s", NehmenWerfen))
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/wasser [nehmen/werfen]");
- if(GetVehicleModel(Carxxx) != 417 || !IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Ungültiges Fahrzeug!");
- if(Spieler[playerid][Fraktion] == 18)
- {
- new Float:xxx,
- Float:yyy,
- Float:zzz;
- GetVehiclePos(Carxxx, xxx, yyy, zzz);
- #pragma unused xxx
- #pragma unused yyy
- if(!strcmp(NehmenWerfen, "nehmen", true))
- {
- if(IsPlayerInArea(playerid, -1553.157, -2347.253, -1483.09, -2207.118))
- {
- if(zzz > -0.0810 && zzz < 2.0818)
- {
- new str[128],
- str2[128];
- SetTimerEx("WasserNehmen", 15000, false, "u", playerid);
- format(str, sizeof(str), "< "COLOR_YELLOW_HTML"%s "COLOR_LIGHTBLUE_HTML"an "COLOR_YELLOW_HTML"Bergwerkmitarbeiter"COLOR_LIGHTBLUE_HTML" > Belade Helikopter ...", GetName(playerid));
- SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
- format(str2, sizeof(str2), "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_GREEN_HTML"] Belade die Kanister, bleiben Sie 15 Sekunden über dem Wasser!", FVehicle[Carxxx][Kennzeichen]);
- SendClientMessage(playerid, COLOR_GREEN, str2);
- SetPVarInt(playerid, "WerfenOrNehmen", 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie fliegen zu hoch oder zu tief!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie sind nicht in Nähe des Wassers!");
- }
- }
- else if(!strcmp(NehmenWerfen, "werfen", true))
- {
- if(IsPlayerInArea(playerid, -1856.782, -1704.97, -1810.071, -1669.936))
- {
- if(zzz > 40.1974 && zzz < 55.000)
- {
- new str[128],
- str2[128];
- SetTimerEx("WasserNehmen", 15000, false, "u", playerid);
- format(str, sizeof(str), "< "COLOR_YELLOW_HTML"%s "COLOR_LIGHTBLUE_HTML"an "COLOR_YELLOW_HTML"Bergwerkmitarbeiter"COLOR_LIGHTBLUE_HTML" > Werfe Wasser ab...", GetName(playerid));
- SendFraktionsMessage(18, COLOR_LIGHTBLUE, str);
- format(str2, sizeof(str2), "["COLOR_YELLOW_HTML"Helikoptercomputer"COLOR_GREEN_HTML"] Belade die Kanister, bleiben Sie 15 Sekunden über der Verarbeitungsmaschine!", FVehicle[Carxxx][Kennzeichen]);
- SendClientMessage(playerid, COLOR_GREEN, str2);
- SetPVarInt(playerid, "WerfenOrNehmen", 2);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie fliegen zu hoch oder zu tief!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"Sie sind nicht in Nähe der Verarbeitungsmaschine!");
- }
- }
- }
- return 1;
- }
- ocmd:createtanke(playerid, params[])
- {
- new TankenName[50],
- Kaufpreis;
- if(sscanf(params, "sd", TankenName, Kaufpreis))
- return SendClientMessage(playerid, COLOR_RED, "/createtanke [Name] [Kaufpreis]");
- if(Spieler[playerid][Admin] > 2)
- {
- new Float:xx,
- Float:yy,
- Float:zz,
- query[400];
- GetPlayerPos(playerid, xx, yy, zz);
- format(query, sizeof(query), "INSERT INTO Tankstellen (Bezeichnung, Kaufpreis, fillX, fillY, fillZ) VALUES ('%s', '%d', '%f', '%f', '%f')", TankenName, Kaufpreis, xx, yy, zz);
- mysql_query(query);
- LoadTankstellen();
- }
- return 1;
- }
- ocmd:createautohaus(playerid, params[])
- {
- new Namexx[50],
- BuyPricex;
- if(sscanf(params, "sd", Namexx, BuyPricex))
- return SendClientMessage(playerid, COLOR_RED, "/createautohaus [Name] [Kaufpreis]");
- if(Spieler[playerid][Admin] > 2)
- {
- new Float:x,
- Float:y,
- Float:z,
- query[400];
- GetPlayerPos(playerid, x, y, z);
- format(query, sizeof(query), "INSERT INTO Autohauser (Name, x, y, z, BuyPrice) VALUES ('%s', '%f', '%f', '%f', '%d')", Namexx, x, y, z, BuyPricex);
- mysql_query(query);
- LoadAutohauser();
- }
- return 1;
- }
- ocmd:plakette(playerid, params[])
- {
- #pragma unused params
- new TankID = GetNearTanke(playerid);
- if(IsPlayerInRangeOfPoint(playerid, 4.0, Tankstelle[TankID][buyX], Tankstelle[TankID][buyY], Tankstelle[TankID][buyZ]))
- {
- new str1[128];
- 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));
- SendClientMessage(playerid, COLOR_WHITE, str1);
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("PlaketteOne", 4000, false, "ud", playerid, TankID);
- }
- return 1;
- }
- ocmd:zahlen(playerid, params[])
- {
- #pragma unused params
- new TankID = GetNearTanke(playerid);
- if(TankID == GetPVarInt(playerid, "ZuZahlenTanke"))
- {
- new GeldToPay = GetPVarInt(playerid, "ZuZahlenHere"),
- str1[128],
- Float:x,
- Float:y,
- Float:z;
- GivePlayerMoney(playerid, -GeldToPay);
- GetPlayerPos(playerid, x, y, z);
- format(str1, sizeof(str1), "** "COLOR_YELLOW_HTML"%s"COLOR_PURPLE_HTML" übergibt dem Verkäufer $%d.", GetName(playerid), GeldToPay);
- SendRadiusMessage(10.0, COLOR_LIGHTBLUE, str1, x, y, z);
- }
- return 1;
- }
- ocmd:setfrak(playerid, params[])
- {
- new pID;
- if(sscanf(params, "u", pID))
- return SendClientMessage(playerid, COLOR_RED, "DU NUSS!");
- else
- {
- Spieler[pID][Fraktion] = Spieler[playerid][Fraktion];
- }
- return 1;
- }
- ocmd:tanken(playerid, params[])
- {
- #pragma unused params
- new str[100];
- for(new id; id < MAX_TANKEN; id++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, Tankstelle[id][tanX], Tankstelle[id][tanY], Tankstelle[id][tanZ]) && IsPlayerInAnyVehicle(playerid))
- {
- format(str, sizeof(str), "Tankstelle %s, Besitzer: %s", Tankstelle[id][tanName], Tankstelle[id][Besitzer]);
- ShowPlayerDialog(playerid, DIALOG_TANKEN, DIALOG_STYLE_INPUT, str, "Gewünschte Tankmenge:", "Tanken", "");
- }
- }
- return 1;
- }
- ocmd:createtankepay(playerid, params[])
- {
- #pragma unused params
- if(Spieler[playerid][Admin] >= 5)
- {
- new TankID = GetNearTanke(playerid),
- Query[300],
- Float:x,
- Float:y,
- Float:z;
- GetPlayerPos(playerid, x, y, z);
- format(Query, sizeof(Query), "UPDATE Tankstellen SET payX = '%f', payY = '%f', payZ = '%f' WHERE ID = '%d'", x, y, z, TankID);
- mysql_query(Query);
- SendClientMessage(playerid, COLOR_GREEN, "["COLOR_WHITE_HTML"Tankstellensystem"COLOR_GREEN_HTML"] Tankstelle erstellt!");
- LoadTankstellen();
- }
- return 1;
- }
- ocmd:saveuser(playerid, params[])
- {
- #pragma unused params
- if(Spieler[playerid][Admin] >= 1)
- {
- new str1[128];
- 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));
- SendClientMessageToAll(COLOR_WHITE, str1);
- SaveAll();
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Sie sind kein Administratorrank 6!");
- }
- return 1;
- }
- ocmd:members(playerid, params[])
- {
- if(Spieler[playerid][Fraktion] < 1)
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: Sie sind in keiner Fraktion!");
- else
- {
- new str[1500];
- for(new x; x < MAX_PLAYERS; x++)
- {
- if(Spieler[x][Fraktion] == Spieler[playerid][Fraktion])
- {
- format(str, sizeof(str), ""COLOR_YELLOW_HTML"%s "COLOR_BLUE_HTML"[Rank: %d]"COLOR_WHITE_HTML"\n", GetName(x), Spieler[x][FraktionRank]);
- }
- ShowPlayerDialog(playerid, DIALOG_MEMBERS, DIALOG_STYLE_LIST, "Fraktionsmitglieder", str, "Ok", "");
- }
- }
- return 1;
- }
- ocmd:admins(playerid, params[])
- {
- new ListOrText;
- if(sscanf(params, "d", ListOrText))
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/admins [1 (Dialog) / 2 (Text)]");
- if(ListOrText > 2 || ListOrText < 1)
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/admins [1 (Dialog) / 2 (Text)]");
- if(ListOrText == 1)
- {
- new str[300];
- for(new j; j < MAX_PLAYERS; j++)
- {
- if(Spieler[j][Admin] > 0)
- {
- if(IsPlayerConnected(j))
- {
- format(str, sizeof(str), "%s\n"COLOR_RED_HTML"%s"COLOR_WHITE_HTML": "COLOR_YELLOW_HTML"%s", str, GetPlayerAdmin(j), GetName(j));
- }
- else
- {
- format(str, sizeof(str), ""COLOR_RED_HTML"Kein Teammitglied online, tut uns leid!");
- }
- }
- }
- ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_LIST, "Administratoren", str, "Ok", "");
- }
- else if(ListOrText == 2)
- {
- new str2[128];
- SendClientMessage(playerid, COLOR_BLUE, "["COLOR_YELLOW_HTML"<>"COLOR_WHITE_HTML"Administratoren"COLOR_YELLOW_HTML"<>"COLOR_BLUE_HTML"]");
- for(new x; x < MAX_PLAYERS; x++)
- {
- if(Spieler[x][Admin] > 0)
- {
- if(IsPlayerConnected(x))
- {
- format(str2, sizeof(str2), ""COLOR_RED_HTML"%s"COLOR_WHITE_HTML": "COLOR_YELLOW_HTML"%s", GetPlayerAdmin(x), GetName(x));
- SendClientMessage(playerid, COLOR_WHITE, str2);
- }
- else
- {
- format(str2, sizeof(str2), ""COLOR_RED_HTML"Kein Teammitglied online, tut uns leid!");
- }
- }
- }
- }
- return 1;
- }
- ocmd:factioncarsave(playerid, params[])
- {
- new FactionID,
- Kennzeichenx[25];
- if(sscanf(params, "ds", FactionID, Kennzeichenx))
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/factioncarsave [FraktionsID]");
- if(!IsPlayerInAnyVehicle(playerid))
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: Sie sind in keinem Fahrzeug!");
- if(Spieler[playerid][Admin] >= 5)
- {
- new Float:x,
- Float:y,
- Float:z,
- Float:a,
- Color1x,
- Color2x,
- Model,
- query[500],
- Vehicle;
- Vehicle = GetPlayerVehicleID(playerid);
- Model = GetVehicleModel(Vehicle);
- GetVehiclePos(Vehicle, x, y, z);
- GetVehicleZAngle(Vehicle, a);
- GetVehicleColor(Vehicle, Color1x, Color2x);
- 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);
- mysql_query(query);
- RemovePlayerFromVehicle(Vehicle);
- DestroyAllVehicles();
- LoadFraktionsautos();
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "[Server] ["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Sie sind kein Administratorrank 6!");
- }
- return 1;
- }
- ocmd:veh(playerid, params[])
- {
- new vID,
- col1,
- col2,
- Float:x,
- Float:y,
- Float:z;
- if(sscanf(params, "ddd", vID, col1, col2))
- return SendClientMessage(playerid, COLOR_RED, "["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Falsche Benutzung: "COLOR_WHITE_HTML"/veh [VehicleID] [FarbID 1] [FarbID 2]");
- if(Spieler[playerid][Admin] >= 2)
- {
- new vehicle;
- GetPlayerPos(playerid, x, y, z);
- vehicle = CreateVehicle(vID, x, y, z, 0, col1, col2, 60);
- PutPlayerInVehicle(playerid, vehicle, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "[Server] ["COLOR_YELLOW_HTML"Server"COLOR_RED_HTML"] Sie sind kein Administratorrank 6!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement