Guest User

RRonnysGM

a guest
Aug 8th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.44 KB | None | 0 0
  1.  
  2.  
  3. #include <a_samp>
  4. #include <Dini>
  5. #include <ocmd>
  6. #include <sscanf2>
  7. #include <rnpc>
  8. #include <foreach>
  9. #include "../include/gl_common.inc"
  10.  
  11. #define DIALOG_REG 1
  12. #define DIALOG_REGISTER 2
  13. #define DIALOG_LOGIN 3
  14. #define DIALOG_TUTSTARTEN 4
  15. #define DIALOG_REGELN 5
  16.  
  17. #define SLOTS 50
  18. #define CAR_AMOUNT 700
  19. #define RunOutTime 30000
  20.  
  21. #define WEIß 0xFFFFFFAA
  22. #define HELLGRUN 0x9ACD32AA
  23. #define GRUN 0x9EC73DAA
  24. #define GRUN2 0x33AA33DD
  25. #define DUNKELGRUN 0x00D900C8
  26. #define HELLROSA 0xFF8282AA
  27. #define LEICHTROT 0xFF6347AA
  28. #define HELLROT 0xFF0000FF
  29. #define ROT 0xE60000FF
  30. #define LILA 0x8D8DFF00
  31. #define TURKIS 0x01FCFFC8
  32. #define HELLBLAU 0x33CCFFAA
  33. #define BLAU 0x0000CAF6
  34. #define DUNKELBLAU 0x2641FEAA
  35. #define GELB 0xFFFF00AA
  36. #define GOLD 0xB8860BAA
  37. #define ORANGE 0xFF9933FF
  38. #define GRAU 0xAFAFAFAA
  39. #define SCHWARZ 0x000000FF
  40.  
  41. forward tachotimer(playerid);
  42. forward Fillup();
  43. forward CheckGas();
  44. forward Float:GetDistanceFromPointToPoint(Float:KOLOMETERX,Float:KOLOMETERY,Float:KOLOMETERZ,Float:tX,Float:tY,Float:tZ);
  45. forward IsANoTachoVehicle(carid);
  46. forward AutoTachokmhetc();
  47. forward Float:GetDistanceToPlayer(playerid,playerid2);
  48. forward Timer3();
  49. forward Timer2(playerid);
  50. forward KickBot(playerid);
  51. forward zombietimer1(playerid);
  52. forward LoginBild(playerid);
  53. forward ClearText(playerid,lines);
  54.  
  55. new Rucksack1;
  56.  
  57. new Text3D:label;
  58.  
  59. new km[MAX_PLAYERS];
  60. new mmm1[MAX_PLAYERS];
  61. new Float:distance[MAX_PLAYERS];
  62. new NoFuel[MAX_PLAYERS];
  63. new Refueling[MAX_PLAYERS];
  64. new gGas[MAX_PLAYERS];
  65. new SpeedoON[MAX_PLAYERS];
  66. new tachovar[MAX_PLAYERS];
  67. new MehrereBilder[MAX_PLAYERS];
  68. new Einlatungstimer[MAX_PLAYERS];
  69. new VehicleDeathInfo[MAX_VEHICLES];
  70.  
  71. new Gas[CAR_AMOUNT];
  72. new Float:xx[MAX_PLAYERS],Float:yy[MAX_PLAYERS],Float:zz[MAX_PLAYERS];
  73.  
  74. new PlayerText:DrawLogin1[MAX_PLAYERS];
  75. new PlayerText:DrawLogin2[MAX_PLAYERS];
  76. new PlayerText:DrawLogin3[MAX_PLAYERS];
  77. new PlayerText:DrawLogin4[MAX_PLAYERS];
  78. new PlayerText:DrawLogin5[MAX_PLAYERS];
  79. new PlayerText:DrawLogin6[MAX_PLAYERS];
  80. new PlayerText:DrawLogin7[MAX_PLAYERS];
  81. new PlayerText:DrawIntro1[MAX_PLAYERS];
  82. new PlayerText:DrawIntro2[MAX_PLAYERS];
  83. new PlayerText:DrawIntro3[MAX_PLAYERS];
  84. new PlayerText:DrawIntro4[MAX_PLAYERS];
  85. new PlayerText:DrawIntro5[MAX_PLAYERS];
  86. new PlayerText:DrawIntroSuche1[MAX_PLAYERS];
  87. new PlayerText:DrawIntroSuche2[MAX_PLAYERS];
  88. new PlayerText:DrawIntroSuche3[MAX_PLAYERS];
  89. new PlayerText:DrawIntroSuche4[MAX_PLAYERS];
  90. new PlayerText:DrawIntroZombie1[MAX_PLAYERS];
  91. new PlayerText:DrawIntroZombie2[MAX_PLAYERS];
  92. new PlayerText:DrawIntroZombie3[MAX_PLAYERS];
  93. new PlayerText:DrawIntroZombie4[MAX_PLAYERS];
  94. new PlayerText:DrawIntroZombie5[MAX_PLAYERS];
  95. new PlayerText:DrawIntroEinkaufen1[MAX_PLAYERS];
  96. new PlayerText:DrawIntroEinkaufen2[MAX_PLAYERS];
  97. new PlayerText:DrawIntroEinkaufen3[MAX_PLAYERS];
  98. new PlayerText:DrawIntroEinkaufen4[MAX_PLAYERS];
  99. new PlayerText:DrawIntroEinkaufen5[MAX_PLAYERS];
  100. new PlayerText:DrawIntroZonen1[MAX_PLAYERS];
  101. new PlayerText:DrawIntroZonen2[MAX_PLAYERS];
  102. new PlayerText:DrawIntroZonen3[MAX_PLAYERS];
  103. new PlayerText:DrawIntroZonen4[MAX_PLAYERS];
  104. new PlayerText:DrawIntroZonen5[MAX_PLAYERS];
  105. new PlayerText:DrawKarte[MAX_PLAYERS];
  106. new PlayerText:StatsBoxDraw[MAX_PLAYERS];
  107.  
  108. new Text:Schadenanzzeigerrichtig[MAX_PLAYERS];
  109. new Text:TachoBenzin[MAX_PLAYERS];
  110. new Text:KilometerAnzeige[MAX_PLAYERS];
  111. new Text:Schadenanzeige[MAX_PLAYERS];
  112.  
  113. new Text:TachoTankBox;
  114.  
  115. new checkgastimer;
  116. new PicckupObject;
  117.  
  118. enum sDaten
  119. {
  120. Eingeloggt,
  121. SpielerSpawn,
  122. Admin,
  123. pSkin,
  124. pGeld,
  125. pInfoos,
  126. pKills,
  127. pBlood,
  128. pBloodCounter,
  129. Backpack
  130. }
  131. new pInfo[MAX_PLAYERS][sDaten];
  132.  
  133. enum OldSpeedoPos
  134. {
  135. Float:sX,
  136. Float:sY,
  137. Float:sZ
  138. }
  139. new SavePlayerPos[SLOTS][OldSpeedoPos];
  140.  
  141. new GasMax[] = {
  142. 6, //"Landstalker",
  143. 7,//"Bravura",
  144. 5,//"Buffalo",
  145. 8,//"Linerunner",
  146. 5,//"Pereniel",
  147. 12,//"Sentinel",
  148. 8,//"Dumper",
  149. 5,//"Firetruck",
  150. 14,//"Trashmaster",
  151. 7,//"Stretch",
  152. 43,//"Manana",
  153. 7,//"Infernus",
  154. 5,//"Voodoo",
  155. 8,//"Pony",
  156. 8,//"Mule",
  157. 11,//"Cheetah",
  158. 15,//"Ambulance",
  159. 14,//"Leviathan",
  160. 16,//"Moonbeam",
  161. 7,//"Esperanto",
  162. 5,//"Taxi",
  163. 6,//"Washington",
  164. 5,//"Bobcat",
  165. 5,//"Mr Whoopee",
  166. 5,//"BF Injection",
  167. 5,//"Hunter",
  168. 5,//"Premier",
  169. 5,//"Enforcer",
  170. 5,//"Securicar",
  171. 5,//"Banshee",
  172. 5,//"Predator",
  173. 5,//"Bus",
  174. 7,//"Rhino",
  175. 7,//"Barracks",
  176. 7,//"Hotknife",
  177. 7,//"Trailer",
  178. 7,//"Previon",
  179. 7,//"Coach",
  180. 7,//"Cabbie",
  181. 7,//"Stallion",
  182. 7,//"Rumpo",
  183. 7,//"RC Bandit",
  184. 7,//"Romero",
  185. 7,//"Packer",
  186. 7,//"Monster Truck",
  187. 7,//"Admiral",
  188. 7,//"Squalo",
  189. 7,//"Seasparrow",
  190. 7,//"Pizzaboy",
  191. 7,//"Tram",
  192. 7,//"Trailer",
  193. 7,//"Turismo",
  194. 7,//"Speeder",
  195. 7,//"Reefer",
  196. 7,//"Tropic",
  197. 7,//"Flatbed",
  198. 7,//"Yankee",
  199. 7,//"Caddy",
  200. 7,//"Solair",
  201. 7,//"Berkley's RC Van",
  202. 7,//"Skimmer",
  203. 7,//"PCJ-600",
  204. 7,//"Roller",
  205. 7,//"Freeway",
  206. 7,//"RC Baron",
  207. 7,//"RC Raider",
  208. 7,//"Glendale",
  209. 7,//"Oceanic",
  210. 7,//"Sanchez",
  211. 7,//"Sparrow",
  212. 7,//"Patriot",
  213. 7,//"Quad",
  214. 7,//"Coastguard",
  215. 7,//"Dinghy",
  216. 7,//"Hermes",
  217. 7,//"Sabre",
  218. 7,//"Rustler",
  219. 7,//"ZR-350",
  220. 7,//"Walton",
  221. 7,//"Regina",
  222. 7,//"Comet",
  223. 7,//"Fahrrad",
  224. 7,//"Burrito",
  225. 7,//"Camper",
  226. 7,//"Marquis",
  227. 7,//"Baggage",
  228. 7,//"Dozer",
  229. 7,//"Maverick",
  230. 7,//"News Chopper",
  231. 7,//"Rancher",
  232. 7,//"FBI Rancher",
  233. 7,//"Virgo",
  234. 7,//"Greenwood",
  235. 7,//"Jetmax",
  236. 7,//"Hotring",
  237. 7,//"Sandking",
  238. 7,//"Blista Compact",
  239. 7,//"Police Maverick",
  240. 7,//"Boxville",
  241. 7,//"Benson",
  242. 7,//"Mesa",
  243. 7,//"RC Goblin",
  244. 7,//"Hotring Racer",
  245. 7,//"Hotring Racer",
  246. 7,//"Bloodring Banger",
  247. 7,//"Rancher",
  248. 7,//"Super GT",
  249. 7,//"Elegant",
  250. 7,//"Journey",
  251. 7,//"Bike",
  252. 7,//"Mountain Bike",
  253. 7,//"Beagle",
  254. 7,//"Cropdust",
  255. 7,//"Stunt",
  256. 7,//"Tanker",
  257. 7,//"RoadTrain",
  258. 7,//"Nebula",
  259. 7,//"Majestic",
  260. 7,//"Buccaneer",
  261. 7,//"Shamal",
  262. 7,//"Hydra",
  263. 7,//"FCR-900",
  264. 7,//"NRG-500",
  265. 7,//"HPV1000",
  266. 7,//"Cement Truck",
  267. 7,//"Tow Truck",
  268. 7,//"Fortune",
  269. 7,//"Cadrona",
  270. 7,//"FBI Truck",
  271. 7,//"Willard",
  272. 7,//"Forklift",
  273. 7,//"Traktor",
  274. 7,//"Combine",
  275. 7,//"Feltzer",
  276. 7,//"Remington",
  277. 7,//"Slamvan",
  278. 7,//"Blade",
  279. 7,//"Freight",
  280. 7,//"Streak",
  281. 7,//"Vortex",
  282. 7,//"Vincent",
  283. 7,//"Bullet",
  284. 7,//"Clover",
  285. 7,//"Sadler",
  286. 7,//"Firetruck",
  287. 7,//"Hustler",
  288. 7,//"Intruder",
  289. 7,//"Primo",
  290. 7,//"Cargobob",
  291. 7,//"Tampa",
  292. 7,//"Sunrise",
  293. 7,//"Merit",
  294. 7,//"Utility",
  295. 7,//"Nevada",
  296. 7,//"Yosemite",
  297. 7,//"Windsor",
  298. 7,//"Monster Truck",
  299. 7,//"Monster Truck",
  300. 7,//"Uranus",
  301. 7,//"Jester",
  302. 7,//"Sultan",
  303. 7,//"Stratum",
  304. 7,//"Elegy",
  305. 7,//"Raindance",
  306. 7,//"RC Tiger",
  307. 7,//"Flash",
  308. 7,//"Tahoma",
  309. 7,//"Savanna",
  310. 7,//"Bandito",
  311. 7,//"Freight",
  312. 7,//"Trailer",
  313. 7,//"Kart",
  314. 7,//"Mower",
  315. 7,//"Duneride",
  316. 7,//"Sweeper",
  317. 7,//"Broadway",
  318. 7,//"Tornado",
  319. 7,//"AT-400",
  320. 7,//"DFT-30",
  321. 7,//"Huntley",
  322. 7,//"Stafford",
  323. 7,//"BF-400",
  324. 7,//"Newsvan",
  325. 7,//"Tug",
  326. 7,//"Trailer",
  327. 7,//"Emperor",
  328. 7,//"Wayfarer",
  329. 7,//"Euros",
  330. 7,//"Hotdog",
  331. 7,//"Club",
  332. 7,//"Trailer",
  333. 7,//"Trailer",
  334. 7,//"Andromada",
  335. 7,//"Dodo",
  336. 7,//"RC Cam",
  337. 7,//"Launch",
  338. 11,//"Streifenwagen",
  339. 11,//"Streifenwagen",
  340. 11,//"Streifenwagen",
  341. 11,//"Polizei Ranger",
  342. 6,//"Picador",
  343. 6,//"S.W.A.T. Van",
  344. 6,//"Alpha",
  345. 6,//"Phoenix",
  346. 6,//"Glendale",
  347. 50,//"Sadler",
  348. 6,//"Luggage Trailer",
  349. 6,//"Luggage Trailer",
  350. 6,//"Stair Trailer",
  351. 6,//"Boxville",
  352. 6,//"Farm Plow",
  353. 6//"Utility Trailer"
  354. };
  355.  
  356. new Float:wpReichweite[] = {
  357. 1.0,
  358. 1.0,
  359. 1.2,
  360. 1.2,
  361. 1.1,
  362. 1.2,
  363. 1.2,
  364. 1.3,
  365. 1.2,
  366. 1.3,
  367. 0.5,
  368. 0.5,
  369. 0.5,
  370. 0.5,
  371. 0.5,
  372. 1.4,
  373. 12.0,
  374. 12.0,
  375. 12.0,
  376. 0.0,
  377. 0.0,
  378. 0.0,
  379. 28.0,
  380. 29.0,
  381. 30.0,
  382. 26.0,
  383. 25.0,
  384. 27.0,
  385. 28.0,
  386. 31.0,
  387. 35.0,
  388. 35.0,
  389. 26.0,
  390. 38.0,
  391. 65.0,
  392. 40.0,
  393. 40.0,
  394. 23.0,
  395. 37.0,
  396. 0.0,
  397. 0.0,
  398. 0.0,
  399. 0.0,
  400. 0.0,
  401. 0.0,
  402. 0.0
  403. };
  404.  
  405. new wpSchaden[] = {
  406. 1,
  407. 2,
  408. 4,
  409. 4,
  410. 5,
  411. 4,
  412. 4,
  413. 4,
  414. 6,
  415. 15,
  416. 1,
  417. 1,
  418. 1,
  419. 1,
  420. 1,
  421. 4,
  422. 80,
  423. 2,
  424. 0,
  425. 10,
  426. 0,
  427. 10,
  428. 35,
  429. 30,
  430. 35,
  431. 15,
  432. 17,
  433. 15,
  434. 8,
  435. 9,
  436. 40,
  437. 12,
  438. 100,
  439. 0,
  440. 55,
  441. 40,
  442. 0,
  443. 4,
  444. 2,
  445. 0,
  446. 0,
  447. 0,
  448. 0,
  449. 0,
  450. 0
  451. };
  452.  
  453. main()
  454. {
  455. print("\n------------------------------------------------");
  456. print(" Day of Z Der auf NPC Basierte Zombie Server");
  457. print(" Wurde erfolgreich geladen.");
  458. print(" Das Script ist eigentum von Ronny");
  459. print("------------------------------------------------\n");
  460. }
  461.  
  462.  
  463. public OnGameModeInit()
  464. {
  465. SetGameModeText("Zombie");
  466. UsePlayerPedAnims();
  467.  
  468. SetTimer("AutoTachokmhetc",200,1);
  469. SetTimer("Timer3",1000, 1);
  470.  
  471. checkgastimer = SetTimer("CheckGas", RunOutTime, 1);
  472.  
  473. for(new c=0;c<CAR_AMOUNT;c++)
  474. {
  475. Gas[c] = GetGasMax(GetVehicleModel(c));
  476. }
  477.  
  478. ConnectRNPC("Zombie1");
  479. ConnectRNPC("Zombie2");
  480. ConnectRNPC("Zombie3");
  481. ConnectRNPC("Zombie4");
  482. ConnectRNPC("Zombie5");
  483. ConnectRNPC("Zombie6");
  484. ConnectRNPC("Zombie7");
  485. ConnectRNPC("Zombie8");
  486. ConnectRNPC("Zombie9");
  487. ConnectRNPC("Zombie10");
  488. ConnectRNPC("Zombie11");
  489. ConnectRNPC("Zombie12");
  490. ConnectRNPC("Zombie13");
  491. ConnectRNPC("Zombie14");
  492. ConnectRNPC("Zombie15");
  493. ConnectRNPC("Zombie16");
  494. ConnectRNPC("Zombie17");
  495. ConnectRNPC("Zombie18");
  496. ConnectRNPC("Zombie19");
  497. ConnectRNPC("Zombie20");
  498. ConnectRNPC("Zombie21");
  499. ConnectRNPC("Zombie22");
  500. ConnectRNPC("Zombie23");
  501. ConnectRNPC("Zombie24");
  502.  
  503. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  504.  
  505. Rucksack1 = CreatePickup(3026, 24, 198.2905,-226.7606,1.7786, -1); //Rucksack
  506.  
  507. AddStaticVehicleEx(411,238.3467,-366.3342,7.8249,279.4806,1,1,-1);
  508.  
  509. for(new d=0; d<SLOTS; d++)
  510. {
  511. Schadenanzzeigerrichtig[d] = TextDrawCreate(471.000000, 426.000000, "~r~Schaden: ~w~ 1000");
  512. TextDrawBackgroundColor(Schadenanzzeigerrichtig[d], 255);
  513. TextDrawFont(Schadenanzzeigerrichtig[d], 1);
  514. TextDrawLetterSize(Schadenanzzeigerrichtig[d], 0.280000, 1.000000);
  515. TextDrawColor(Schadenanzzeigerrichtig[d], -1);
  516. TextDrawSetOutline(Schadenanzzeigerrichtig[d], 1);
  517. TextDrawSetProportional(Schadenanzzeigerrichtig[d], 1);
  518.  
  519. TachoBenzin[d] = TextDrawCreate(470.000000, 408.000000, "~b~Tank: ~w~50 Lieter (Benzin)");
  520. TextDrawBackgroundColor(TachoBenzin[d], 255);
  521. TextDrawFont(TachoBenzin[d], 1);
  522. TextDrawLetterSize(TachoBenzin[d], 0.280000, 1.100000);
  523. TextDrawColor(TachoBenzin[d], -1);
  524. TextDrawSetOutline(TachoBenzin[d], 1);
  525. TextDrawSetProportional(TachoBenzin[d], 1);
  526.  
  527. KilometerAnzeige[d] = TextDrawCreate(470.000000, 417.000000, "~b~Stand: ~w~ 0 km");
  528. TextDrawBackgroundColor(KilometerAnzeige[d], 255);
  529. TextDrawFont(KilometerAnzeige[d], 1);
  530. TextDrawLetterSize(KilometerAnzeige[d], 0.310000, 1.000000);
  531. TextDrawColor(KilometerAnzeige[d], -1);
  532. TextDrawSetOutline(KilometerAnzeige[d], 1);
  533. TextDrawSetProportional(KilometerAnzeige[d], 1);
  534.  
  535. Schadenanzeige[d] = TextDrawCreate(470.000000, 399.000000, "~b~Tempo: ~w~ 0 km/h");
  536. TextDrawBackgroundColor(Schadenanzeige[d], 255);
  537. TextDrawFont(Schadenanzeige[d], 1);
  538. TextDrawLetterSize(Schadenanzeige[d], 0.280000, 1.000000);
  539. TextDrawColor(Schadenanzeige[d], -1);
  540. TextDrawSetOutline(Schadenanzeige[d], 1);
  541. TextDrawSetProportional(Schadenanzeige[d], 1);
  542. }
  543. return 1;
  544. }
  545.  
  546. public OnGameModeExit()
  547. {
  548. KillTimer(checkgastimer);
  549. return 1;
  550. }
  551.  
  552. public OnPlayerRequestClass(playerid, classid)
  553. {
  554. if(IsPlayerNPC(playerid))return 1;
  555. LoginBild(playerid);
  556. SetPlayerWeather(playerid, 8);
  557. SetSpawnInfo(playerid,0,4,-319.1117,-1909.0902,12.4684,0,0,0,0,0,0,0);
  558. SpawnPlayer(playerid);
  559.  
  560. new SpielerDatei[128];
  561. new name[MAX_PLAYER_NAME];
  562. new string[328];
  563. GetPlayerName(playerid,name,sizeof(name));
  564. format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
  565. if(dini_Exists(SpielerDatei))
  566. {
  567. PlayerTextDrawShow(playerid,DrawLogin1[playerid]);
  568. PlayerTextDrawShow(playerid,DrawLogin2[playerid]);
  569. PlayerTextDrawShow(playerid,DrawLogin3[playerid]);
  570. PlayerTextDrawShow(playerid,DrawLogin4[playerid]);
  571. PlayerTextDrawShow(playerid,DrawLogin5[playerid]);
  572. PlayerTextDrawShow(playerid,DrawLogin6[playerid]);
  573. PlayerTextDrawShow(playerid,DrawLogin7[playerid]);
  574. LoginBild(playerid);
  575. PlayAudioStreamForPlayer(playerid,"http://roleofgerman.bplaced.net/Musik/Horror.mp3");
  576. SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wird nach einen Account in der Datenbank gesucht]");
  577. SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wurde ein Account {00C146}gefunden{0005FF}]");
  578. new login[MAX_PLAYER_NAME];
  579. GetPlayerName(playerid, login, sizeof(login));
  580. format(string, sizeof(string), "{FAFAFA}Herzlich Willkommen zurueck: %s\nBitte Logge dich nun in deinen Account ein.\nDas Admin Team wünscht dir viel spaß beim spielen", login);
  581. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",string,"Login","Beenden");
  582. }
  583. else
  584. {
  585. PlayerTextDrawShow(playerid,DrawLogin1[playerid]);
  586. PlayerTextDrawShow(playerid,DrawLogin2[playerid]);
  587. PlayerTextDrawShow(playerid,DrawLogin3[playerid]);
  588. PlayerTextDrawShow(playerid,DrawLogin4[playerid]);
  589. PlayerTextDrawShow(playerid,DrawLogin5[playerid]);
  590. PlayerTextDrawShow(playerid,DrawLogin6[playerid]);
  591. PlayerTextDrawShow(playerid,DrawLogin7[playerid]);
  592. new Loginname[MAX_PLAYER_NAME];
  593. LoginBild(playerid);
  594. PlayAudioStreamForPlayer(playerid,"http://roleofgerman.bplaced.net/Musik/Horror.mp3");
  595. GetPlayerName(playerid, Loginname, sizeof(Loginname));
  596. SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wird nach einen Account in der Datenbank gesucht]");
  597. SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wurde {FF0005}Kein{0005FF} Account mit diesen Namen gefunden]");
  598. new login[MAX_PLAYER_NAME];
  599. GetPlayerName(playerid, login, sizeof(login));
  600. format(string, sizeof(string), "{FAFAFA}Hallo und Herzlich Willkommen %s {FAFAFA}Auf {D70000}Day of Z\n{FAFAFA}Wie wir sehen besitzen sie noch kein Account bei uns?\n{FAFAFA}Um bei uns Spielen zu können müssen sie sich Registrieren",Loginname,playerid,GetPlayerPing(playerid));
  601. ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account",string,"Registrieren","Beenden");
  602. }
  603. return 1;
  604. }
  605.  
  606. public OnPlayerConnect(playerid)
  607. {
  608. SetTimerEx("Timer2",1000,1,"i",playerid);
  609.  
  610. NoFuel[playerid] = 0;
  611. gGas[playerid] = 0;
  612. pInfo[playerid][Backpack] = 0;
  613. SetPlayerVirtualWorld(playerid,0);
  614. Einlatungstimer[playerid] = 0;
  615. pInfo[playerid][SpielerSpawn] = 0;
  616. pInfo[playerid][Admin] = 0;
  617. pInfo[playerid][pSkin] = 37;
  618. pInfo[playerid][pGeld] = 0;
  619. pInfo[playerid][pInfoos] = 0;
  620. pInfo[playerid][pKills] = 0;
  621. pInfo[playerid][pBlood] = 12000;
  622. pInfo[playerid][pBloodCounter] = 0;
  623.  
  624. DrawLogin1[playerid] = CreatePlayerTextDraw(playerid,0.000000, 1.000000, "_");
  625. PlayerTextDrawBackgroundColor(playerid,DrawLogin1[playerid] , 255);
  626. PlayerTextDrawFont(playerid,DrawLogin1[playerid] , 1);
  627. PlayerTextDrawLetterSize(playerid,DrawLogin1[playerid] , 0.500000, 12.000000);
  628. PlayerTextDrawColor(playerid,DrawLogin1[playerid] , -1);
  629. PlayerTextDrawSetOutline(playerid,DrawLogin1[playerid] , 0);
  630. PlayerTextDrawSetProportional(playerid,DrawLogin1[playerid] , 1);
  631. PlayerTextDrawSetShadow(playerid,DrawLogin1[playerid] , 1);
  632. PlayerTextDrawUseBox(playerid,DrawLogin1[playerid] , 1);
  633. PlayerTextDrawBoxColor(playerid,DrawLogin1[playerid] , 102);
  634. PlayerTextDrawTextSize(playerid,DrawLogin1[playerid] , 651.000000, 0.000000);
  635.  
  636. DrawLogin2[playerid] = CreatePlayerTextDraw(playerid,0.000000, 320.000000, "_");
  637. PlayerTextDrawBackgroundColor(playerid,DrawLogin2[playerid] , 255);
  638. PlayerTextDrawFont(playerid,DrawLogin2[playerid] , 1);
  639. PlayerTextDrawLetterSize(playerid,DrawLogin2[playerid] , 0.500000, 15.000000);
  640. PlayerTextDrawColor(playerid,DrawLogin2[playerid] , -1);
  641. PlayerTextDrawSetOutline(playerid,DrawLogin2[playerid] , 0);
  642. PlayerTextDrawSetProportional(playerid,DrawLogin2[playerid] , 1);
  643. PlayerTextDrawSetShadow(playerid,DrawLogin2[playerid] , 1);
  644. PlayerTextDrawUseBox(playerid,DrawLogin2[playerid] , 1);
  645. PlayerTextDrawBoxColor(playerid,DrawLogin2[playerid] , 102);
  646. PlayerTextDrawTextSize(playerid,DrawLogin2[playerid] , 640.000000, 0.000000);
  647.  
  648. DrawLogin3[playerid] = CreatePlayerTextDraw(playerid,515.000000, 112.000000, "_");
  649. PlayerTextDrawBackgroundColor(playerid,DrawLogin3[playerid] , 255);
  650. PlayerTextDrawFont(playerid,DrawLogin3[playerid] , 1);
  651. PlayerTextDrawLetterSize(playerid,DrawLogin3[playerid] , 0.500000, 22.799999);
  652. PlayerTextDrawColor(playerid,DrawLogin3[playerid] , -1);
  653. PlayerTextDrawSetOutline(playerid,DrawLogin3[playerid] , 0);
  654. PlayerTextDrawSetProportional(playerid,DrawLogin3[playerid] , 1);
  655. PlayerTextDrawSetShadow(playerid,DrawLogin3[playerid] , 1);
  656. PlayerTextDrawUseBox(playerid,DrawLogin3[playerid] , 1);
  657. PlayerTextDrawBoxColor(playerid,DrawLogin3[playerid] , 102);
  658. PlayerTextDrawTextSize(playerid,DrawLogin3[playerid] , 650.000000, 20.000000);
  659.  
  660. DrawLogin4[playerid] = CreatePlayerTextDraw(playerid,329.000000, 276.000000, "Herzlich Willkommen auf~n~~r~ Day of Z");
  661. PlayerTextDrawBackgroundColor(playerid,DrawLogin4[playerid] , 255);
  662. PlayerTextDrawFont(playerid,DrawLogin4[playerid] , 1);
  663. PlayerTextDrawLetterSize(playerid,DrawLogin4[playerid] , 0.370000, 2.199999);
  664. PlayerTextDrawColor(playerid,DrawLogin4[playerid] , -1);
  665. PlayerTextDrawSetOutline(playerid,DrawLogin4[playerid] , 1);
  666. PlayerTextDrawSetProportional(playerid,DrawLogin4[playerid] , 1);
  667.  
  668. DrawLogin5[playerid] = CreatePlayerTextDraw(playerid,198.000000, 370.000000, "Der auf NPC Basierte Zombie Server (DayZ)");
  669. PlayerTextDrawBackgroundColor(playerid,DrawLogin5[playerid] , 255);
  670. PlayerTextDrawFont(playerid,DrawLogin5[playerid] , 1);
  671. PlayerTextDrawLetterSize(playerid,DrawLogin5[playerid] , 0.300000, 2.000000);
  672. PlayerTextDrawColor(playerid,DrawLogin5[playerid] , -1);
  673. PlayerTextDrawSetOutline(playerid,DrawLogin5[playerid] , 0);
  674. PlayerTextDrawSetProportional(playerid,DrawLogin5[playerid] , 1);
  675. PlayerTextDrawSetShadow(playerid,DrawLogin5[playerid] , 1);
  676.  
  677. DrawLogin6[playerid] = CreatePlayerTextDraw(playerid,543.000000, 142.000000, "Spieler ~g~Online ~r~0~n~~w~ Mit ~y~Zombies");
  678. PlayerTextDrawBackgroundColor(playerid,DrawLogin6[playerid] , 255);
  679. PlayerTextDrawFont(playerid,DrawLogin6[playerid] , 1);
  680. PlayerTextDrawLetterSize(playerid,DrawLogin6[playerid] , 0.250000, 1.200000);
  681. PlayerTextDrawColor(playerid,DrawLogin6[playerid] , -1);
  682. PlayerTextDrawSetOutline(playerid,DrawLogin6[playerid] , 0);
  683. PlayerTextDrawSetProportional(playerid,DrawLogin6[playerid] , 1);
  684. PlayerTextDrawSetShadow(playerid,DrawLogin6[playerid] , 1);
  685.  
  686. DrawLogin7[playerid] = CreatePlayerTextDraw(playerid,196.000000, 393.000000, "Version ~r~0.1 ~y~Alpha");
  687. PlayerTextDrawBackgroundColor(playerid,DrawLogin7[playerid] , 255);
  688. PlayerTextDrawFont(playerid,DrawLogin7[playerid] , 1);
  689. PlayerTextDrawLetterSize(playerid,DrawLogin7[playerid] , 0.720000, 3.500000);
  690. PlayerTextDrawColor(playerid,DrawLogin7[playerid] , -1);
  691. PlayerTextDrawSetOutline(playerid,DrawLogin7[playerid] , 1);
  692. PlayerTextDrawSetProportional(playerid,DrawLogin7[playerid] , 1);
  693.  
  694. DrawIntro1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
  695. PlayerTextDrawBackgroundColor(playerid,DrawIntro1[playerid], 255);
  696. PlayerTextDrawFont(playerid,DrawIntro1[playerid], 1);
  697. PlayerTextDrawLetterSize(playerid,DrawIntro1[playerid], 0.500000, 8.000000);
  698. PlayerTextDrawColor(playerid,DrawIntro1[playerid], -1);
  699. PlayerTextDrawSetOutline(playerid,DrawIntro1[playerid], 0);
  700. PlayerTextDrawSetProportional(playerid,DrawIntro1[playerid], 1);
  701. PlayerTextDrawSetShadow(playerid,DrawIntro1[playerid], 1);
  702. PlayerTextDrawUseBox(playerid,DrawIntro1[playerid], 1);
  703. PlayerTextDrawBoxColor(playerid,DrawIntro1[playerid], -1);
  704. PlayerTextDrawTextSize(playerid,DrawIntro1[playerid], 480.000000, 0.000000);
  705.  
  706. DrawIntro2[playerid] = CreatePlayerTextDraw(playerid,260.000000, 339.000000, "Die Einleitung");
  707. PlayerTextDrawBackgroundColor(playerid,DrawIntro2[playerid], 255);
  708. PlayerTextDrawFont(playerid,DrawIntro2[playerid], 1);
  709. PlayerTextDrawLetterSize(playerid,DrawIntro2[playerid], 0.500000, 1.000000);
  710. PlayerTextDrawColor(playerid,DrawIntro2[playerid], -65281);
  711. PlayerTextDrawSetOutline(playerid,DrawIntro2[playerid], 1);
  712. PlayerTextDrawSetProportional(playerid,DrawIntro2[playerid], 1);
  713.  
  714. DrawIntro3[playerid] = CreatePlayerTextDraw(playerid,186.000000, 355.000000, "Die Registration war erfolgreich. Bevor du nun aber Spielen~n~kannst. kommt eine kleine Einleitung wo wir dir ein paar");
  715. PlayerTextDrawBackgroundColor(playerid,DrawIntro3[playerid], -1);
  716. PlayerTextDrawFont(playerid,DrawIntro3[playerid], 1);
  717. PlayerTextDrawLetterSize(playerid,DrawIntro3[playerid], 0.280000, 1.000000);
  718. PlayerTextDrawColor(playerid,DrawIntro3[playerid], 255);
  719. PlayerTextDrawSetOutline(playerid,DrawIntro3[playerid], 0);
  720. PlayerTextDrawSetProportional(playerid,DrawIntro3[playerid], 1);
  721. PlayerTextDrawSetShadow(playerid,DrawIntro3[playerid], 1);
  722.  
  723. DrawIntro4[playerid] = CreatePlayerTextDraw(playerid,181.000000, 373.000000, "Dinge ueber den Server erklaeren und zeigen wollen.~n~Wir sind ein Survival Server wo man ums Nacke ueberleben");
  724. PlayerTextDrawBackgroundColor(playerid,DrawIntro4[playerid], -1);
  725. PlayerTextDrawFont(playerid,DrawIntro4[playerid], 1);
  726. PlayerTextDrawLetterSize(playerid,DrawIntro4[playerid], 0.300000, 1.000000);
  727. PlayerTextDrawColor(playerid,DrawIntro4[playerid], 255);
  728. PlayerTextDrawSetOutline(playerid,DrawIntro4[playerid], 0);
  729. PlayerTextDrawSetProportional(playerid,DrawIntro4[playerid], 1);
  730. PlayerTextDrawSetShadow(playerid,DrawIntro4[playerid], 1);
  731.  
  732. DrawIntro5[playerid] = CreatePlayerTextDraw(playerid,171.000000, 390.000000, "Kaempft. Ob nun gegen Zombies oder gegen Anderen Spielern~n~Vertraue niemanden die Gefahr kann an jeder Ecke lauern");
  733. PlayerTextDrawBackgroundColor(playerid,DrawIntro5[playerid], -1);
  734. PlayerTextDrawFont(playerid,DrawIntro5[playerid], 1);
  735. PlayerTextDrawLetterSize(playerid,DrawIntro5[playerid], 0.300000, 1.000000);
  736. PlayerTextDrawColor(playerid,DrawIntro5[playerid], 255);
  737. PlayerTextDrawSetOutline(playerid,DrawIntro5[playerid], 0);
  738. PlayerTextDrawSetProportional(playerid,DrawIntro5[playerid], 1);
  739. PlayerTextDrawSetShadow(playerid,DrawIntro5[playerid], 1);
  740.  
  741. DrawIntroSuche1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
  742. PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche1[playerid], 255);
  743. PlayerTextDrawFont(playerid,DrawIntroSuche1[playerid], 1);
  744. PlayerTextDrawLetterSize(playerid,DrawIntroSuche1[playerid], 0.500000, 8.000000);
  745. PlayerTextDrawColor(playerid,DrawIntroSuche1[playerid], -1);
  746. PlayerTextDrawSetOutline(playerid,DrawIntroSuche1[playerid], 0);
  747. PlayerTextDrawSetProportional(playerid,DrawIntroSuche1[playerid], 1);
  748. PlayerTextDrawSetShadow(playerid,DrawIntroSuche1[playerid], 1);
  749. PlayerTextDrawUseBox(playerid,DrawIntroSuche1[playerid], 1);
  750. PlayerTextDrawBoxColor(playerid,DrawIntroSuche1[playerid], -1);
  751. PlayerTextDrawTextSize(playerid,DrawIntroSuche1[playerid], 480.000000, 0.000000);
  752.  
  753. DrawIntroSuche2[playerid] = CreatePlayerTextDraw(playerid,260.000000, 339.000000, "Gegenstaende");
  754. PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche2[playerid], 255);
  755. PlayerTextDrawFont(playerid,DrawIntroSuche2[playerid], 1);
  756. PlayerTextDrawLetterSize(playerid,DrawIntroSuche2[playerid], 0.500000, 1.000000);
  757. PlayerTextDrawColor(playerid,DrawIntroSuche2[playerid], -65281);
  758. PlayerTextDrawSetOutline(playerid,DrawIntroSuche2[playerid], 1);
  759. PlayerTextDrawSetProportional(playerid,DrawIntroSuche2[playerid], 1);
  760.  
  761. DrawIntroSuche3[playerid] = CreatePlayerTextDraw(playerid,186.000000, 355.000000, "Auf unseren Server findest du gegenstaende wie zb einen~n~Rucksack einen anderen Skin Waffen und vieles mehr schaue");
  762. PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche3[playerid], -1);
  763. PlayerTextDrawFont(playerid,DrawIntroSuche3[playerid], 1);
  764. PlayerTextDrawLetterSize(playerid,DrawIntroSuche3[playerid], 0.280000, 1.000000);
  765. PlayerTextDrawColor(playerid,DrawIntroSuche3[playerid], 255);
  766. PlayerTextDrawSetOutline(playerid,DrawIntroSuche3[playerid], 0);
  767. PlayerTextDrawSetProportional(playerid,DrawIntroSuche3[playerid], 1);
  768. PlayerTextDrawSetShadow(playerid,DrawIntroSuche3[playerid], 1);
  769.  
  770. DrawIntroSuche4[playerid] = CreatePlayerTextDraw(playerid,186.000000, 373.000000, "Dich einfach mal in ruhe um wer weiss was du alles so~n~Schoenes finden wirst schaue in jeder Ecke und gebaeude");
  771. PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche4[playerid], -1);
  772. PlayerTextDrawFont(playerid,DrawIntroSuche4[playerid], 1);
  773. PlayerTextDrawLetterSize(playerid,DrawIntroSuche4[playerid], 0.300000, 1.000000);
  774. PlayerTextDrawColor(playerid,DrawIntroSuche4[playerid], 255);
  775. PlayerTextDrawSetOutline(playerid,DrawIntroSuche4[playerid], 0);
  776. PlayerTextDrawSetProportional(playerid,DrawIntroSuche4[playerid], 1);
  777. PlayerTextDrawSetShadow(playerid,DrawIntroSuche4[playerid], 1);
  778.  
  779. DrawIntroZombie1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
  780. PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie1[playerid], 255);
  781. PlayerTextDrawFont(playerid,DrawIntroZombie1[playerid], 1);
  782. PlayerTextDrawLetterSize(playerid,DrawIntroZombie1[playerid], 0.500000, 8.000000);
  783. PlayerTextDrawColor(playerid,DrawIntroZombie1[playerid], -1);
  784. PlayerTextDrawSetOutline(playerid,DrawIntroZombie1[playerid], 0);
  785. PlayerTextDrawSetProportional(playerid,DrawIntroZombie1[playerid], 1);
  786. PlayerTextDrawSetShadow(playerid,DrawIntroZombie1[playerid], 1);
  787. PlayerTextDrawUseBox(playerid,DrawIntroZombie1[playerid], 1);
  788. PlayerTextDrawBoxColor(playerid,DrawIntroZombie1[playerid], -1);
  789. PlayerTextDrawTextSize(playerid,DrawIntroZombie1[playerid], 480.000000, 0.000000);
  790.  
  791. DrawIntroZombie2[playerid] = CreatePlayerTextDraw(playerid,260.000000, 339.000000, "Unsere Zombies");
  792. PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie2[playerid], 255);
  793. PlayerTextDrawFont(playerid,DrawIntroZombie2[playerid], 1);
  794. PlayerTextDrawLetterSize(playerid,DrawIntroZombie2[playerid], 0.500000, 1.000000);
  795. PlayerTextDrawColor(playerid,DrawIntroZombie2[playerid], -65281);
  796. PlayerTextDrawSetOutline(playerid,DrawIntroZombie2[playerid], 1);
  797. PlayerTextDrawSetProportional(playerid,DrawIntroZombie2[playerid], 1);
  798.  
  799. DrawIntroZombie3[playerid] = CreatePlayerTextDraw(playerid,186.000000, 355.000000, "Derzeit gibt es nur eine Zombie Art. im Laufe der Entwicklung~n~Wollen wir noch 1 bis 2 weitere Zombie Arten Einfuegen.");
  800. PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie3[playerid], -1);
  801. PlayerTextDrawFont(playerid,DrawIntroZombie3[playerid], 1);
  802. PlayerTextDrawLetterSize(playerid,DrawIntroZombie3[playerid], 0.280000, 1.000000);
  803. PlayerTextDrawColor(playerid,DrawIntroZombie3[playerid], 255);
  804. PlayerTextDrawSetOutline(playerid,DrawIntroZombie3[playerid], 0);
  805. PlayerTextDrawSetProportional(playerid,DrawIntroZombie3[playerid], 1);
  806. PlayerTextDrawSetShadow(playerid,DrawIntroZombie3[playerid], 1);
  807.  
  808. DrawIntroZombie4[playerid] = CreatePlayerTextDraw(playerid,186.000000, 373.000000, "Die Zombies sind sehr Stark wenn du gerade keine gute~n~Waffe bei dir hast gehe ihnen Lieber aus dem Weg");
  809. PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie4[playerid], -1);
  810. PlayerTextDrawFont(playerid,DrawIntroZombie4[playerid], 1);
  811. PlayerTextDrawLetterSize(playerid,DrawIntroZombie4[playerid], 0.300000, 1.000000);
  812. PlayerTextDrawColor(playerid,DrawIntroZombie4[playerid], 255);
  813. PlayerTextDrawSetOutline(playerid,DrawIntroZombie4[playerid], 0);
  814. PlayerTextDrawSetProportional(playerid,DrawIntroZombie4[playerid], 1);
  815. PlayerTextDrawSetShadow(playerid,DrawIntroZombie4[playerid], 1);
  816.  
  817. DrawIntroZombie5[playerid] = CreatePlayerTextDraw(playerid,187.000000, 390.000000, "Dein schlimmster Feind ist nicht der Zombie sondern~n~Andere Spieler pass bloss auf dich auf");
  818. PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie5[playerid], -1);
  819. PlayerTextDrawFont(playerid,DrawIntroZombie5[playerid], 1);
  820. PlayerTextDrawLetterSize(playerid,DrawIntroZombie5[playerid], 0.300000, 1.000000);
  821. PlayerTextDrawColor(playerid,DrawIntroZombie5[playerid], 255);
  822. PlayerTextDrawSetOutline(playerid,DrawIntroZombie5[playerid], 0);
  823. PlayerTextDrawSetProportional(playerid,DrawIntroZombie5[playerid], 1);
  824. PlayerTextDrawSetShadow(playerid,DrawIntroZombie5[playerid], 1);
  825.  
  826. DrawIntroEinkaufen1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
  827. PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen1[playerid], 255);
  828. PlayerTextDrawFont(playerid,DrawIntroEinkaufen1[playerid], 1);
  829. PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen1[playerid], 0.500000, 8.000000);
  830. PlayerTextDrawColor(playerid,DrawIntroEinkaufen1[playerid], -1);
  831. PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen1[playerid], 0);
  832. PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen1[playerid], 1);
  833. PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen1[playerid], 1);
  834. PlayerTextDrawUseBox(playerid,DrawIntroEinkaufen1[playerid], 1);
  835. PlayerTextDrawBoxColor(playerid,DrawIntroEinkaufen1[playerid], -1);
  836. PlayerTextDrawTextSize(playerid,DrawIntroEinkaufen1[playerid], 480.000000, 0.000000);
  837.  
  838. DrawIntroEinkaufen2[playerid] = CreatePlayerTextDraw(playerid,280.000000, 339.000000, "Einkaufen");
  839. PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen2[playerid], 255);
  840. PlayerTextDrawFont(playerid,DrawIntroEinkaufen2[playerid], 1);
  841. PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen2[playerid], 0.500000, 1.000000);
  842. PlayerTextDrawColor(playerid,DrawIntroEinkaufen2[playerid], -65281);
  843. PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen2[playerid], 1);
  844. PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen2[playerid], 1);
  845.  
  846. DrawIntroEinkaufen3[playerid] = CreatePlayerTextDraw(playerid,186.000000, 355.000000, "Wenn du mal Geld finden solltest kannst du dieses Verwenden~n~Um Einkaufen zu gehen. Es gibt sehr Viele laeden wo du etwas");
  847. PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen3[playerid], -1);
  848. PlayerTextDrawFont(playerid,DrawIntroEinkaufen3[playerid], 1);
  849. PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen3[playerid], 0.280000, 1.000000);
  850. PlayerTextDrawColor(playerid,DrawIntroEinkaufen3[playerid], 255);
  851. PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen3[playerid], 0);
  852. PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen3[playerid], 1);
  853. PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen3[playerid], 1);
  854.  
  855. DrawIntroEinkaufen4[playerid] = CreatePlayerTextDraw(playerid,186.000000, 373.000000, "Einkaufen kannst. du kannst zb Waffen wie Sniper und co~n~Kaufen und vieles mehr unsere Laeden werden auf der");
  856. PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen4[playerid], -1);
  857. PlayerTextDrawFont(playerid,DrawIntroEinkaufen4[playerid], 1);
  858. PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen4[playerid], 0.300000, 1.000000);
  859. PlayerTextDrawColor(playerid,DrawIntroEinkaufen4[playerid], 255);
  860. PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen4[playerid], 0);
  861. PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen4[playerid], 1);
  862. PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen4[playerid], 1);
  863.  
  864. DrawIntroEinkaufen5[playerid] = CreatePlayerTextDraw(playerid,187.000000, 390.000000, "Minimap mit einen Marker Markiert werden. ausserdem~n~kannst du Navigations Systeme finden oder auch karten");
  865. PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen5[playerid], -1);
  866. PlayerTextDrawFont(playerid,DrawIntroEinkaufen5[playerid], 1);
  867. PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen5[playerid], 0.300000, 1.000000);
  868. PlayerTextDrawColor(playerid,DrawIntroEinkaufen5[playerid], 255);
  869. PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen5[playerid], 0);
  870. PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen5[playerid], 1);
  871. PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen5[playerid], 1);
  872.  
  873. DrawIntroZonen1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
  874. PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen1[playerid], 255);
  875. PlayerTextDrawFont(playerid,DrawIntroZonen1[playerid], 1);
  876. PlayerTextDrawLetterSize(playerid,DrawIntroZonen1[playerid], 0.500000, 8.000000);
  877. PlayerTextDrawColor(playerid,DrawIntroZonen1[playerid], -1);
  878. PlayerTextDrawSetOutline(playerid,DrawIntroZonen1[playerid], 0);
  879. PlayerTextDrawSetProportional(playerid,DrawIntroZonen1[playerid], 1);
  880. PlayerTextDrawSetShadow(playerid,DrawIntroZonen1[playerid], 1);
  881. PlayerTextDrawUseBox(playerid,DrawIntroZonen1[playerid], 1);
  882. PlayerTextDrawBoxColor(playerid,DrawIntroZonen1[playerid], -1);
  883. PlayerTextDrawTextSize(playerid,DrawIntroZonen1[playerid], 480.000000, 0.000000);
  884.  
  885. DrawIntroZonen2[playerid] = CreatePlayerTextDraw(playerid,250.000000, 339.000000, "Die Zombie ~r~Zonen");
  886. PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen2[playerid], 255);
  887. PlayerTextDrawFont(playerid,DrawIntroZonen2[playerid], 1);
  888. PlayerTextDrawLetterSize(playerid,DrawIntroZonen2[playerid], 0.500000, 1.000000);
  889. PlayerTextDrawColor(playerid,DrawIntroZonen2[playerid], -65281);
  890. PlayerTextDrawSetOutline(playerid,DrawIntroZonen2[playerid], 1);
  891. PlayerTextDrawSetProportional(playerid,DrawIntroZonen2[playerid], 1);
  892.  
  893. DrawIntroZonen3[playerid] = CreatePlayerTextDraw(playerid,186.000000, 355.000000, "Derzeit findest du Zombies nur in den so genanten Zombie~n~Zonen Diese sind auf der Karte Leicht Rot Markiert wir werden");
  894. PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen3[playerid], -1);
  895. PlayerTextDrawFont(playerid,DrawIntroZonen3[playerid], 1);
  896. PlayerTextDrawLetterSize(playerid,DrawIntroZonen3[playerid], 0.280000, 1.000000);
  897. PlayerTextDrawColor(playerid,DrawIntroZonen3[playerid], 255);
  898. PlayerTextDrawSetOutline(playerid,DrawIntroZonen3[playerid], 0);
  899. PlayerTextDrawSetProportional(playerid,DrawIntroZonen3[playerid], 1);
  900. PlayerTextDrawSetShadow(playerid,DrawIntroZonen3[playerid], 1);
  901.  
  902. DrawIntroZonen4[playerid] = CreatePlayerTextDraw(playerid,186.000000, 373.000000, "Werden den Server aber immer weiter ausbauen das es~n~Noch viel mehr Zonen und co geben wird wie zb LS etc");
  903. PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen4[playerid], -1);
  904. PlayerTextDrawFont(playerid,DrawIntroZonen4[playerid], 1);
  905. PlayerTextDrawLetterSize(playerid,DrawIntroZonen4[playerid], 0.300000, 1.000000);
  906. PlayerTextDrawColor(playerid,DrawIntroZonen4[playerid], 255);
  907. PlayerTextDrawSetOutline(playerid,DrawIntroZonen4[playerid], 0);
  908. PlayerTextDrawSetProportional(playerid,DrawIntroZonen4[playerid], 1);
  909. PlayerTextDrawSetShadow(playerid,DrawIntroZonen4[playerid], 1);
  910.  
  911. DrawIntroZonen5[playerid] = CreatePlayerTextDraw(playerid,186.000000, 390.000000, "Einkaufslaeden wirst du nur in Zombie Zonen finden!~n~Du kannst auch Fahrzeuge finden diese koennen ueberall ~n~stehen");
  912. PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen5[playerid], -1);
  913. PlayerTextDrawFont(playerid,DrawIntroZonen5[playerid], 1);
  914. PlayerTextDrawLetterSize(playerid,DrawIntroZonen5[playerid], 0.300000, 1.000000);
  915. PlayerTextDrawColor(playerid,DrawIntroZonen5[playerid], 255);
  916. PlayerTextDrawSetOutline(playerid,DrawIntroZonen5[playerid], 0);
  917. PlayerTextDrawSetProportional(playerid,DrawIntroZonen5[playerid], 1);
  918. PlayerTextDrawSetShadow(playerid,DrawIntroZonen5[playerid], 1);
  919.  
  920. DrawKarte[playerid] = CreatePlayerTextDraw(playerid,36.000000, 333.000000, "~n~~n~ Keine Karte~n~~n~~n~");
  921. PlayerTextDrawBackgroundColor(playerid,DrawKarte[playerid], 255);
  922. PlayerTextDrawFont(playerid,DrawKarte[playerid], 1);
  923. PlayerTextDrawLetterSize(playerid,DrawKarte[playerid], 0.400000, 2.000000);
  924. PlayerTextDrawColor(playerid,DrawKarte[playerid], -1);
  925. PlayerTextDrawSetOutline(playerid,DrawKarte[playerid], 0);
  926. PlayerTextDrawSetProportional(playerid,DrawKarte[playerid], 1);
  927. PlayerTextDrawSetShadow(playerid,DrawKarte[playerid], 0);
  928. PlayerTextDrawUseBox(playerid,DrawKarte[playerid], 1);
  929. PlayerTextDrawBoxColor(playerid,DrawKarte[playerid], 255);
  930. PlayerTextDrawTextSize(playerid,DrawKarte[playerid], 139.000000, 0.000000);
  931.  
  932. StatsBoxDraw[playerid] = CreatePlayerTextDraw(playerid,495.000000, 125.000000, " ");
  933. PlayerTextDrawBackgroundColor(playerid,StatsBoxDraw[playerid], 255);
  934. PlayerTextDrawFont(playerid,StatsBoxDraw[playerid], 1);
  935. PlayerTextDrawLetterSize(playerid,StatsBoxDraw[playerid], 0.220000, 1.000000);
  936. PlayerTextDrawColor(playerid,StatsBoxDraw[playerid], -1);
  937. PlayerTextDrawSetOutline(playerid,StatsBoxDraw[playerid], 0);
  938. PlayerTextDrawSetProportional(playerid,StatsBoxDraw[playerid], 1);
  939. PlayerTextDrawSetShadow(playerid,StatsBoxDraw[playerid], 1);
  940. PlayerTextDrawUseBox(playerid,StatsBoxDraw[playerid], 1);
  941. PlayerTextDrawBoxColor(playerid,StatsBoxDraw[playerid], 102);
  942. PlayerTextDrawTextSize(playerid,StatsBoxDraw[playerid], 619.000000, 0.000000);
  943. return 1;
  944. }
  945.  
  946. public OnPlayerDisconnect(playerid, reason)
  947. {
  948. if(GetPVarInt(playerid,"Eingeloggt") == 1)
  949. {
  950. SpielerSpeichern(playerid);
  951. }
  952. return 1;
  953. }
  954.  
  955. public OnPlayerSpawn(playerid)
  956. {
  957. pInfo[playerid][pBlood]=12000;
  958. pInfo[playerid][pBloodCounter] = 0;
  959.  
  960.  
  961. if (pInfo[playerid][SpielerSpawn] == 0)// Zivi spawn
  962. {
  963. if(pInfo[playerid][Backpack] == 1)SetPlayerAttachedObject(playerid, 0, 3026, 1, -0.1150, -0.0540, 0.0040, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFF00FF00,0xFF00FF00),pInfo[playerid][Backpack] = 1;
  964.  
  965. SetPlayerWeather(playerid, 8);
  966. SetPlayerColor(playerid,WEIß);
  967. SetPlayerInterior(playerid,0);
  968. SetPlayerPos(playerid,234.7013,-327.7058,4.4332);
  969. }
  970. if(IsPlayerNPC(playerid)==1)
  971. {
  972. new botname[MAX_PLAYER_NAME];
  973. GetPlayerName(playerid,botname,sizeof(botname));
  974.  
  975. if(!strcmp(botname,"Zombie1",true))
  976. {
  977. SetPVarFloat(playerid, "Leben", 100.00);
  978. new string[128];
  979. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  980. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  981. SetPVarInt(playerid, "Label", _:label);
  982. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  983. SetPlayerPos(playerid,225.4074,-309.9428,1.6654);
  984. SetPlayerInterior(playerid,0);
  985. SetPlayerSkin(playerid,162);
  986. pInfo[playerid][pSkin] = 162;
  987.  
  988. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  989. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  990. return 1;
  991. }
  992. if(!strcmp(botname,"Zombie2",true))
  993. {
  994. SetPVarFloat(playerid, "Leben", 100.00);
  995. new string[128];
  996. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  997. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  998. SetPVarInt(playerid, "Label", _:label);
  999. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1000. SetPlayerPos(playerid,248.6878,-294.4554,1.5781);
  1001. SetPlayerInterior(playerid,0);
  1002. SetPlayerSkin(playerid,162);
  1003. pInfo[playerid][pSkin] = 162;
  1004.  
  1005. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1006. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1007. return 1;
  1008. }
  1009. if(!strcmp(botname,"Zombie3",true))
  1010. {
  1011. SetPVarFloat(playerid, "Leben", 100.00);
  1012. new string[128];
  1013. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1014. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1015. SetPVarInt(playerid, "Label", _:label);
  1016. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1017. SetPlayerPos(playerid,214.6445,-294.8065,1.5781);
  1018. SetPlayerInterior(playerid,0);
  1019. SetPlayerSkin(playerid,162);
  1020. pInfo[playerid][pSkin] = 162;
  1021.  
  1022. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1023. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1024. return 1;
  1025. }
  1026. if(!strcmp(botname,"Zombie4",true))
  1027. {
  1028. SetPVarFloat(playerid, "Leben", 100.00);
  1029. new string[128];
  1030. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1031. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1032. SetPVarInt(playerid, "Label", _:label);
  1033. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1034. SetPlayerPos(playerid,206.5808,-257.8216,1.5781);
  1035. SetPlayerInterior(playerid,0);
  1036. SetPlayerSkin(playerid,162);
  1037. pInfo[playerid][pSkin] = 162;
  1038.  
  1039. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1040. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1041. return 1;
  1042. }
  1043. if(!strcmp(botname,"Zombie5",true))
  1044. {
  1045. SetPVarFloat(playerid, "Leben", 100.00);
  1046. new string[128];
  1047. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1048. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1049. SetPVarInt(playerid, "Label", _:label);
  1050. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1051. SetPlayerPos(playerid,206.7704,-219.7235,1.5781);
  1052. SetPlayerInterior(playerid,0);
  1053. SetPlayerSkin(playerid,162);
  1054. pInfo[playerid][pSkin] = 162;
  1055.  
  1056. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1057. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1058. return 1;
  1059. }
  1060. if(!strcmp(botname,"Zombie6",true))
  1061. {
  1062. SetPVarFloat(playerid, "Leben", 100.00);
  1063. new string[128];
  1064. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1065. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1066. SetPVarInt(playerid, "Label", _:label);
  1067. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1068. SetPlayerPos(playerid,225.4640,-167.0452,1.5781);
  1069. SetPlayerInterior(playerid,0);
  1070. SetPlayerSkin(playerid,162);
  1071. pInfo[playerid][pSkin] = 162;
  1072.  
  1073. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1074. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1075. return 1;
  1076. }
  1077. if(!strcmp(botname,"Zombie7",true))
  1078. {
  1079. SetPVarFloat(playerid, "Leben", 100.00);
  1080. new string[128];
  1081. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1082. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1083. SetPVarInt(playerid, "Label", _:label);
  1084. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1085. SetPlayerPos(playerid,195.6428,-142.6589,1.5781);
  1086. SetPlayerInterior(playerid,0);
  1087. SetPlayerSkin(playerid,162);
  1088. pInfo[playerid][pSkin] = 162;
  1089.  
  1090. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1091. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1092. return 1;
  1093. }
  1094. if(!strcmp(botname,"Zombie8",true))
  1095. {
  1096. SetPVarFloat(playerid, "Leben", 100.00);
  1097. new string[128];
  1098. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1099. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1100. SetPVarInt(playerid, "Label", _:label);
  1101. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1102. SetPlayerPos(playerid,112.3033,-161.3937,1.5781);
  1103. SetPlayerInterior(playerid,0);
  1104. SetPlayerSkin(playerid,162);
  1105. pInfo[playerid][pSkin] = 162;
  1106.  
  1107. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1108. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1109. return 1;
  1110. }
  1111. if(!strcmp(botname,"Zombie9",true))
  1112. {
  1113. SetPVarFloat(playerid, "Leben", 100.00);
  1114. new string[128];
  1115. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1116. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1117. SetPVarInt(playerid, "Label", _:label);
  1118. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1119. SetPlayerPos(playerid,92.9945,-189.8757,1.4844);
  1120. SetPlayerInterior(playerid,0);
  1121. SetPlayerSkin(playerid,162);
  1122. pInfo[playerid][pSkin] = 162;
  1123.  
  1124. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1125. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1126. return 1;
  1127. }
  1128. if(!strcmp(botname,"Zombie10",true))
  1129. {
  1130. SetPVarFloat(playerid, "Leben", 100.00);
  1131. new string[128];
  1132. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1133. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1134. SetPVarInt(playerid, "Label", _:label);
  1135. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1136. SetPlayerPos(playerid,64.3029,-245.9500,1.5781);
  1137. SetPlayerInterior(playerid,0);
  1138. SetPlayerSkin(playerid,162);
  1139. pInfo[playerid][pSkin] = 162;
  1140.  
  1141. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1142. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1143. return 1;
  1144. }
  1145. if(!strcmp(botname,"Zombie11",true))
  1146. {
  1147. SetPVarFloat(playerid, "Leben", 100.00);
  1148. new string[128];
  1149. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1150. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1151. SetPVarInt(playerid, "Label", _:label);
  1152. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1153. SetPlayerPos(playerid,8.8393,-200.4476,1.5964);
  1154. SetPlayerInterior(playerid,0);
  1155. SetPlayerSkin(playerid,162);
  1156. pInfo[playerid][pSkin] = 162;
  1157.  
  1158. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1159. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1160. return 1;
  1161. }
  1162. if(!strcmp(botname,"Zombie12",true))
  1163. {
  1164. SetPVarFloat(playerid, "Leben", 100.00);
  1165. new string[128];
  1166. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1167. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1168. SetPVarInt(playerid, "Label", _:label);
  1169. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1170. SetPlayerPos(playerid,7.4880,-140.2628,0.6094);
  1171. SetPlayerInterior(playerid,0);
  1172. SetPlayerSkin(playerid,162);
  1173. pInfo[playerid][pSkin] = 162;
  1174.  
  1175. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1176. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1177. return 1;
  1178. }
  1179. if(!strcmp(botname,"Zombie13",true))
  1180. {
  1181. SetPVarFloat(playerid, "Leben", 100.00);
  1182. new string[128];
  1183. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1184. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1185. SetPVarInt(playerid, "Label", _:label);
  1186. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1187. SetPlayerPos(playerid,57.6965,-69.6877,0.6094);
  1188. SetPlayerInterior(playerid,0);
  1189. SetPlayerSkin(playerid,162);
  1190. pInfo[playerid][pSkin] = 162;
  1191.  
  1192. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1193. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1194. return 1;
  1195. }
  1196. if(!strcmp(botname,"Zombie14",true))
  1197. {
  1198. SetPVarFloat(playerid, "Leben", 100.00);
  1199. new string[128];
  1200. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1201. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1202. SetPVarInt(playerid, "Label", _:label);
  1203. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1204. SetPlayerPos(playerid,52.6945,-23.0894,1.8283);
  1205. SetPlayerInterior(playerid,0);
  1206. SetPlayerSkin(playerid,162);
  1207. pInfo[playerid][pSkin] = 162;
  1208.  
  1209. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1210. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1211. return 1;
  1212. }
  1213. if(!strcmp(botname,"Zombie15",true))
  1214. {
  1215. SetPVarFloat(playerid, "Leben", 100.00);
  1216. new string[128];
  1217. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1218. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1219. SetPVarInt(playerid, "Label", _:label);
  1220. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1221. SetPlayerPos(playerid,-0.3803,-34.9474,3.1172);
  1222. SetPlayerInterior(playerid,0);
  1223. SetPlayerSkin(playerid,162);
  1224. pInfo[playerid][pSkin] = 162;
  1225.  
  1226. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1227. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1228. return 1;
  1229. }
  1230. if(!strcmp(botname,"Zombie16",true))
  1231. {
  1232. SetPVarFloat(playerid, "Leben", 100.00);
  1233. new string[128];
  1234. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1235. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1236. SetPVarInt(playerid, "Label", _:label);
  1237. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1238. SetPlayerPos(playerid,-38.9299,-78.1145,3.1172);
  1239. SetPlayerInterior(playerid,0);
  1240. SetPlayerSkin(playerid,162);
  1241. pInfo[playerid][pSkin] = 162;
  1242.  
  1243. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1244. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1245. return 1;
  1246. }
  1247. if(!strcmp(botname,"Zombie17",true))
  1248. {
  1249. SetPVarFloat(playerid, "Leben", 100.00);
  1250. new string[128];
  1251. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1252. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1253. SetPVarInt(playerid, "Label", _:label);
  1254. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1255. SetPlayerPos(playerid,-92.9000,-100.6747,3.1181);
  1256. SetPlayerInterior(playerid,0);
  1257. SetPlayerSkin(playerid,162);
  1258. pInfo[playerid][pSkin] = 162;
  1259.  
  1260. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1261. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1262. return 1;
  1263. }
  1264. if(!strcmp(botname,"Zombie18",true))
  1265. {
  1266. SetPVarFloat(playerid, "Leben", 100.00);
  1267. new string[128];
  1268. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1269. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1270. SetPVarInt(playerid, "Label", _:label);
  1271. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1272. SetPlayerPos(playerid,-141.3604,-120.1706,3.1172);
  1273. SetPlayerInterior(playerid,0);
  1274. SetPlayerSkin(playerid,162);
  1275. pInfo[playerid][pSkin] = 162;
  1276.  
  1277. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1278. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1279. return 1;
  1280. }
  1281. if(!strcmp(botname,"Zombie19",true))
  1282. {
  1283. SetPVarFloat(playerid, "Leben", 100.00);
  1284. new string[128];
  1285. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1286. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1287. SetPVarInt(playerid, "Label", _:label);
  1288. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1289. SetPlayerPos(playerid,-138.3495,-74.3397,3.1172);
  1290. SetPlayerInterior(playerid,0);
  1291. SetPlayerSkin(playerid,162);
  1292. pInfo[playerid][pSkin] = 162;
  1293.  
  1294. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1295. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1296. return 1;
  1297. }
  1298. if(!strcmp(botname,"Zombie20",true))
  1299. {
  1300. SetPVarFloat(playerid, "Leben", 100.00);
  1301. new string[128];
  1302. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1303. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1304. SetPVarInt(playerid, "Label", _:label);
  1305. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1306. SetPlayerPos(playerid,-91.9414,-41.9167,6.4844);
  1307. SetPlayerInterior(playerid,0);
  1308. SetPlayerSkin(playerid,162);
  1309. pInfo[playerid][pSkin] = 162;
  1310.  
  1311. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1312. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1313. return 1;
  1314. }
  1315. if(!strcmp(botname,"Zombie21",true))
  1316. {
  1317. SetPVarFloat(playerid, "Leben", 100.00);
  1318. new string[128];
  1319. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1320. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1321. SetPVarInt(playerid, "Label", _:label);
  1322. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1323. SetPlayerPos(playerid,-62.4529,12.2733,3.1172);
  1324. SetPlayerInterior(playerid,0);
  1325. SetPlayerSkin(playerid,162);
  1326. pInfo[playerid][pSkin] = 162;
  1327.  
  1328. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1329. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1330. return 1;
  1331. }
  1332. if(!strcmp(botname,"Zombie22",true))
  1333. {
  1334. SetPVarFloat(playerid, "Leben", 100.00);
  1335. new string[128];
  1336. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1337. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1338. SetPVarInt(playerid, "Label", _:label);
  1339. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1340. SetPlayerPos(playerid,-30.9724,36.6740,3.1172);
  1341. SetPlayerInterior(playerid,0);
  1342. SetPlayerSkin(playerid,162);
  1343. pInfo[playerid][pSkin] = 162;
  1344.  
  1345. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1346. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1347. return 1;
  1348. }
  1349. if(!strcmp(botname,"Zombie23",true))
  1350. {
  1351. SetPVarFloat(playerid, "Leben", 100.00);
  1352. new string[128];
  1353. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1354. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1355. SetPVarInt(playerid, "Label", _:label);
  1356. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1357. SetPlayerPos(playerid,42.7041,62.0644,2.6169);
  1358. SetPlayerInterior(playerid,0);
  1359. SetPlayerSkin(playerid,162);
  1360. pInfo[playerid][pSkin] = 162;
  1361.  
  1362. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1363. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1364. return 1;
  1365. }
  1366. if(!strcmp(botname,"Zombie24",true))
  1367. {
  1368. SetPVarFloat(playerid, "Leben", 100.00);
  1369. new string[128];
  1370. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
  1371. label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
  1372. SetPVarInt(playerid, "Label", _:label);
  1373. Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
  1374. SetPlayerPos(playerid,152.5600,37.7162,1.8174);
  1375. SetPlayerInterior(playerid,0);
  1376. SetPlayerSkin(playerid,162);
  1377. pInfo[playerid][pSkin] = 162;
  1378.  
  1379. PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  1380. AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
  1381. return 1;
  1382. }
  1383. }
  1384. return 1;
  1385. }
  1386.  
  1387. public OnPlayerDeath(playerid, killerid, reason)
  1388. {
  1389. pInfo[playerid][Backpack] = 0;
  1390. pInfo[playerid][pKills] = 0;
  1391. return 1;
  1392. }
  1393.  
  1394. public OnVehicleSpawn(vehicleid)
  1395. {
  1396. if(VehicleDeathInfo[vehicleid])
  1397. {
  1398. VehicleDeathInfo[vehicleid] = 0;
  1399. SetVehicleHealth(vehicleid, 255);
  1400.  
  1401. new panels, doors, lights, tires;
  1402. GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
  1403. UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15);
  1404. }
  1405. return 1;
  1406. }
  1407.  
  1408. public OnVehicleDeath(vehicleid, killerid)
  1409. {
  1410. VehicleDeathInfo[vehicleid] = 1;
  1411. return 1;
  1412. }
  1413.  
  1414. public OnPlayerText(playerid, text[])
  1415. {
  1416. return 1;
  1417. }
  1418.  
  1419. public OnPlayerCommandText(playerid, cmdtext[])
  1420. {
  1421. new cmd[128], idx;
  1422. cmd = strtok(cmdtext, idx);
  1423. if(strcmp(cmd, "/npc", true) == 0)
  1424. {
  1425. new tmp[128];
  1426. tmp = strtok(cmdtext, idx);
  1427. if(strlen(tmp) > 0)
  1428. {
  1429. new npc = ConnectRNPC(tmp);
  1430. SetPVarString(npc, "NPCNAME", tmp);
  1431. SetPVarInt(npc, "NPCID", npc);
  1432. new string[128];
  1433. format(string,sizeof(string), "Bot wurde verbunden. (ID: %d | Name: %s)", npc, tmp);
  1434. print(string);
  1435. }
  1436. else
  1437. {
  1438. SendClientMessage(playerid, 0xFFFFFFFF, "/cnb [BOTNAME]");
  1439. }
  1440. return 1;
  1441. }
  1442. return 0;
  1443. }
  1444.  
  1445. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1446. {
  1447. if(gGas[playerid] == 1)
  1448. {
  1449. GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Auto Verlassen", 500, 3);
  1450. }
  1451. return 1;
  1452. }
  1453.  
  1454. public OnPlayerExitVehicle(playerid, vehicleid)
  1455. {
  1456. return 1;
  1457. }
  1458.  
  1459. public OnPlayerStateChange(playerid, newstate, oldstate)
  1460. {
  1461. return 1;
  1462. }
  1463.  
  1464. public OnPlayerEnterCheckpoint(playerid)
  1465. {
  1466. return 1;
  1467. }
  1468.  
  1469. public OnPlayerLeaveCheckpoint(playerid)
  1470. {
  1471. return 1;
  1472. }
  1473.  
  1474. public OnPlayerEnterRaceCheckpoint(playerid)
  1475. {
  1476. return 1;
  1477. }
  1478.  
  1479. public OnPlayerLeaveRaceCheckpoint(playerid)
  1480. {
  1481. return 1;
  1482. }
  1483.  
  1484. public OnRconCommand(cmd[])
  1485. {
  1486. return 1;
  1487. }
  1488.  
  1489. public OnPlayerRequestSpawn(playerid)
  1490. {
  1491. return 1;
  1492. }
  1493.  
  1494. public OnObjectMoved(objectid)
  1495. {
  1496. return 1;
  1497. }
  1498.  
  1499. public OnPlayerObjectMoved(playerid, objectid)
  1500. {
  1501. return 1;
  1502. }
  1503.  
  1504. public OnPlayerPickUpPickup(playerid, pickupid)
  1505. {
  1506. if(IsPlayerInRangeOfPoint(playerid, 2.0, 198.2905,-226.7606,1.7786)) //rucksack 1
  1507. {
  1508. if(pInfo[playerid][Backpack] == 1)
  1509. {
  1510. SendClientMessage(playerid,GRAU,"Du hast bereits einen Rucksack!");
  1511. return 1;
  1512. }
  1513. pInfo[playerid][Backpack] = 1;
  1514. SetPlayerAttachedObject(playerid, 0, 3026, 1, -0.1150, -0.0540, 0.0040, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000, 0xFF00FF00,0xFF00FF00);
  1515. DestroyPickup(Rucksack1);
  1516. }
  1517. return 1;
  1518. }
  1519.  
  1520. public OnVehicleMod(playerid, vehicleid, componentid)
  1521. {
  1522. return 1;
  1523. }
  1524.  
  1525. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  1526. {
  1527. return 1;
  1528. }
  1529.  
  1530. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  1531. {
  1532. return 1;
  1533. }
  1534.  
  1535. public OnPlayerSelectedMenuRow(playerid, row)
  1536. {
  1537. return 1;
  1538. }
  1539.  
  1540. public OnPlayerExitedMenu(playerid)
  1541. {
  1542. return 1;
  1543. }
  1544.  
  1545. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1546. {
  1547. return 1;
  1548. }
  1549.  
  1550. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1551. {
  1552. return 1;
  1553. }
  1554.  
  1555. public OnRconLoginAttempt(ip[], password[], success)
  1556. {
  1557. return 1;
  1558. }
  1559.  
  1560. public OnPlayerUpdate(playerid)
  1561. {
  1562. new curweapon = GetPlayerWeapon(playerid);
  1563. new curammo = GetPlayerAmmo(playerid);
  1564. if(curweapon == GetPVarInt(playerid, "CurWeapon"))
  1565. {
  1566. if(curammo != GetPVarInt(playerid, "curammo"))
  1567. {
  1568. if(curammo < GetPVarInt(playerid, "curammo"))
  1569. {
  1570. OnPlayerShoot(playerid, curweapon);
  1571.  
  1572. }
  1573. SetPVarInt(playerid, "curammo", curammo);
  1574. }
  1575. }
  1576. else
  1577. {
  1578. SetPVarInt(playerid, "CurWeapon", curweapon);
  1579. }
  1580. return 1;
  1581. }
  1582.  
  1583. public OnPlayerStreamIn(playerid, forplayerid)
  1584. {
  1585. if(IsPlayerNPC(playerid)==0)
  1586. {
  1587. if(IsPlayerNPC(forplayerid)==1)
  1588. {
  1589. SetPVarInt(forplayerid, "SpielerInReichweite", GetPVarInt(forplayerid, "SpielerInReichweite") + 1);
  1590. if(GetPVarInt(forplayerid, "SpielerInReichweite") == 1)
  1591. {
  1592. new tid = SetTimerEx("zombietimer1",1000,true,"i",forplayerid);
  1593. SetPVarInt(forplayerid, "zombietimer1ID", tid);
  1594. }
  1595. }
  1596. }
  1597. return 1;
  1598. }
  1599.  
  1600. public OnPlayerStreamOut(playerid, forplayerid)
  1601. {
  1602. if(IsPlayerNPC(playerid)==0)
  1603. {
  1604. if(IsPlayerNPC(forplayerid)==1)
  1605. {
  1606. SetPVarInt(forplayerid, "SpielerInReichweite", GetPVarInt(forplayerid, "SpielerInReichweite") - 1);
  1607. if(GetPVarInt(forplayerid, "SpielerInReichweite") == 0)
  1608. {
  1609. KillTimer(GetPVarInt(playerid, "zombietimer1ID"));
  1610. }
  1611. }
  1612. }
  1613.  
  1614. }
  1615.  
  1616. public OnVehicleStreamIn(vehicleid, forplayerid)
  1617. {
  1618. return 1;
  1619. }
  1620.  
  1621. public OnVehicleStreamOut(vehicleid, forplayerid)
  1622. {
  1623. return 1;
  1624. }
  1625.  
  1626. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1627. {
  1628. if(dialogid == DIALOG_TUTSTARTEN)
  1629. {
  1630. if(response == 1)
  1631. {
  1632. pInfo[playerid][pInfoos] = 1;
  1633. SendClientMessage(playerid,GRUN,"Account wurde Erstellt bevor der Account gespeichert wird.");
  1634. SendClientMessage(playerid,GRUN,"Kommt noch ein kleines Tutorial über dem Server!");
  1635. Einlatungstimer[playerid] += 1;
  1636. }
  1637. }
  1638. if(dialogid==DIALOG_LOGIN)
  1639. {
  1640. if(response==0)
  1641. {
  1642. SendClientMessage(playerid,WEIß,"Du hast den Vorang Beendet");
  1643. SendClientMessage(playerid,WEIß,"Wir wünschen dir noch einen schönen Tag");
  1644. Kick(playerid);
  1645. return 1;
  1646. }
  1647. if(response==1)
  1648. {
  1649. if(!strlen(inputtext))
  1650. {
  1651. SendClientMessage(playerid,ROT,"Dein Passwort war leider Falsch!");
  1652. SendClientMessage(playerid,ROT,"Bitte versuche es nocheinmal");
  1653. SendClientMessage(playerid,ROT,"Probleme mit dein Passwort Melde dich im Forum / Ts3");
  1654. SendClientMessage(playerid,ROT,"Und melde dich bei einen Admin.");
  1655. new login[MAX_PLAYER_NAME];
  1656. new string[250];
  1657. GetPlayerName(playerid, login, sizeof(login));
  1658. format(string, sizeof(string), "{FF9600}%s {FAFAFA}Dein Passwort war {FF2800}Falsch{FAFAFA}\n\nBitte versuche es nocheinmal", login);
  1659. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",string,"Login","Abbrechen");
  1660. return 1;
  1661. }
  1662. else
  1663. {
  1664. PlayerTextDrawHide(playerid,DrawLogin1[playerid]);
  1665. PlayerTextDrawHide(playerid,DrawLogin2[playerid]);
  1666. PlayerTextDrawHide(playerid,DrawLogin3[playerid]);
  1667. PlayerTextDrawHide(playerid,DrawLogin4[playerid]);
  1668. PlayerTextDrawHide(playerid,DrawLogin5[playerid]);
  1669. PlayerTextDrawHide(playerid,DrawLogin6[playerid]);
  1670. PlayerTextDrawHide(playerid,DrawLogin7[playerid]);
  1671.  
  1672. Einloggen(playerid,inputtext);
  1673. return 1;
  1674. }
  1675. }
  1676. }
  1677. if(dialogid==DIALOG_REGISTER)
  1678. {
  1679. if(response==0)
  1680. {
  1681. SendClientMessage(playerid,WEIß,"Du hast den Vorang Beendet");
  1682. SendClientMessage(playerid,WEIß,"Wir wünschen dir noch einen schönen Tag");
  1683. Kick(playerid);
  1684. return 1;
  1685. }
  1686. if(response==1)
  1687. {
  1688. if(!strlen(inputtext))
  1689. {
  1690. SendClientMessage(playerid,ROT,"Bitt versuch es noch einmal.");
  1691. SendClientMessage(playerid,ROT,"Dein Passwort war leider nicht lang genug.");
  1692. new login[MAX_PLAYER_NAME];
  1693. new string[228];
  1694. GetPlayerName(playerid, login, sizeof(login));
  1695. format(string, sizeof(string), "{FAFAFA}Wiederholung, Geben sie bitte erneut das Passwort ein.\nKleiner hinweis: am besten das passwort besteht aus Wörtern und Zahlen.");
  1696. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Benutzerregistration",string,"Erstellen","Abbrechen");
  1697. return 1;
  1698. }
  1699. else
  1700. {
  1701. Accounterstellen(playerid,inputtext);
  1702. return 1;
  1703. }
  1704. }
  1705. }
  1706. if(dialogid==DIALOG_REG)
  1707. {
  1708. if(response==0)
  1709. {
  1710. SendClientMessage(playerid,WEIß,"Du hast auf Beenden gedrückt");
  1711. SendClientMessage(playerid,WEIß,"Wir wünschen dir noch einen schönen Tag");
  1712. Kick(playerid);
  1713. }
  1714. if(response==1)
  1715. {
  1716. PlayerTextDrawHide(playerid,DrawLogin4[playerid]);
  1717. PlayerTextDrawHide(playerid,DrawLogin5[playerid]);
  1718. PlayerTextDrawHide(playerid,DrawLogin6[playerid]);
  1719. PlayerTextDrawHide(playerid,DrawLogin7[playerid]);
  1720.  
  1721. new login[MAX_PLAYER_NAME];
  1722. new string[250];
  1723. LoginBild(playerid);
  1724. GetPlayerName(playerid, login, sizeof(login));
  1725. format(string, sizeof(string), "{FFBE00}%s {FAFAFA}Bitte gebe hier dein zukünftiges Passwort ein!\n\n{FAFAFA}Danach klicke bitte auf Erstellen", login);
  1726. ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Benutzerregistration",string,"Erstellen","Beenden");
  1727. }
  1728. }
  1729. return 1;
  1730. }
  1731.  
  1732. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1733. {
  1734. return 1;
  1735. }
  1736.  
  1737. stock Accounterstellen(playerid,key[])
  1738. {
  1739. new SpielerDatei[128];
  1740. new name[MAX_PLAYER_NAME];
  1741. GetPlayerName(playerid,name,sizeof(name));
  1742. format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
  1743. dini_Create(SpielerDatei);
  1744. dini_Set(SpielerDatei,"Passwort",key);
  1745. SetPlayerScore(playerid,0);
  1746. SetPVarInt(playerid,"Eingeloggt",1);
  1747. SetCameraBehindPlayer(playerid);
  1748. pInfo[playerid][SpielerSpawn] = 0;
  1749. dini_IntSet(SpielerDatei,"Admin",0);
  1750.  
  1751. SetPlayerSkin(playerid,37);
  1752. pInfo[playerid][pSkin] = 37;
  1753.  
  1754. SpawnPlayer(playerid);
  1755.  
  1756. PlayerTextDrawHide(playerid,DrawLogin1[playerid]);
  1757. PlayerTextDrawHide(playerid,DrawLogin2[playerid]);
  1758. PlayerTextDrawHide(playerid,DrawLogin3[playerid]);
  1759. PlayerTextDrawHide(playerid,DrawLogin4[playerid]);
  1760. PlayerTextDrawHide(playerid,DrawLogin5[playerid]);
  1761. PlayerTextDrawHide(playerid,DrawLogin6[playerid]);
  1762. PlayerTextDrawHide(playerid,DrawLogin7[playerid]);
  1763. StopAudioStreamForPlayer(playerid);
  1764. ShowPlayerDialog(playerid,DIALOG_TUTSTARTEN,DIALOG_STYLE_MSGBOX,"{EBFF00}Script","{FAFAFA}Dieses Script ist ein Selfmade von Ronny Schulz.\nEs handelt sich um ein auf NPC Basiertes Zombie Script\n\nSolltest du hilfe brauchen schaue unter /hilfe oder schreibe /report","Weiter","");
  1765. return 1;
  1766. }
  1767.  
  1768. stock Einloggen(playerid,key[])
  1769. {
  1770. new SpielerDatei[128];
  1771. new name[MAX_PLAYER_NAME];
  1772. GetPlayerName(playerid,name,sizeof(name));
  1773. format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
  1774. if(!strcmp(key,dini_Get(SpielerDatei,"Passwort"),false))
  1775. {
  1776. StopAudioStreamForPlayer(playerid);
  1777. pInfo[playerid][pInfoos] = 1;
  1778. PlayerTextDrawShow(playerid,StatsBoxDraw[playerid]);
  1779. SendClientMessage(playerid,GRUN2,"Erfolgreich Eingeloggt.");
  1780. AccountLaden(playerid);
  1781. SpawnPlayer(playerid);
  1782. SetCameraBehindPlayer(playerid);
  1783. SpawnPlayer(playerid);
  1784. if (pInfo[playerid][Admin] > 0)
  1785. {
  1786. new text1[50]; new string6[228];
  1787. if(pInfo[playerid][Admin] == 1) { text1 = "Supporter"; }
  1788. else if(pInfo[playerid][Admin] == 2) { text1 = "Admin"; }
  1789. format(string6, sizeof(string6), "{FF8A05}Server:{F7F7F7} Du bist mit dem Adminrang '{CC0404}%s{F7F7F7}' eingeloggt.",text1);
  1790. SendClientMessage(playerid, WEIß,string6);
  1791. }
  1792. }
  1793. else
  1794. {
  1795. SendClientMessage(playerid,GRUN,"Du hast ein falsches Passwort eingegeben!");
  1796. ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Dein Account wurde in unserer Datenbank gefunden!\nBitte gib nun dein Passwort ein! ","Login", "Abbrechen");
  1797. }
  1798. return 1;
  1799. }
  1800.  
  1801. stock AccountLaden(playerid)
  1802. {
  1803. new SpielerDatei[128];
  1804. new name[MAX_PLAYER_NAME];
  1805. GetPlayerName(playerid,name,sizeof(name));
  1806. format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
  1807. pInfo[playerid][SpielerSpawn] = dini_Int(SpielerDatei,"Team");
  1808. pInfo[playerid][Admin] = dini_Int(SpielerDatei,"Admin");
  1809. pInfo[playerid][pSkin] = dini_Int(SpielerDatei,"Aussehen");
  1810. SetPlayerSkin(playerid, pInfo[playerid][pSkin]);
  1811. pInfo[playerid][pGeld] = dini_Int(SpielerDatei,"Geld");
  1812. GivePlayerMoney(playerid,dini_Int(SpielerDatei,"Geld"));
  1813. pInfo[playerid][pKills] = dini_Int(SpielerDatei,"Kills");
  1814. pInfo[playerid][Backpack] = dini_Int(SpielerDatei,"Rucksack");
  1815. SetPVarInt(playerid,"Eingeloggt",1);
  1816. return 1;
  1817. }
  1818.  
  1819. stock SpielerSpeichern(playerid)
  1820. {
  1821. if(GetPVarInt(playerid,"Eingeloggt") == 1)
  1822. {
  1823. new SpielerDatei[128];
  1824. new name[MAX_PLAYER_NAME];
  1825. GetPlayerName(playerid,name,sizeof(name));
  1826. format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
  1827. dini_IntSet(SpielerDatei,"SpawnSpieler",pInfo[playerid][SpielerSpawn]);
  1828. dini_IntSet(SpielerDatei, "Admin", pInfo[playerid][Admin]);
  1829. dini_IntSet(SpielerDatei,"Geld",GetPlayerMoney(playerid));
  1830. dini_IntSet(SpielerDatei, "Aussehen", pInfo[playerid][pSkin]);
  1831. dini_IntSet(SpielerDatei,"Geld", pInfo[playerid][pGeld]);
  1832. dini_IntSet(SpielerDatei,"Geld",GetPlayerMoney(playerid));
  1833. dini_IntSet(SpielerDatei, "Kills", pInfo[playerid][pKills]);
  1834. dini_IntSet(SpielerDatei, "Rucksack", pInfo[playerid][Backpack]);
  1835. }
  1836. }
  1837.  
  1838. ocmd:wetter(playerid,params[])
  1839. {
  1840. if(IsPlayerConnected(playerid))
  1841. {
  1842. if(pInfo[playerid][Admin] >= 1 || IsPlayerAdmin(playerid))
  1843. {
  1844. new idx; new tmp[256];
  1845. tmp = strtok(params, idx);
  1846. if(!strlen(tmp))
  1847. {
  1848. SendClientMessage(playerid, WEIß, "{FFD200}Benutzung:{FEFEFE} /wetter [Wetter ID]");
  1849. return 1;
  1850. }
  1851. new weather;
  1852. weather = strval(tmp);
  1853. if(weather < 0||weather > 45) { SendClientMessage(playerid, GRAU, "Wetter ID nicht weniger als 0 oder höher als 45 !"); return 1; }
  1854. SetWeather(weather);
  1855. SendClientMessage(playerid, GRUN, "Wetter Eingestellt!");
  1856. SendClientMessageToAll(HELLBLAU,"Die Wetter Fee hat das Wetter geändert");
  1857. }
  1858. }
  1859. return 1;
  1860. }
  1861.  
  1862. ocmd:makeadmin(playerid,params[])
  1863. {
  1864. if(pInfo[playerid][Admin] >= 2 || IsPlayerAdmin(playerid))
  1865. {
  1866. new string[256];
  1867. new idx, tmp[250];
  1868. new sendername[MAX_PLAYER_NAME];
  1869. new giveplayer[MAX_PLAYER_NAME];
  1870. tmp = strtok(params, idx);
  1871. if(!strlen(tmp))
  1872. {
  1873. SendClientMessage(playerid, WEIß, "{FFD200}Benutzung: {FEFEFE} /makeadmin [ID/Spielername] [Adminrang]");
  1874. return 1;
  1875. }
  1876. new para1 = ReturnUser(tmp);
  1877. tmp = strtok(params, idx);
  1878. new level = strval(tmp);
  1879. if(IsPlayerConnected(para1))
  1880. {
  1881. if(para1 != INVALID_PLAYER_ID)
  1882. {
  1883. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  1884. GetPlayerName(playerid, sendername, sizeof(sendername));
  1885. if(pInfo[para1][Admin] < level)
  1886. {
  1887. printf("Admin: %s hat %s zu einem Level %d Admin befördert.", sendername, giveplayer, level);
  1888. format(string, sizeof(string), "%s Hat %s Admin %d gegeben", sendername, level);
  1889. SendClientMessage(para1, GRUN, string);
  1890. format(string, sizeof(string), "Du hast %s Adminrang %d gegeben", giveplayer,level);
  1891. SendClientMessage(playerid, GRUN, string);
  1892. }
  1893. else
  1894. {
  1895. printf("Admin: %s hat %s den Adminrang %d Gegeben", sendername, giveplayer, level);
  1896. format(string, sizeof(string), "%s hat dir %d Adminrang gegeben", sendername, level);
  1897. SendClientMessage(para1, GRUN, string);
  1898. format(string, sizeof(string), "Du hast %s Den Adminrang %d gegeben", giveplayer,level);
  1899. SendClientMessage(playerid, GRUN, string);
  1900. }
  1901. pInfo[para1][Admin] = level;
  1902. }
  1903. }
  1904. }
  1905. return 1;
  1906. }
  1907.  
  1908. ocmd:veh(playerid,params[])
  1909. {
  1910. if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,0xFF1400FF,"Du bist kein Supporter");
  1911. new ModelID, color[2],Float:VehPos[4], vehicleid;
  1912. if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,0xB0AFB0FF,"Du Darfst nicht im Fahrzeug sein!");
  1913. if(sscanf(params, "ddd",ModelID,color[0],color[1])) return SendClientMessage(playerid,0xB0AFB0FF, "/veh [vehicleid] [color1] [color2]");
  1914. if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,0xB0AFB0FF, "Die Fahrzeug Id muss von 400 bis 611 sein");
  1915. if(isPlayerAnAdmin(playerid,3) || CallRemoteFunction("PlayerIsAnAdmin","i",playerid))
  1916. {
  1917. GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
  1918. GetPlayerFacingAngle(playerid, VehPos[3]);
  1919. vehicleid = CreateVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],-1);
  1920. LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
  1921. SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
  1922. PutPlayerInVehicle(playerid, vehicleid, 0);
  1923. }
  1924. return 1;
  1925. }
  1926.  
  1927. stock isPlayerAnAdmin(playerid,rang)
  1928. {
  1929. if(pInfo[playerid][Admin]>=rang)return 1;
  1930. return 0;
  1931. }
  1932.  
  1933. public LoginBild(playerid)
  1934. {
  1935. if(MehrereBilder[playerid] == 0)
  1936. {
  1937. switch(random(3))
  1938. {
  1939. case 0:
  1940. {
  1941. SetPlayerInterior(playerid,0);
  1942. SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
  1943. SetPlayerFacingAngle(playerid,114.9759);
  1944. SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
  1945. SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
  1946. }
  1947. case 1:
  1948. {
  1949. SetPlayerInterior(playerid,0);
  1950. SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
  1951. SetPlayerFacingAngle(playerid,114.9759);
  1952. SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
  1953. SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
  1954. }
  1955. default:
  1956. {
  1957. SetPlayerInterior(playerid,0);
  1958. SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
  1959. SetPlayerFacingAngle(playerid,114.9759);
  1960. SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
  1961. SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
  1962. }
  1963. }
  1964. }
  1965. else
  1966. {
  1967. SetPlayerInterior(playerid,0);
  1968. SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
  1969. SetPlayerFacingAngle(playerid,114.9759);
  1970. SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
  1971. SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
  1972. }
  1973. }
  1974.  
  1975. ocmd:tot(playerid,params[])
  1976. {
  1977. SetPlayerHealth(playerid,0);
  1978. return 1;
  1979. }
  1980.  
  1981. stock FreezePlayer(playerid)
  1982. {
  1983. TogglePlayerControllable(playerid,false);
  1984. }
  1985.  
  1986.  
  1987. stock UnFreezePlayer(playerid)
  1988. {
  1989. TogglePlayerControllable(playerid,true);
  1990. }
  1991.  
  1992. public ClearText(playerid,lines)
  1993. {
  1994. if(IsPlayerConnected(playerid) && lines > 0)
  1995. {
  1996. for(new l=0; l<lines; l++)
  1997. {
  1998. SendClientMessage(playerid,WEIß," ");
  1999. }
  2000. }
  2001. }
  2002.  
  2003. ocmd:regeln(playerid,params[])
  2004. {
  2005. ShowPlayerDialog(playerid,DIALOG_REGELN,DIALOG_STYLE_MSGBOX,"{EBFF00}Die Regeln.","{FAFAFA}1. Es wird keiner beleidigt.\n2. Cheaten ist Verboten trotz DM Server.\n3. Spawn Killen ist auch Verboten.\n4.Immer auf den Admins hören.\n5.Totparken Verboten.\n6.Sexuelle Themen sind hier Verboten.\n7.Keiner wird Bedroht.\n8.Werbung für sein Server machen ist Verboten\n\n{FF1C00}Sollte man sich nicht daran halten. könnte man mit einen ban|kick bestraft werden","Weiter","");
  2006. return 1;
  2007. }
  2008.  
  2009. public zombietimer1(playerid)
  2010. {
  2011. new Float:x, Float:y, Float:z;
  2012. if(GetPVarInt(playerid, "AufVerfolgung")==1)
  2013. {
  2014. GetPlayerPos(GetPVarInt(playerid, "VerfolgterSpieler"),x,y,z);
  2015. if(IsPlayerInRangeOfPoint(playerid, 20.0, x,y,z))
  2016. {
  2017. MoveRNPC(playerid, x,y,z, 0.004);
  2018. }
  2019. else
  2020. {
  2021. SetPVarInt(playerid, "AufVerfolgung", 0);
  2022. }
  2023. }
  2024. else
  2025. {
  2026. for(new i=0;i<MAX_PLAYERS;i++)
  2027. {
  2028. if(IsPlayerNPC(i)==0)
  2029. {
  2030. GetPlayerPos(i, x,y,z);
  2031. if(IsPlayerInRangeOfPoint(playerid, 20.0, x,y,z))
  2032. {
  2033. SetPVarInt(playerid, "AufVerfolgung", 1);
  2034. SetPVarInt(playerid, "VerfolgterSpieler", i);
  2035. MoveRNPC(playerid, x,y,z, 0.004);
  2036. break;
  2037. }
  2038. }
  2039.  
  2040. }
  2041. }
  2042.  
  2043. }
  2044.  
  2045. ocmd:givegun(playerid,params[])
  2046. {
  2047. if(IsPlayerConnected(playerid))
  2048. {
  2049. new idx, tmp[250];
  2050. tmp = strtok(params, idx);
  2051. if(!strlen(tmp))
  2052. {
  2053. SendClientMessage(playerid, WEIß, "{FFD200}Benutzung:{FEFEFE} /givegun [playerid] [Waffenid] [Munition]");
  2054. return 1;
  2055. }
  2056. new playa;
  2057. new gun;
  2058. new ammo;
  2059. playa = ReturnUser(tmp);
  2060. tmp = strtok(params, idx);
  2061. gun = strval(tmp);
  2062. if(!strlen(tmp))
  2063. {
  2064. SendClientMessage(playerid, WEIß, "{FFD200}Benutzung:{FEFEFE} /givegun [playerid] [Waffenid] [Munition]");
  2065. return 1;
  2066. }
  2067. tmp = strtok(params, idx);
  2068. ammo = strval(tmp);
  2069. if(ammo <1||ammo > 15000)
  2070. { SendClientMessage(playerid, GRAU, " Nicht unter 1 und nicht über 15000 Munition!"); return 1; }
  2071. if (pInfo[playerid][Admin] >= 2)
  2072. {
  2073. if(IsPlayerConnected(playa))
  2074. {
  2075. if(playa != INVALID_PLAYER_ID)
  2076. {
  2077. GivePlayerWeapon(playa, gun, ammo);
  2078. }
  2079. }
  2080. }
  2081. else
  2082. {
  2083. SendClientMessage(playerid, ROT, " Du bist nicht befugt!");
  2084. }
  2085. }
  2086. return 1;
  2087. }
  2088.  
  2089. stock OnPlayerShoot(playerid, weaponid)
  2090. {
  2091. if(GetPlayerTargetPlayer(playerid) != INVALID_PLAYER_ID)
  2092. {
  2093. SetPVarInt(playerid, "TargetPlayer", GetPlayerTargetPlayer(playerid));
  2094. new target = GetPVarInt(playerid,"TargetPlayer");
  2095. if(IsPlayerNPC(target)==1)
  2096. {
  2097. if(GetPVarInt(GetPVarInt(playerid,"TargetPlayer"), "tot")!=1)
  2098. {
  2099. new Float:x, Float:y, Float:z;
  2100. GetPlayerPos(GetPVarInt(playerid, "TargetPlayer"), x,y,z);
  2101. if(IsPlayerInRangeOfPoint(playerid, wpReichweite[weaponid], x,y,z))
  2102. {
  2103. new string[128]; // Der neue String
  2104. new player = GetPVarInt(playerid, "TargetPlayer");
  2105. new dmg = wpSchaden[weaponid];
  2106. new Float:health = GetPVarFloat(player, "Leben");
  2107. health = health - float(dmg);
  2108. SetPVarFloat(player, "Leben", health);
  2109. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}%d%",floatround(health,floatround_round)); // Die neue HP wird in den String gesetzt
  2110. if(health <= 0.0)
  2111. {
  2112. ClearAnimations(player);
  2113. SetPVarInt(player, "tot", 1);
  2114. new tid = GetPVarInt(player, "IrgendeinTimerVomZombie");
  2115. KillTimer(tid);
  2116. pInfo[playerid][pKills] += 1;
  2117. format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}0%"); // Falls der Bot stirbt, wird 0% angezeigt, anstatt die negative HP
  2118. ApplyAnimation(player, "CRACK", "crckdeth1", 4.0, 1, 1, 1, 1, 1, 1);
  2119. SetTimerEx("KickBot",2000,false,"player",player);
  2120. }
  2121. new ee = GetPVarInt(player, "Label");
  2122. label = Text3D:ee;
  2123. Update3DTextLabelText(label, 0xFFFFFFFF, string);
  2124.  
  2125. }
  2126.  
  2127. }
  2128. }
  2129. }
  2130. }
  2131.  
  2132. public KickBot(playerid)
  2133. {
  2134. Kick(playerid);
  2135. }
  2136.  
  2137. public Timer3()
  2138. {
  2139. for(new i = 0; i < MAX_PLAYERS; i++)
  2140. {
  2141. if(IsPlayerConnected(i))
  2142. {
  2143. new rstring[528];
  2144. format(rstring,200,"Spieler ~g~Online~w~: ~r~%d~n~~w~ Mit ~y~Zombies",GetOnLinePlayers());
  2145. PlayerTextDrawSetString(i,DrawLogin6[i], rstring);
  2146.  
  2147. if(Einlatungstimer[i] >= 1)
  2148. {
  2149. Einlatungstimer[i] += 1;
  2150. if(Einlatungstimer[i] == 6)
  2151. {
  2152. PlayerTextDrawShow(i,StatsBoxDraw[i]);
  2153.  
  2154. PlayAudioStreamForPlayer(i,"http://roleofgerman.bplaced.net/Musik/Horror.mp3");
  2155. ClearText(i, 10);
  2156. }
  2157. if(Einlatungstimer[i] == 2) //Tutorial Einleitung Start
  2158. {
  2159. ClearText(i, 10);
  2160. FreezePlayer(i);
  2161. PlayerTextDrawShow(i,DrawIntro1[i]);
  2162. PlayerTextDrawShow(i,DrawIntro2[i]);
  2163. PlayerTextDrawShow(i,DrawIntro3[i]);
  2164. PlayerTextDrawShow(i,DrawIntro4[i]);
  2165. PlayerTextDrawShow(i,DrawIntro5[i]);
  2166.  
  2167. SetPlayerInterior(i,0);
  2168. SetPlayerPos(i,99.8659,-344.8220,4.4453);
  2169. SetPlayerCameraPos(i,115.7097,-344.5835,4.4453);
  2170. SetPlayerCameraLookAt(i,99.8659,-344.8220,4.4453);
  2171. }
  2172. if(Einlatungstimer[i] == 25) //Tutorial Finde Sachen
  2173. {
  2174. ClearText(i, 10);
  2175. PlayerTextDrawHide(i,DrawIntro1[i]);
  2176. PlayerTextDrawHide(i,DrawIntro2[i]);
  2177. PlayerTextDrawHide(i,DrawIntro3[i]);
  2178. PlayerTextDrawHide(i,DrawIntro4[i]);
  2179. PlayerTextDrawHide(i,DrawIntro5[i]);
  2180.  
  2181. PlayerTextDrawShow(i,DrawIntroSuche1[i]);
  2182. PlayerTextDrawShow(i,DrawIntroSuche2[i]);
  2183. PlayerTextDrawShow(i,DrawIntroSuche3[i]);
  2184. PlayerTextDrawShow(i,DrawIntroSuche4[i]);
  2185. }
  2186. if(Einlatungstimer[i] == 50) //Unsere Zombies
  2187. {
  2188. ClearText(i, 10);
  2189.  
  2190. PlayerTextDrawHide(i,DrawIntroSuche1[i]);
  2191. PlayerTextDrawHide(i,DrawIntroSuche2[i]);
  2192. PlayerTextDrawHide(i,DrawIntroSuche3[i]);
  2193. PlayerTextDrawHide(i,DrawIntroSuche4[i]);
  2194.  
  2195. PlayerTextDrawShow(i,DrawIntroZombie1[i]);
  2196. PlayerTextDrawShow(i,DrawIntroZombie2[i]);
  2197. PlayerTextDrawShow(i,DrawIntroZombie3[i]);
  2198. PlayerTextDrawShow(i,DrawIntroZombie4[i]);
  2199. PlayerTextDrawShow(i,DrawIntroZombie5[i]);
  2200. }
  2201. if(Einlatungstimer[i] == 75) //Unsere Zombies
  2202. {
  2203. ClearText(i, 10);
  2204.  
  2205. PlayerTextDrawHide(i,DrawIntroZombie1[i]);
  2206. PlayerTextDrawHide(i,DrawIntroZombie2[i]);
  2207. PlayerTextDrawHide(i,DrawIntroZombie3[i]);
  2208. PlayerTextDrawHide(i,DrawIntroZombie4[i]);
  2209. PlayerTextDrawHide(i,DrawIntroZombie5[i]);
  2210.  
  2211. PlayerTextDrawShow(i,DrawIntroEinkaufen1[i]);
  2212. PlayerTextDrawShow(i,DrawIntroEinkaufen2[i]);
  2213. PlayerTextDrawShow(i,DrawIntroEinkaufen3[i]);
  2214. PlayerTextDrawShow(i,DrawIntroEinkaufen4[i]);
  2215. PlayerTextDrawShow(i,DrawIntroEinkaufen5[i]);
  2216. }
  2217. if(Einlatungstimer[i] == 100) //Unsere Läden
  2218. {
  2219. ClearText(i, 10);
  2220.  
  2221. PlayerTextDrawHide(i,DrawIntroEinkaufen1[i]);
  2222. PlayerTextDrawHide(i,DrawIntroEinkaufen2[i]);
  2223. PlayerTextDrawHide(i,DrawIntroEinkaufen3[i]);
  2224. PlayerTextDrawHide(i,DrawIntroEinkaufen4[i]);
  2225. PlayerTextDrawHide(i,DrawIntroEinkaufen5[i]);
  2226.  
  2227. PlayerTextDrawShow(i,DrawIntroZonen1[i]);
  2228. PlayerTextDrawShow(i,DrawIntroZonen2[i]);
  2229. PlayerTextDrawShow(i,DrawIntroZonen3[i]);
  2230. PlayerTextDrawShow(i,DrawIntroZonen4[i]);
  2231. PlayerTextDrawShow(i,DrawIntroZonen5[i]);
  2232. }
  2233. if(Einlatungstimer[i] == 125) //Fahrzeuge Zonen und Co
  2234. {
  2235. ClearText(i, 10);
  2236.  
  2237. PlayerTextDrawHide(i,DrawIntroZonen1[i]);
  2238. PlayerTextDrawHide(i,DrawIntroZonen2[i]);
  2239. PlayerTextDrawHide(i,DrawIntroZonen3[i]);
  2240. PlayerTextDrawHide(i,DrawIntroZonen4[i]);
  2241. PlayerTextDrawHide(i,DrawIntroZonen5[i]);
  2242. SendClientMessage(i,BLAU,"Einleitung Beendet");
  2243. SendClientMessage(i,GELB,"Von nun an bist du auf dich allein gestellt. Suche dir am besten erst einmal eine Waffe!");
  2244. SendClientMessage(i,GELB,"Versuche erst garnicht ein Zombie Tod zu schlagen dies kann sehr schnell in die Hose gehen");
  2245. SendClientMessage(i,GELB,"Da Zombies nur sterben können wenn sie Abgeschossen werden! dies nur so als kleiner Tipp nebenbei");
  2246. SendClientMessage(i,GELB,"Schieße nicht Wild umher dies lockt nur andere Spieler an und Verschwendet nur Munition Viel Erfolg");
  2247. SendClientMessage(i,GELB,"Diese Waffe bekommst du als kleines Starts geschenkt such dir trotdem andere Waffen und Munition vor allem");
  2248. SendClientMessage(i,GELB,"Sehe zu das du eine Karte oder ein Navigations Gerät findest damit du weißt wo du dich befindest und wo");
  2249. SendClientMessage(i,GELB,"Genau eine Zombie Zone ist nicht das du nacher doof umher Läufst an stellen wo garnix los ist");
  2250. GameTextForPlayer(i, "~w~Kaempfe um dein~n~~r~Leben", 5000, 3);
  2251. SetCameraBehindPlayer(i);
  2252. UnFreezePlayer(i);
  2253. GivePlayerWeapon(i,22,25);
  2254.  
  2255. StopAudioStreamForPlayer(i);
  2256. PlayerTextDrawShow(i,DrawKarte[i]);
  2257. }
  2258. }
  2259. }
  2260. }
  2261. return 1;
  2262. }
  2263.  
  2264. stock GetOnLinePlayers()
  2265. {
  2266. new OnLine;
  2267. for(new i, g = GetMaxPlayers(); i < g; i++)
  2268. if(IsPlayerConnected(i))
  2269. OnLine++;
  2270. return OnLine;
  2271. }
  2272.  
  2273. ocmd:test(playerid,params[])
  2274. {
  2275. pInfo[playerid][Backpack] = 1;
  2276. return 1;
  2277. }
  2278.  
  2279. public Timer2(playerid)
  2280. {
  2281. if(pInfo[playerid][pBlood] == 0)
  2282. {
  2283. GameTextForPlayer(playerid, "~r~Verblutet", 5000, 3);
  2284. SetPlayerHealth(playerid,0);
  2285. }
  2286. if(pInfo[playerid][pBloodCounter] == 1)
  2287. {
  2288. pInfo[playerid][pBlood] -= 20;
  2289. }
  2290.  
  2291. for(new i = 0; i < MAX_PLAYERS; i++)
  2292. {
  2293. if(pInfo[i][pInfoos] == 1)
  2294. {
  2295. new rstring[528];
  2296. format(rstring,200," Zombies ~g~Online ~w~%d~n~ Kills %d~n~ ~w~Blut %d",GetOnLinePlayers(),pInfo[playerid][pKills],pInfo[playerid][pBlood]);
  2297. PlayerTextDrawSetString(playerid,StatsBoxDraw[i], rstring);
  2298. }
  2299.  
  2300. new Float:x, Float:y, Float:z;
  2301. if(IsPlayerNPC(i))
  2302. {
  2303. GetPlayerPos(i, x,y,z);
  2304. if(IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z))
  2305. {
  2306. new Float:Health;
  2307. GetPlayerHealth(playerid,Health);
  2308. SetPlayerHealth(playerid,Health -10);
  2309. pInfo[playerid][pBloodCounter] = 1;
  2310. }
  2311. }
  2312. }
  2313. return 1;
  2314. }
  2315.  
  2316. public OnVehicleDamageStatusUpdate(vehicleid, playerid)
  2317. {
  2318. new panels, doors, lights, tires;
  2319. GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
  2320.  
  2321. tires = 0;
  2322.  
  2323. UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
  2324. return 1;
  2325. }
  2326.  
  2327. ocmd:verband(playerid,params[])
  2328. {
  2329. pInfo[playerid][pBloodCounter] = 0;
  2330. return 1;
  2331. }
  2332.  
  2333. public AutoTachokmhetc()
  2334. {
  2335. new Float:Speedo_X,Float:Speedo_Y,Float:Speedo_Z;
  2336. for(new i=0; i<SLOTS; i++)
  2337. {
  2338. if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
  2339. {
  2340. GetPlayerPos(i, Speedo_X, Speedo_Y, Speedo_Z);
  2341. GetPlayerVehicleID(i);
  2342.  
  2343. new str2[256],str3[256];
  2344. if(SpeedoON[i] == 0)
  2345. {
  2346. tachovar[i]=SetTimerEx("tachotimer",200,true,"i",i);
  2347. TextDrawShowForPlayer(i, TachoTankBox);
  2348. TextDrawShowForPlayer(i, TachoBenzin[i]);
  2349. TextDrawShowForPlayer(i, Schadenanzeige[i]);
  2350. TextDrawShowForPlayer(i, KilometerAnzeige[i]);
  2351. TextDrawShowForPlayer(i, Schadenanzzeigerrichtig[i]);
  2352. GetPlayerPos(i,xx[i],yy[i],zz[i]);
  2353. SpeedoON[i] = 1;
  2354. }
  2355. new Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,final_speed_int;
  2356. new veh = GetPlayerVehicleID(i);
  2357. GetVehicleVelocity(veh, speed_x, speed_y, speed_z);
  2358. final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*200.0/**120.0*/; // 136.666667 = kmph // 85.4166672= mph
  2359. final_speed_int = floatround(final_speed,floatround_round);
  2360. new kmh_anzahl = final_speed_int;
  2361.  
  2362. if(kmh_anzahl >= 150)
  2363. {
  2364. format(str2,sizeof(str2),"~b~Tempo: ~r~%d",kmh_anzahl);
  2365. TextDrawSetString(Schadenanzeige[i], str2);
  2366. }
  2367. else if(kmh_anzahl >= 100)
  2368. {
  2369. format(str2,sizeof(str2),"~b~Tempo: ~y~%d",kmh_anzahl);
  2370. TextDrawSetString(Schadenanzeige[i], str2);
  2371. }
  2372. else if(kmh_anzahl >= 50)
  2373. {
  2374. format(str2,sizeof(str2),"~b~Tempo: ~w~%d",kmh_anzahl);
  2375. TextDrawSetString(Schadenanzeige[i], str2);
  2376. }
  2377. else
  2378. {
  2379. format(str2,sizeof(str2),"~b~Tempo: ~w~%d",kmh_anzahl);
  2380. TextDrawSetString(Schadenanzeige[i], str2);
  2381. }
  2382.  
  2383. new Float:vHealth;
  2384. new string[126];
  2385. GetVehicleHealth(GetPlayerVehicleID(i),vHealth);
  2386. if(vHealth >= 999.0)
  2387. {
  2388. format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
  2389. TextDrawSetString(Schadenanzzeigerrichtig[i],string);
  2390. }
  2391. else if(vHealth >= 750.0 && vHealth < 999.0)
  2392. {
  2393. format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
  2394. TextDrawSetString(Schadenanzzeigerrichtig[i],string);
  2395. }
  2396. else if(vHealth >= 375.0 && vHealth < 750.0)
  2397. {
  2398. format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
  2399. TextDrawSetString(Schadenanzzeigerrichtig[i],string);
  2400. }
  2401. else if(vHealth < 375.0)
  2402. {
  2403. format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
  2404. TextDrawSetString(Schadenanzzeigerrichtig[i],string);
  2405. }
  2406. new vehicleid = GetPlayerVehicleID(i);
  2407. format(str3,sizeof(str3),"~b~Tank: ~w~%d / %d Liter", Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)));
  2408. TextDrawSetString(TachoBenzin[i], str3);
  2409. }
  2410. SavePlayerPos[i][sX] = Speedo_X, SavePlayerPos[i][sY] = Speedo_Y, SavePlayerPos[i][sZ] = Speedo_Z;
  2411.  
  2412. }
  2413. for(new i=0; i<SLOTS; i++)
  2414. {
  2415. if(!IsPlayerInAnyVehicle(i))
  2416. {
  2417. TextDrawHideForPlayer(i, TachoTankBox);
  2418. TextDrawHideForPlayer(i, TachoBenzin[i]);
  2419. TextDrawHideForPlayer(i, Schadenanzeige[i]);
  2420. TextDrawHideForPlayer(i, KilometerAnzeige[i]);
  2421. TextDrawHideForPlayer(i, Schadenanzzeigerrichtig[i]);
  2422. KillTimer(tachovar[i]);
  2423. SpeedoON[i] = 0;
  2424. }
  2425. }
  2426. }
  2427.  
  2428. public IsANoTachoVehicle(carid)
  2429. {
  2430. new model = GetVehicleModel(carid);
  2431. {
  2432. if(model == 481 || model == 509 || model == 510)
  2433. {
  2434. return 1;
  2435. }
  2436. }
  2437. return 0;
  2438. }
  2439.  
  2440. public Float:GetDistanceFromPointToPoint(Float:KOLOMETERX,Float:KOLOMETERY,Float:KOLOMETERZ,Float:tX,Float:tY,Float:tZ)
  2441. {
  2442. return Float:floatsqroot((tX-KOLOMETERX)*(tX-KOLOMETERX)+(tY-KOLOMETERY)*(tY-KOLOMETERY)+(tZ-KOLOMETERZ)*(tZ-KOLOMETERZ));
  2443. }
  2444.  
  2445. public Fillup()
  2446. {
  2447. for(new i=0; i<MAX_PLAYERS; i++)
  2448. {
  2449. if(IsPlayerConnected(i))
  2450. {
  2451. new VID;
  2452. new FillUp;
  2453. new string[256];
  2454. VID = GetPlayerVehicleID(i);
  2455. FillUp = GetGasMax(GetVehicleModel(VID)) - Gas[VID];
  2456. if(Refueling[i] == 1)
  2457. {
  2458. if(GetPlayerMoney(i) >= FillUp+1)
  2459. {
  2460. Gas[VID] += FillUp;
  2461. format(string,sizeof(string),"* Fahrzeug für $%d aufgetankt",FillUp);
  2462. SendClientMessage(i,0x730000FF,string);
  2463. GivePlayerMoney(i, - FillUp);
  2464. Refueling[i] = 0;
  2465. UnFreezePlayer(i);
  2466. }
  2467. else
  2468. {
  2469. format(string,sizeof(string),"* Du hast nicht genug Geld zum Tanken, Kosten: $%d / Liter.",FillUp);
  2470. SendClientMessage(i,0x730000FF,string);
  2471. }
  2472. }
  2473. }
  2474. }
  2475. return 1;
  2476. }
  2477.  
  2478. stock GetGasMax(vehmodel)
  2479. {
  2480. if(vehmodel >= 400 && vehmodel <= 611)
  2481. {
  2482. return GasMax[(vehmodel-400)];
  2483. }
  2484. return 100;
  2485. }
  2486.  
  2487. public CheckGas()
  2488. {
  2489. new string[256];
  2490. for(new i=0;i<MAX_PLAYERS;i++)
  2491. {
  2492. if(IsPlayerConnected(i))
  2493. {
  2494. if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
  2495. {
  2496. new vehicle = GetPlayerVehicleID(i);
  2497. new Model = GetVehicleModel(GetPlayerVehicleID(i));
  2498. if(Gas[vehicle] >= 1)
  2499. {
  2500. if(Gas[vehicle] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
  2501. if(gGas[i] == 1) {
  2502. format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Benzin:~w~ %d%",Gas[vehicle]);
  2503. GameTextForPlayer(i,string,15500,3); }
  2504. if(Model == 462 || Model == 481)
  2505. {
  2506. Gas[vehicle]++;
  2507. }
  2508. new engine3,lights3,alarm3,doors3,bonnet3,boot3,objective3;
  2509. new vid = GetPlayerVehicleID(i);
  2510. GetVehicleParamsEx(vid,engine3,lights3,alarm3,doors3,bonnet3,boot3,objective3);
  2511. if(vid != INVALID_VEHICLE_ID)
  2512. {
  2513. if(engine3 == VEHICLE_PARAMS_ON)
  2514. {
  2515. Gas[vehicle]--;
  2516. }
  2517. }
  2518. }
  2519. else
  2520. {
  2521. NoFuel[i] = 1;
  2522. FreezePlayer(i);
  2523. GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Kein Benzin mehr~n~Gib /exit ein um auszusteigen.",1500,3);
  2524. }
  2525. if(Gas[vehicle] > GetGasMax(GetVehicleModel(vehicle)))
  2526. {
  2527. Gas[vehicle] = GetGasMax(GetVehicleModel(vehicle));
  2528. }
  2529. }
  2530. }
  2531. }
  2532. return 1;
  2533. }
  2534.  
  2535. public tachotimer(playerid)
  2536. {
  2537. new string[50];
  2538. new Float:distanz;
  2539. new Float:x,Float:y,Float:z;
  2540. GetPlayerPos(playerid,x,y,z);
  2541. distanz=GetDistanceFromPointToPoint(xx[playerid],yy[playerid],zz[playerid],x,y,z);
  2542. if(distanz>100) return 1;
  2543. distance[playerid]=distance[playerid]+distanz;
  2544. GetPlayerPos(playerid,xx[playerid],yy[playerid],zz[playerid]);
  2545. if(distance[playerid]>100)
  2546. {
  2547. mmm1[playerid]++;
  2548. distance[playerid]=distance[playerid]-100;
  2549. if(mmm1[playerid]==10)
  2550. {
  2551. km[playerid]++;
  2552. mmm1[playerid]=0;
  2553. }
  2554. format(string,sizeof(string),"~b~Stand: ~w~ %i,%i km",km[playerid],mmm1[playerid]);
  2555. TextDrawSetString(KilometerAnzeige[playerid],string);
  2556. }
  2557. return 1;
  2558. }
  2559.  
  2560. ocmd:exit(playerid,params[])
  2561. {
  2562. if(NoFuel[playerid] == 1)
  2563. {
  2564. UnFreezePlayer(playerid);
  2565. RemovePlayerFromVehicle(playerid);
  2566. NoFuel[playerid] = 0;
  2567. }
  2568. return 1;
  2569. }
Add Comment
Please, Sign In to add comment