SHARE
TWEET

Untitled

a guest May 2nd, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnGameModeInit()
  2. {
  3.     SendRconCommand("language German / Deutsch");
  4.     SendRconCommand("weburl Coming Soon");
  5.     SendRconCommand("maxnpc 16");
  6.     SetGameModeText("German Reallife");
  7.    
  8.     //Sontiger Kram hier drunter
  9.     for(new a=0;a<MAX_ADMINVEHS;a++)adminmobile[a] = -1;
  10.     randomseed[0]=gettime();
  11.     Serverstats();
  12.     SetTimer("NagelBand_Timer", NAGELBAND_TIMER_INTERVALL, 1);
  13.     SetTimer("plant", 60000, 1);
  14.     for(new i = 0; i < sizeof(aArrestPickups); i++)
  15.     {
  16.         new iPickup = CreatePickup(1239, 24, aArrestPickups[i][0], aArrestPickups[i][1], aArrestPickups[i][2]);
  17.         aArrestPickupElements[iPickup] = true;
  18.     }
  19.     SetTimer("ChangeHostname", 5000, true);
  20.  
  21.     //////////////////////////////////////////////////////////////////////////////////////////////////
  22.         for(new i=0;i<sizeof(InfoTafeln);i++)
  23.         {
  24.             new obj = CreateDynamicObject(5811,InfoTafeln[i][itafelx],InfoTafeln[i][itafely],InfoTafeln[i][itafelz],InfoTafeln[i][itafelxrot],InfoTafeln[i][itafelyrot],InfoTafeln[i][itafelzrot]);
  25.             SetDynamicObjectMaterialText(obj,InfoTafeln[i][itafel1tmindex],InfoTafeln[i][itafel1text],InfoTafeln[i][itafel1tmsize],InfoTafeln[i][itafel1tfonts],InfoTafeln[i][itafel1tfontsize],InfoTafeln[i][itafel1tbold],InfoTafeln[i][itafel1tfontcolor],InfoTafeln[i][itafel1tbackcolor],InfoTafeln[i][itafel1taligment]);
  26.             SetDynamicObjectMaterialText(obj,InfoTafeln[i][itafel2tmindex],InfoTafeln[i][itafel2text],InfoTafeln[i][itafel2tmsize],InfoTafeln[i][itafel2tfonts],InfoTafeln[i][itafel2tfontsize],InfoTafeln[i][itafel2tbold],InfoTafeln[i][itafel2tfontcolor],InfoTafeln[i][itafel2tbackcolor],InfoTafeln[i][itafel2taligment]);
  27.             SetDynamicObjectMaterialText(obj,InfoTafeln[i][itafel3tmindex],InfoTafeln[i][itafel3text],InfoTafeln[i][itafel3tmsize],InfoTafeln[i][itafel3tfonts],InfoTafeln[i][itafel3tfontsize],InfoTafeln[i][itafel3tbold],InfoTafeln[i][itafel3tfontcolor],InfoTafeln[i][itafel3tbackcolor],InfoTafeln[i][itafel3taligment]);
  28.             SetDynamicObjectMaterialText(obj,InfoTafeln[i][itafel4tmindex],InfoTafeln[i][itafel4text],InfoTafeln[i][itafel4tmsize],InfoTafeln[i][itafel4tfonts],InfoTafeln[i][itafel4tfontsize],InfoTafeln[i][itafel4tbold],InfoTafeln[i][itafel4tfontcolor],InfoTafeln[i][itafel4tbackcolor],InfoTafeln[i][itafel4taligment]);
  29.             SetDynamicObjectMaterialText(obj,InfoTafeln[i][itafel5tmindex],InfoTafeln[i][itafel5text],InfoTafeln[i][itafel5tmsize],InfoTafeln[i][itafel5tfonts],InfoTafeln[i][itafel5tfontsize],InfoTafeln[i][itafel5tbold],InfoTafeln[i][itafel5tfontcolor],InfoTafeln[i][itafel5tbackcolor],InfoTafeln[i][itafel5taligment]);
  30.         }
  31.         //////////////////////////////////////////////////////////////////////////////////////////////////
  32.  
  33.  
  34.     statstafel = CreateObject(5811,925.87305, -1619.42017, 15.92950,   0.00000, 0.00000, 62.00000);
  35.    
  36.     Website = TextDrawCreate(2.222229, 430.577667, "Coming Soon");
  37.     TextDrawLetterSize(Website, 0.449999, 1.600000);
  38.     TextDrawAlignment(Website, 1);
  39.     TextDrawColor(Website, -2147483393);
  40.     TextDrawSetShadow(Website, 0);
  41.     TextDrawSetOutline(Website, 1);
  42.     TextDrawBackgroundColor(Website, 51);
  43.     TextDrawFont(Website, 1);
  44.     TextDrawSetProportional(Website, 1);
  45.    
  46.     printf("SERVER: Der Server wurde erfolgreich gestartet");
  47.     ForAllPlayers(i){
  48.         if(IsPlayerConnected(i)){
  49.             new sendername1[MAX_PLAYER_NAME],string[258];
  50.             GetPlayerName(i,sendername1,sizeof(sendername1));
  51.             format(string, sizeof(string), "UPDATE `users` SET `Status`='0' WHERE `Name`='%s'",sendername1);
  52.             self_mysql_queryEx(string);
  53.         }
  54.     }
  55.     new string[MAX_PLAYER_NAME],
  56.         string1[MAX_PLAYER_NAME],
  57.         string2[256];
  58.  
  59.     #if defined MySQL
  60.         MySQLConnection = mysql_connect(MySQL_Host, MySQL_User, MySQL_DB, MySQL_Passwort);
  61.         printf("SERVER: Versucht die Verbindung zur Datenbank aufzubauen");
  62.         mysql_debug(0);
  63.     #endif
  64.  
  65.     for(new veh = 0; veh < MAX_VEHICLES; veh++)
  66.     {
  67.         Gas[veh] = GasMax;
  68.         VehicleObject[veh] = -1;
  69.     }
  70.     for(new i = 0; i < sizeof(AdminObjects); i++)
  71.     {
  72.         AdminObjects[i][AObjectID] = -1;
  73.     }
  74.     new checkMS = GetTickCount();
  75.     new TotalTime = checkMS;
  76.    
  77.     LoadBiz();
  78.     printf("OnGamemodeInt: LoadBiz (%dms)", GetTickCount() - checkMS);
  79.     checkMS = GetTickCount();
  80.  
  81.     LoadSBiz();
  82.     printf("OnGamemodeInt: LoadSBiz (%dms)", GetTickCount() - checkMS);
  83.     checkMS = GetTickCount();
  84.    
  85.     LoadTankenBiz();
  86.     printf("OnGamemodeInt: LoadTankenBiz (%dms)", GetTickCount() - checkMS);
  87.     checkMS = GetTickCount();
  88.    
  89.     LoadStuff();
  90.     printf("OnGamemodeInt: LoadStuff (%dms)", GetTickCount() - checkMS);
  91.     checkMS = GetTickCount();
  92.    
  93.     LoadKassenInfo();
  94.     printf("OnGamemodeInt: LoadKassenInfo (%dms)", GetTickCount() - checkMS);
  95.     checkMS = GetTickCount();
  96.    
  97.     LoadGangfightZones();
  98.     printf("OnGamemodeInt: LoadGangfightZones (%dms)", GetTickCount() - checkMS);
  99.     checkMS = GetTickCount();
  100.    
  101.     LoadGangWarInfos();
  102.     printf("OnGamemodeInt: LoadGangWarInfos (%dms)", GetTickCount() - checkMS);
  103.     checkMS = GetTickCount();
  104.    
  105.     LoadGangBNDInfos();
  106.     printf("OnGamemodeInt: LoadGangBNDInfos (%dms)", GetTickCount() - checkMS);
  107.     checkMS = GetTickCount();
  108.  
  109.     loadHauser();
  110.     printf("OnGamemodeInt: LoadHauser (%dms)", GetTickCount() - checkMS);
  111.     checkMS = GetTickCount();
  112.  
  113.     loadDynamicPickups();
  114.     printf("OnGamemodeInt: loadDynamicPickups (%dms)", GetTickCount() - checkMS);
  115.     checkMS = GetTickCount();
  116.    
  117.     loadDynamicMapIcons();
  118.     printf("OnGamemodeInt: loadDynamicMapIcons (%dms)", GetTickCount() - checkMS);
  119.     checkMS = GetTickCount();
  120.    
  121.     loadDynamicTextLabels();
  122.     printf("OnGamemodeInt: loadDynamicTextLabels (%dms)", GetTickCount() - checkMS);
  123.     checkMS = GetTickCount();
  124.    
  125.     loadGangWeapons();
  126.     printf("OnGamemodeInt: loadGangWeapons (%dms)", GetTickCount() - checkMS);
  127.     checkMS = GetTickCount();
  128.    
  129.     loadAmmuWeapons();
  130.     printf("OnGamemodeInt: loadAmmuWeapons (%dms)", GetTickCount() - checkMS);
  131.     checkMS = GetTickCount();
  132.    
  133.     loadHausWeapons();
  134.     printf("OnGamemodeInt: loadHausWeapons (%dms)", GetTickCount() - checkMS);
  135.     checkMS = GetTickCount();
  136.  
  137.     LoadFactionVehicles();
  138.     printf("OnGamemodeInt: LoadFactionVehicles (%dms)", GetTickCount() - checkMS);
  139.  
  140.     printf("Totaltime taken to load MySQL Stuffs: %dsm", GetTickCount() - TotalTime);
  141.  
  142.  
  143. //NO-DM Zonen
  144.     for(new i = 0; i < sizeof(NODMZonenInfo); i++)
  145.     {
  146.         NODMZonenInfo[i][NODMZoneID] = GangZoneCreate(NODMZonenInfo[i][NODMMinX],NODMZonenInfo[i][NODMMinY],NODMZonenInfo[i][NODMMaxX],NODMZonenInfo[i][NODMMaxY]);
  147.     }
  148.     for(new i = 0; i < sizeof(VersteckSystemInfo); i++)
  149.     {
  150.         Create3DTextLabel("Du befindest dich in einem Versteck.\nDetective können dich hier nicht aufsuchen!\nWenn du in den Wantedstern fährst kriegst du einen 60 Sekunden schutz!",COLOR_WHITE,VersteckSystemInfo[i][AchseX],VersteckSystemInfo[i][AchseY],VersteckSystemInfo[i][AchseZ],5.0,0,0);
  151.         CreatePickup(1247, 23,VersteckSystemInfo[i][AchseX],VersteckSystemInfo[i][AchseY],VersteckSystemInfo[i][AchseZ]);
  152.     }
  153. //NO-DM Zonen Ende
  154.     for(new i = 0; i < sizeof(GangfightSystemInfo); i++)
  155.     {
  156.         GangfightSystemInfo[i][GFGangZoneID] = GangZoneCreate(GangfightSystemInfo[i][MinX],GangfightSystemInfo[i][MinY],GangfightSystemInfo[i][MaxX],GangfightSystemInfo[i][MaxY]);
  157.         CreatePickup(1314, 23,GangfightSystemInfo[i][PickupX],GangfightSystemInfo[i][PickupY],GangfightSystemInfo[i][PickupZ]);
  158.         CTFDraw[i] = TextDrawCreate(551.000000, 56.000000, "~w~CTF Time: ~g~5:00");
  159.         TextDrawBackgroundColor(CTFDraw[i], 255);
  160.         TextDrawFont(CTFDraw[i], 1);
  161.         TextDrawLetterSize(CTFDraw[i], 0.210000, 1.000000);
  162.         TextDrawColor(CTFDraw[i], -1);
  163.         TextDrawSetOutline(CTFDraw[i], 1);
  164.         TextDrawSetProportional(CTFDraw[i], 1);
  165.     }
  166.     for(new i = 0; i < MAX_PLAYERS; i++){
  167.         NeuesTacho0[i] = TextDrawCreate(592.857116, 360.753326, "usebox");
  168.         TextDrawLetterSize(NeuesTacho0[i], 0.000000, 5.798889);
  169.         TextDrawTextSize(NeuesTacho0[i], 485.238098, 0.000000);
  170.         TextDrawAlignment(NeuesTacho0[i], 1);
  171.         TextDrawColor(NeuesTacho0[i], 0);
  172.         TextDrawUseBox(NeuesTacho0[i], true);
  173.         TextDrawBoxColor(NeuesTacho0[i], 102);
  174.         TextDrawSetShadow(NeuesTacho0[i], 0);
  175.         TextDrawSetOutline(NeuesTacho0[i], 0);
  176.         TextDrawFont(NeuesTacho0[i], 0);
  177.  
  178.         NeuesTacho1[i] = TextDrawCreate(597.428588, 358.619995, "usebox");
  179.         TextDrawLetterSize(NeuesTacho1[i], 0.000000, 6.320370);
  180.         TextDrawTextSize(NeuesTacho1[i], 483.333312, 0.000000);
  181.         TextDrawAlignment(NeuesTacho1[i], 1);
  182.         TextDrawColor(NeuesTacho1[i], 0);
  183.         TextDrawUseBox(NeuesTacho1[i], true);
  184.         TextDrawBoxColor(NeuesTacho1[i], 102);
  185.         TextDrawSetShadow(NeuesTacho1[i], 0);
  186.         TextDrawSetOutline(NeuesTacho1[i], 0);
  187.         TextDrawFont(NeuesTacho1[i], 0);
  188.  
  189.         NeuesTacho2[i] = TextDrawCreate(488.761749, 360.959991, "Fahrzeug:~n~KmH:~n~Tank:~n~Verbrauch:~n~Zustand:~n~Kilometer:");
  190.         TextDrawLetterSize(NeuesTacho2[i], 0.235142, 0.934400);
  191.         TextDrawAlignment(NeuesTacho2[i], 1);
  192.         TextDrawColor(NeuesTacho2[i], -1);
  193.         TextDrawSetShadow(NeuesTacho2[i], 0);
  194.         TextDrawSetOutline(NeuesTacho2[i], 1);
  195.         TextDrawBackgroundColor(NeuesTacho2[i], 51);
  196.         TextDrawFont(NeuesTacho2[i], 1);
  197.         TextDrawSetProportional(NeuesTacho2[i], 1);
  198.  
  199.         AntiAFK[i] = TextDrawCreate(310.000000, 110.000000, "~r~AFK-System~n~~n~~w~Du stehst im Verdacht, AFK zu sein. Wenn du~n~nicht AFK bist, gib ~g~/notafk 1337~w~ ein.~n~~y~Du hast 60 Sekunden Zeit.");
  200.         TextDrawAlignment(AntiAFK[i], 2);
  201.         TextDrawBackgroundColor(AntiAFK[i], 255);
  202.         TextDrawFont(AntiAFK[i], 1);
  203.         TextDrawLetterSize(AntiAFK[i], 0.400000, 1.000000);
  204.         TextDrawColor(AntiAFK[i], -1);
  205.         TextDrawSetOutline(AntiAFK[i], 1);
  206.         TextDrawSetProportional(AntiAFK[i], 1);
  207.         TextDrawUseBox(AntiAFK[i], 1);
  208.         TextDrawBoxColor(AntiAFK[i], 171);
  209.         TextDrawTextSize(AntiAFK[i], 63.000000, 319.000000);
  210.        
  211.         CPrison[i] = TextDrawCreate(2.000000, 300.000000, "~n~");
  212.         TextDrawBackgroundColor(CPrison[i], 255);
  213.         TextDrawFont(CPrison[i], 1);
  214.         TextDrawLetterSize(CPrison[i], 0.300000, 1.100000);
  215.         TextDrawColor(CPrison[i], -1);
  216.         TextDrawSetOutline(CPrison[i], 0);
  217.         TextDrawSetProportional(CPrison[i], 1);
  218.         TextDrawSetShadow(CPrison[i], 1);
  219.         TextDrawUseBox(CPrison[i], 1);
  220.         TextDrawBoxColor(CPrison[i], 0x0000004B);
  221.         TextDrawTextSize(CPrison[i], 150.000000, 0.000000);
  222.        
  223.         LoginScreenText[i] = TextDrawCreate(400.000000, 400.000000, "~n~");
  224.         TextDrawBackgroundColor(LoginScreenText[i], 255);
  225.         TextDrawFont(LoginScreenText[i], 1);
  226.         TextDrawLetterSize(LoginScreenText[i],0.250000, 1.000000);
  227.         TextDrawColor(LoginScreenText[i], -1);
  228.         TextDrawSetOutline(LoginScreenText[i], 0);
  229.         TextDrawSetProportional(LoginScreenText[i], 1);
  230.         TextDrawSetShadow(LoginScreenText[i], 1);
  231.         TextDrawUseBox(LoginScreenText[i], 1);
  232.         TextDrawBoxColor(LoginScreenText[i], 0x0000004B);
  233.         TextDrawTextSize(LoginScreenText[i],700.000000, 0.000000);
  234.     }
  235.  
  236.     TeamDMDraw = TextDrawCreate(2.000000, 280.000000, "~b~Blau: ~w~0~n~~g~Grun: ~w~0");
  237.     TextDrawBackgroundColor(TeamDMDraw, 0x0000004B);
  238.     TextDrawFont(TeamDMDraw, 1);
  239.     TextDrawLetterSize(TeamDMDraw, 0.460000, 1.300000);
  240.     TextDrawColor(TeamDMDraw, -1);
  241.     TextDrawSetOutline(TeamDMDraw, 0);
  242.     TextDrawSetProportional(TeamDMDraw, 1);
  243.     TextDrawSetShadow(TeamDMDraw, 1);
  244.     TextDrawUseBox(TeamDMDraw, 1);
  245.     TextDrawBoxColor(TeamDMDraw, 0x0000004B);
  246.     TextDrawTextSize(TeamDMDraw, 68.000000, 0.000000);
  247.  
  248.     UhrzeitStundeMinute = TextDrawCreate(545.777587, 14.933329, "00:00:00");
  249.     TextDrawLetterSize(UhrzeitStundeMinute, 0.345999, 2.172443);
  250.     TextDrawAlignment(UhrzeitStundeMinute, 1);
  251.     TextDrawColor(UhrzeitStundeMinute, -1);
  252.     TextDrawSetShadow(UhrzeitStundeMinute, 0);
  253.     TextDrawSetOutline(UhrzeitStundeMinute, 1);
  254.     TextDrawBackgroundColor(UhrzeitStundeMinute, 51);
  255.     TextDrawFont(UhrzeitStundeMinute, 1);
  256.     TextDrawSetProportional(UhrzeitStundeMinute, 1);
  257.  
  258.     DatumTagMonat = TextDrawCreate(553.333435, 30.862234, "00:00:0000");
  259.     TextDrawLetterSize(DatumTagMonat, 0.197999, 1.480532);
  260.     TextDrawAlignment(DatumTagMonat, 1);
  261.     TextDrawColor(DatumTagMonat, -5963521);
  262.     TextDrawSetShadow(DatumTagMonat, 0);
  263.     TextDrawSetOutline(DatumTagMonat, 1);
  264.     TextDrawBackgroundColor(DatumTagMonat, 51);
  265.     TextDrawFont(DatumTagMonat, 1);
  266.     TextDrawSetProportional(DatumTagMonat, 1);
  267.    
  268.     TextAnimation = TextDrawCreate(610.0, 400.0,
  269.     "~r~~k~~PED_SPRINT~ ~w~um die Animation zu stoppen");
  270.     TextDrawUseBox(TextAnimation, 0);
  271.     TextDrawFont(TextAnimation, 2);
  272.     TextDrawSetShadow(TextAnimation,0);
  273.     TextDrawSetOutline(TextAnimation,1);
  274.     TextDrawBackgroundColor(TextAnimation,0x000000FF);
  275.     TextDrawColor(TextAnimation,0xFFFFFFFF);
  276.     TextDrawAlignment(TextAnimation,3);
  277.  
  278.     NODMZoneTextdraw = TextDrawCreate(500.000000,430.000000,"NO-DM Zone");
  279.     TextDrawAlignment(NODMZoneTextdraw,0);
  280.     TextDrawBackgroundColor(NODMZoneTextdraw,0xff0000ff);
  281.     TextDrawFont(NODMZoneTextdraw,2);
  282.     TextDrawLetterSize(NODMZoneTextdraw,0.499999,1.500000);
  283.     TextDrawColor(NODMZoneTextdraw,0xffffffff);
  284.     TextDrawSetOutline(NODMZoneTextdraw,1);
  285.     TextDrawSetProportional(NODMZoneTextdraw,1);
  286.  
  287.     TicketsTextdraw = TextDrawCreate(500.000000, 131.000000, "");
  288.     TextDrawBackgroundColor(TicketsTextdraw, 0x0000004B);
  289.     TextDrawFont(TicketsTextdraw, 1);
  290.     TextDrawLetterSize(TicketsTextdraw, 0.200000, 0.900000);
  291.     TextDrawColor(TicketsTextdraw, -1);
  292.     TextDrawSetOutline(TicketsTextdraw, 0);
  293.     TextDrawSetProportional(TicketsTextdraw, 1);
  294.     TextDrawSetShadow(TicketsTextdraw, 1);
  295.     TextDrawUseBox(TicketsTextdraw, 1);
  296.     TextDrawBoxColor(TicketsTextdraw, 0x0000004B);
  297.     TextDrawTextSize(TicketsTextdraw, 645.000000, 145.000000);
  298.  
  299.     SpawnKill = TextDrawCreate(505.000000, 100.000000, "Anti-Spawnkill");
  300.     TextDrawBackgroundColor(SpawnKill, 0x0000004B);
  301.     TextDrawFont(SpawnKill, 1);
  302.     TextDrawLetterSize(SpawnKill, 0.400000, 1.050000);
  303.     TextDrawColor(SpawnKill, -65281);
  304.     TextDrawSetOutline(SpawnKill, 1);
  305.     TextDrawSetProportional(SpawnKill, 1);
  306.  
  307.     MenuSkinauswahl = CreateMenu("Skinauswahl", 3, 20.0, 200.0, 160.0, 0.0);
  308.     AddMenuItem(MenuSkinauswahl, 0, "Weiter");
  309.     AddMenuItem(MenuSkinauswahl, 0, "Zuruck");
  310.     AddMenuItem(MenuSkinauswahl, 0, "OK");
  311.  
  312.     //Bot's
  313.     SetTimer("Bot1", 100, 0);
  314.  
  315.     //Bot's Ende
  316.     AntiDeAMX();
  317.     News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
  318.     format(string, sizeof(string), "Nothing");
  319.     strmid(News[hAdd1], string, 0, strlen(string), 255);
  320.     strmid(News[hAdd2], string, 0, strlen(string), 255);
  321.     strmid(News[hAdd3], string, 0, strlen(string), 255);
  322.     strmid(News[hAdd4], string, 0, strlen(string), 255);
  323.     strmid(News[hAdd5], string, 0, strlen(string), 255);
  324.     format(string1, sizeof(string1), "Niemand");
  325.     strmid(News[hContact1], string1, 0, strlen(string1), 255);
  326.     strmid(News[hContact2], string1, 0, strlen(string1), 255);
  327.     strmid(News[hContact3], string1, 0, strlen(string1), 255);
  328.     strmid(News[hContact4], string1, 0, strlen(string1), 255);
  329.     strmid(News[hContact5], string1, 0, strlen(string1), 255);
  330.     PlayerHaul[1][pCapasity] = 150;
  331.     PlayerHaul[2][pCapasity] = 150;
  332.     PlayerHaul[3][pCapasity] = 150;
  333.     PlayerHaul[4][pCapasity] = 150;
  334.     PlayerHaul[5][pCapasity] = 75;
  335.     PlayerHaul[6][pCapasity] = 75;
  336.     PlayerHaul[7][pCapasity] = 75;
  337.     //SetPDistance(40);
  338.     SetNameTagDrawDistance(30.0);
  339.     EnableStuntBonusForAll(0);
  340.     AllowInteriorWeapons(1);
  341.     ShowPlayerMarkers(400);
  342.     DisableInteriorEnterExits();
  343.     ManualVehicleEngineAndLights();
  344.  
  345.     printf("Beginne Autos zu spawnen");
  346.  
  347.     TruckerTruck[0]=CreateVehicle(515,24.2961,-287,3.5,0,1,1,300); // Truck Hinten
  348.     TruckerTruck[1]=CreateVehicle(515,30.4813,-287,3.5,0,1,1,300); // Truck Hinten
  349.     TruckerTruck[2]=CreateVehicle(515,36.7924,-287,3.5,0,1,1,300); // Truck Hinten
  350.     TruckerTruck[3]=CreateVehicle(515,42.7454,-287,3.5,0,1,1,300); // Truck Hinten
  351.     TruckerTruck[4]=CreateVehicle(515,49.3022,-287,3.5,0,1,1,300); // Truck Hinten
  352.     TruckerTruck[5]=CreateVehicle(515,55.1208,-287,3.5,0,1,1,300); // Truck Hinten
  353.     TruckerTruck[6]=CreateVehicle(515,62.0000,-287,3.5,0,1,1,300); // Truck Hinten
  354.     TruckerTruck[7]=CreateVehicle(515,68.0024,-287,3.5,0,1,1,300); // Truck Hinten
  355.     TruckerTruck[8]=CreateVehicle(515,24.2961,-273,3.5,0,1,1,300); // Truck Vorne
  356.     TruckerTruck[9]=CreateVehicle(515,30.4813,-273,3.5,0,1,1,300); // Truck Vorne
  357.     TruckerTruck[10]=CreateVehicle(515,36.7924,-273,3.5,0,1,1,300); // Truck Vorne
  358.     TruckerTruck[11]=CreateVehicle(515,42.7454,-273,3.5,0,1,1,300); // Truck Vorne
  359.     TruckerTruck[12]=CreateVehicle(515,49.3022,-273,3.5,0,1,1,300); // Truck Vorne
  360.     TruckerTruck[13]=CreateVehicle(515,55.1208,-273,3.5,0,1,1,300); // Truck Vorne
  361.     TruckerTruck[14]=CreateVehicle(515,62.0000,-273,3.5,0,1,1,300); // Truck Vorne
  362.     TruckerTruck[15]=CreateVehicle(515,68.0024,-273,3.5,0,1,1,300); // Truck Vorne
  363.  
  364.     Bergwerksarbeiter[0]=CreateVehicle(486,856.9203,837.9792,14.8790,19.9390,1,1,300); // berg
  365.     Bergwerksarbeiter[1]=CreateVehicle(486,846.8995,834.9359,14.7389,19.6222,1,1,300); // berg
  366.     Bergwerksarbeiter[2]=CreateVehicle(486,838.4904,831.0336,14.0537,22.0042,1,1,300); // berg
  367.     Bergwerksarbeiter[3]=CreateVehicle(486,827.8140,826.4349,13.3090,22.1197,1,1,300); // berg
  368.  
  369.     Karts[0] = CreateVehicle(571,2286.2141,-2354.5000,12.8306,225.8705,-1,-1,300); // Kart
  370.     Karts[1] = CreateVehicle(571,2279.9412,-2348.4141,12.8312,225.8585,-1,-1,300); // Kart
  371.     Karts[2] = CreateVehicle(571,2291.7932,-2345.5356,12.8305,227.3060,-1,-1,300); // Kart
  372.     Karts[3] = CreateVehicle(571,2287.5615,-2341.6433,12.8306,226.5350,-1,-1,300); // Kart
  373.     Karts[4] = CreateVehicle(571,2299.6785,-2338.3186,12.8307,224.3563,-1,-1,300); // Kart
  374.     Karts[5] = CreateVehicle(571,2295.3887,-2334.9448,12.8307,227.9102,-1,-1,300); // Kart
  375.  
  376.     Busse[0] = CreateVehicle(431,1804.8495,-1904.1022,13.5857,89.9323,3,1,300); // Busse
  377.     Busse[1] = CreateVehicle(431,1804.8143,-1911.6349,13.5828,90.0791,3,1,300); // Busse
  378.     Busse[2] = CreateVehicle(431,1804.8236,-1919.2054,13.5774,89.8308,3,1,300); // Busse
  379.     Busse[3] = CreateVehicle(431,1804.7792,-1926.7426,13.5713,90.2164,3,1,300); // Busse
  380.     Busse[4] = CreateVehicle(431,1780.2964,-1931.1304,13.4882,269.8992,3,1,300); // Busse
  381.     Busse[5] = CreateVehicle(431,1780.2966,-1923.4889,13.4898,270.3274,3,1,300); // Busse
  382.     Busse[6] = CreateVehicle(431,1780.2794,-1915.9192,13.4854,269.9644,3,1,300); // Busse
  383.     Busse[7] = CreateVehicle(431,1780.4055,-1907.9673,13.4952,270.0208,3,1,300); // Busse
  384.     Busse[8] = CreateVehicle(431,1780.2931,-1911.8928,13.4896,270.4763,3,1,300); // Busse
  385.     Busse[9] = CreateVehicle(431,1780.3806,-1886.5126,13.4943,269.8163,3,1,300); // Busse
  386.     Busse[10] = CreateVehicle(431,1780.3538,-1893.3872,13.4936,269.5728,3,1,300); // Busse
  387.     Busse[11] = CreateVehicle(431,1780.4121,-1901.1178,13.4932,269.5907,3,1,300); // Busse
  388.  
  389.     EightBallTrackCars[0] = CreateVehicle(502,-1409.3304,-258.7024,1043.5538,348.0829,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  390.     EightBallTrackCars[1] = CreateVehicle(502,-1408.1732,-252.8043,1043.5160,349.5385,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  391.     EightBallTrackCars[2] = CreateVehicle(502,-1407.1998,-246.9859,1043.4344,350.5902,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  392.     EightBallTrackCars[3] = CreateVehicle(502,-1406.2277,-241.2053,1043.3346,349.4809,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  393.     EightBallTrackCars[4] = CreateVehicle(502,-1405.2527,-235.4377,1043.2589,349.5167,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  394.     EightBallTrackCars[5] = CreateVehicle(502,-1386.2634,-238.3527,1043.2756,9.0675,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  395.     EightBallTrackCars[6] = CreateVehicle(502,-1387.1091,-232.5439,1043.2086,9.1221,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  396.     EightBallTrackCars[7] = CreateVehicle(502,-1387.7828,-226.6933,1043.1434,5.4200,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  397.     EightBallTrackCars[8] = CreateVehicle(502,-1388.2650,-220.8038,1043.0758,5.2123,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  398.     EightBallTrackCars[9] = CreateVehicle(502,-1388.7441,-214.9509,1043.0179,5.4786,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  399.     EightBallTrackCars[10] = CreateVehicle(502,-1389.1321,-209.0630,1042.9854,5.2758,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  400.     EightBallTrackCars[11] = CreateVehicle(502,-1389.6981,-203.1317,1043.0031,6.4890,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  401.     EightBallTrackCars[12] = CreateVehicle(502,-1390.4713,-197.1493,1043.0255,8.0254,-1,-1,-1); // 8-Ball Track -> Hotring A -> Interior 7
  402.  
  403.     DerbyArenaCars[0] = CreateVehicle(504,-1480.9875,917.9542,1040.8481,251.4754,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  404.     DerbyArenaCars[1] = CreateVehicle(504,-1472.9005,915.3274,1040.8413,251.9134,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  405.     DerbyArenaCars[2] = CreateVehicle(504,-1465.0790,912.8376,1040.8953,255.7297,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  406.     DerbyArenaCars[3] = CreateVehicle(504,-1456.7750,910.8296,1040.9312,257.7745,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  407.     DerbyArenaCars[4] = CreateVehicle(504,-1449.4591,909.8005,1040.8982,261.6930,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  408.     DerbyArenaCars[5] = CreateVehicle(504,-1441.6365,909.0790,1040.8276,266.3473,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  409.     DerbyArenaCars[6] = CreateVehicle(504,-1434.2535,908.4992,1040.8138,265.6412,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  410.     DerbyArenaCars[7] = CreateVehicle(504,-1426.9315,907.9935,1040.8475,265.9919,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  411.     DerbyArenaCars[8] = CreateVehicle(504,-1418.8766,907.6464,1040.8877,269.5049,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  412.     DerbyArenaCars[9] = CreateVehicle(504,-1410.1074,907.5984,1040.8884,270.8502,-1,-1,-1); // Derby Arena Fahrzeug -> Interior 15
  413.  
  414.     RobTransporter[0] = CreateVehicle(428,1521.2537,-1023.9999,23.9718,180,4,75,1200); // Transporter Rob
  415.    
  416.     KorierVans[0][KRVehicle] = CreateVehicle(609,-48.2358,-1134.9824,1.5,70.1,84,84,300); // KurierCar 1
  417.     KorierVans[1][KRVehicle] = CreateVehicle(609,-54.2521,-1132.7164,1.5,70.1,84,84,300); // KurierCar 2
  418.     KorierVans[2][KRVehicle] = CreateVehicle(609,-60.3622,-1130.3397,1.5,70.1,84,84,300); // KurierCar 3
  419.     KorierVans[3][KRVehicle] = CreateVehicle(609,-75.6,-1105.1,1.5,170.1,84,84,300); // KurierCar 4
  420.     KorierVans[4][KRVehicle] = CreateVehicle(609,-70.6,-1108.1,1.5,170.1,84,84,300); // KurierCar 5
  421.     KorierVans[5][KRVehicle] = CreateVehicle(609,-58.9799,-1135.4330,1.1495,69.9462,84,84,300); // KurierCar 5
  422.     KorierVans[6][KRVehicle] = CreateVehicle(609,-49.8011,-1139.0278,1.1462,68.8955,84,84,300); // KurierCar 5
  423.     KorierVans[7][KRVehicle] = CreateVehicle(609,-51.2861,-1142.8558,1.1458,70.5146,84,84,300); // KurierCar 5
  424.     KorierVans[8][KRVehicle] = CreateVehicle(609,-60.3793,-1139.7094,1.1478,70.6378,84,84,300); // KurierCar 5
  425.     KorierVans[9][KRVehicle] = CreateVehicle(609,-52.4283,-1146.8286,1.1474,71.2923,84,84,300); // KurierCar 5
  426.     KorierVans[10][KRVehicle] = CreateVehicle(609,-53.8658,-1150.7672,1.1474,68.4642,84,84,300); // KurierCar 5
  427.     KorierVans[11][KRVehicle] = CreateVehicle(609,-81.1297,-1137.0776,1.1448,334.6037,84,84,300); // KurierCar 5
  428.     KorierVans[12][KRVehicle] = CreateVehicle(609,-84.5958,-1135.2861,1.1461,334.2360,84,84,300); // KurierCar 5
  429.     KorierVans[13][KRVehicle] = CreateVehicle(609,-61.8588,-1143.3835,1.1456,69.8002,84,84,300); // KurierCar 5
  430.     KorierVans[14][KRVehicle] = CreateVehicle(609,-63.3253,-1147.1586,1.1459,68.8966,84,84,300); // KurierCar 5
  431.     KorierVans[15][KRVehicle] = CreateVehicle(609,-42.9091,-1150.0558,1.1454,70.2741,84,84,300); // KurierCar 5
  432.     KorierVans[16][KRVehicle] = CreateVehicle(609,-41.3414,-1146.1826,1.1452,69.9926,84,84,300); // KurierCar 5
  433.  
  434.     //ATM BELADER
  435.     GeldVans[0] = CreateVehicle(428,1532.5564,-1022.1971,24.0656,140.0886,1,1, 1200);
  436.     GeldVans[1] = CreateVehicle(428,1529.7788,-1019.3544,24.1550,139.5609,1,1, 1200);
  437.     GeldVans[2] = CreateVehicle(428,1527.6249,-1016.0364,24.1413,138.6399,1,1, 1200);
  438.     GeldVans[3] = CreateVehicle(428,1525.4453,-1011.8543,24.1800,136.1213,1,1, 1200);
  439.  
  440.     //Pilot Flugzeuge
  441.     PilotFlug[0] = CreateVehicle(553,1923.2832,-2246.2502,14.7979,181.8647,53,1,1500); // Flugzeug
  442.     PilotFlug[1] = CreateVehicle(553,1992.1250,-2255.7583,14.7991,120.6083,53,1,1500); // Flugzeug
  443.     PilotFlug[2] = CreateVehicle(553,1992.6346,-2312.1343,14.7959,113.7567,53,1,1500); // Flugzeug
  444.     PilotFlug[3] = CreateVehicle(553,1993.9025,-2380.7888,14.9165,118.8938,53,1,1500); // Flugzeug
  445.     PilotFlug[4] = CreateVehicle(553,-1253.0012,-334.8414,15.4874,217.7373,53,1,1500); // SF flugzeug
  446.     PilotFlug[5] = CreateVehicle(553,-1281.1073,-344.5862,15.4856,215.5061,53,1,1500); // SF flugzeug
  447.     PilotFlug[6] = CreateVehicle(553,-1308.6973,-354.4084,15.3886,214.6657,53,1,1500); // SF flugzeug
  448.     PilotFlug[7] = CreateVehicle(553,1276.3870,1484.6215,12.1552,227.6740,53,1,1500); // LV flugzeug
  449.     PilotFlug[8] = CreateVehicle(553,1281.1481,1436.0457,12.0719,320.7543,53,1,1500); // LV flugzeug
  450.     PilotFlug[9] = CreateVehicle(553,1303.2247,1431.0669,12.0707,318.3877,53,1,1500); // LV flugzeug
  451.     PilotFlug[10] = CreateVehicle(553,1324.1375,1424.7322,12.0698,312.6902,53,1,1500); // LV flugzeug
  452.     PilotFlug[11] = CreateVehicle(553,1346.1135,1421.9363,12.0749,312.3693,53,1,1500); // LV flugzeug
  453.  
  454.     for(new veh = 0; veh < MAX_VEHICLES; veh++)
  455.     {
  456.         if(veh == INVALID_VEHICLE_ID || !IsValidVehicle(veh)) continue;
  457.         GetVehiclePos(veh, fOldPos[veh][0], fOldPos[veh][1], fOldPos[veh][2]);
  458.  
  459.     }
  460.     printf("Autos wurden erfolgreich Geladen und Gespawnt");
  461.  
  462.     for(new i = 0; i < sizeof(KorierVans); i++)
  463.     {
  464.         KorierVans[i][KRVermietet] = 0;
  465.         KorierVans[i][KRMieterID] = -1;
  466.         KorierVans[i][KRZiehlHaus] = -1;
  467.     }
  468.     for(new i = 0; i < sizeof(Kaufliste); i++)
  469.     {
  470.         Kaufliste[i][Carid] = CreateVehicle(Kaufliste[i][Modelid],Kaufliste[i][pos_x],Kaufliste[i][pos_y],Kaufliste[i][pos_z],Kaufliste[i][z_angle],-1,-1,-1);
  471.     }
  472.     for(new h = 0; h < sizeof(AutomatikPortInfo); h++)
  473.     {
  474.         AutomatikPortInfo[h][APAusgangPickup] = CreatePickup(1318, 23, AutomatikPortInfo[h][APAusgangX], AutomatikPortInfo[h][APAusgangY], AutomatikPortInfo[h][APAusgangZ],-1);
  475.         AutomatikPortInfo[h][APEingangPickup] = CreatePickup(1318, 23, AutomatikPortInfo[h][APEingangX], AutomatikPortInfo[h][APEingangY], AutomatikPortInfo[h][APEingangZ]+0.2,-1);
  476.     }
  477.     for(new h = 0; h < sizeof(GangHausInfo); h++)
  478.     {
  479.         format(string2, sizeof(string2), "Dieses Haus gehört:\n%s\n\nLevel: 99",GangHausInfo[h][GHGangName]);
  480.         Create3DTextLabel(string2,COLOR_WHITE,GangHausInfo[h][GHEingangX],GangHausInfo[h][GHEingangY],GangHausInfo[h][GHEingangZ]+1.0,15.0,0,0);
  481.         CreatePickup(1239, 23, GangHausInfo[h][GHEingangX], GangHausInfo[h][GHEingangY], GangHausInfo[h][GHEingangZ]);
  482.     }
  483.     for(new i = 0; i < sizeof(EightBallTrackCars); i++)
  484.     {
  485.         LinkVehicleToInterior(EightBallTrackCars[i], 7);
  486.         SetVehicleVirtualWorld(EightBallTrackCars[i], 10);
  487.     }
  488.     for(new i = 0; i < sizeof(DerbyArenaCars); i++)
  489.     {
  490.         LinkVehicleToInterior(DerbyArenaCars[i], 15);
  491.         SetVehicleVirtualWorld(DerbyArenaCars[i], 10);
  492.     }
  493.     for(new i = 0; i < sizeof(ZollSystemInfo); i++)
  494.     {
  495.         ZollSystemInfo[i][ZSObjectID] = CreateDynamicObject(ZollSystemInfo[i][ZSObjectTyp], ZollSystemInfo[i][ZSObjectPosX], ZollSystemInfo[i][ZSObjectPosY], ZollSystemInfo[i][ZSObjectPosZ], 0, 0, ZollSystemInfo[i][ZSObjectPosRot]);
  496.     }
  497.     UpdateTime();
  498.     Create3DTexte();
  499.     printf("3DTexte erfolgreich Geladen");
  500.  
  501.     SetTimer("ProTimer", 100, true);
  502.     SetProTimer("SekundenTimer1", 920, true);
  503.     SetProTimer("SekundenTimer3", 920, true);
  504.     SetProTimer("BlitzTimer", 200, true);
  505.     SetProTimer("AutoBlitzTimer", 200, true);
  506.     SetProTimer("SetSekundenTimer5", 500, false);
  507.     SetProTimer("UpdateTime", 1000, true);
  508.     SetProTimer("SaveAll", 3600000, true);
  509.     SetProTimer("Feuer", 900000, true);
  510.     SetProTimer("SekundenTimer6", 500, true);
  511.     SetProTimer("SetBlitzTimer", 600, false);
  512.     SetProTimer("STDCheck", 30000, true);
  513.     SetProTimer("CheckGas", 60000, true);
  514.     SetProTimer("GangPay", 60000*120,true);
  515.     SetProTimer("MinutenTimer", 1000*60, true);
  516.     SetProTimer("PickupTimer", 1000, true);
  517.     SetProTimer("Production", 600000, true);
  518.     SetProTimer("Keys", 500, true);
  519.     //SetProTimer("LobbyUpdate", 2000, true);
  520.  
  521.     for(new veh = 1; veh < MAX_VEHICLES; veh++)
  522.     {
  523.         if(!IsValidVehicle(veh)) continue;
  524.         SetVehicleToRespawn(veh);
  525.     }
  526.    
  527.     AddPlayerClass(101,1198.8840,-902.8647,48.0625,90, 0, 0, 0, 0, 0, 0);
  528.    
  529.     randomseed[1]=gettime();
  530.     return 1;
  531. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top