Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <Dini>
- #include <ocmd>
- #include <sscanf2>
- #include <rnpc>
- #include <foreach>
- #include "../include/gl_common.inc"
- #define DIALOG_REG 1
- #define DIALOG_REGISTER 2
- #define DIALOG_LOGIN 3
- #define DIALOG_TUTSTARTEN 4
- #define DIALOG_REGELN 5
- #define SLOTS 50
- #define CAR_AMOUNT 700
- #define RunOutTime 30000
- #define WEIß 0xFFFFFFAA
- #define HELLGRUN 0x9ACD32AA
- #define GRUN 0x9EC73DAA
- #define GRUN2 0x33AA33DD
- #define DUNKELGRUN 0x00D900C8
- #define HELLROSA 0xFF8282AA
- #define LEICHTROT 0xFF6347AA
- #define HELLROT 0xFF0000FF
- #define ROT 0xE60000FF
- #define LILA 0x8D8DFF00
- #define TURKIS 0x01FCFFC8
- #define HELLBLAU 0x33CCFFAA
- #define BLAU 0x0000CAF6
- #define DUNKELBLAU 0x2641FEAA
- #define GELB 0xFFFF00AA
- #define GOLD 0xB8860BAA
- #define ORANGE 0xFF9933FF
- #define GRAU 0xAFAFAFAA
- #define SCHWARZ 0x000000FF
- forward tachotimer(playerid);
- forward Fillup();
- forward CheckGas();
- forward Float:GetDistanceFromPointToPoint(Float:KOLOMETERX,Float:KOLOMETERY,Float:KOLOMETERZ,Float:tX,Float:tY,Float:tZ);
- forward IsANoTachoVehicle(carid);
- forward AutoTachokmhetc();
- forward Float:GetDistanceToPlayer(playerid,playerid2);
- forward Timer3();
- forward Timer2(playerid);
- forward KickBot(playerid);
- forward zombietimer1(playerid);
- forward LoginBild(playerid);
- forward ClearText(playerid,lines);
- new Rucksack1;
- new Text3D:label;
- new km[MAX_PLAYERS];
- new mmm1[MAX_PLAYERS];
- new Float:distance[MAX_PLAYERS];
- new NoFuel[MAX_PLAYERS];
- new Refueling[MAX_PLAYERS];
- new gGas[MAX_PLAYERS];
- new SpeedoON[MAX_PLAYERS];
- new tachovar[MAX_PLAYERS];
- new MehrereBilder[MAX_PLAYERS];
- new Einlatungstimer[MAX_PLAYERS];
- new VehicleDeathInfo[MAX_VEHICLES];
- new Gas[CAR_AMOUNT];
- new Float:xx[MAX_PLAYERS],Float:yy[MAX_PLAYERS],Float:zz[MAX_PLAYERS];
- new PlayerText:DrawLogin1[MAX_PLAYERS];
- new PlayerText:DrawLogin2[MAX_PLAYERS];
- new PlayerText:DrawLogin3[MAX_PLAYERS];
- new PlayerText:DrawLogin4[MAX_PLAYERS];
- new PlayerText:DrawLogin5[MAX_PLAYERS];
- new PlayerText:DrawLogin6[MAX_PLAYERS];
- new PlayerText:DrawLogin7[MAX_PLAYERS];
- new PlayerText:DrawIntro1[MAX_PLAYERS];
- new PlayerText:DrawIntro2[MAX_PLAYERS];
- new PlayerText:DrawIntro3[MAX_PLAYERS];
- new PlayerText:DrawIntro4[MAX_PLAYERS];
- new PlayerText:DrawIntro5[MAX_PLAYERS];
- new PlayerText:DrawIntroSuche1[MAX_PLAYERS];
- new PlayerText:DrawIntroSuche2[MAX_PLAYERS];
- new PlayerText:DrawIntroSuche3[MAX_PLAYERS];
- new PlayerText:DrawIntroSuche4[MAX_PLAYERS];
- new PlayerText:DrawIntroZombie1[MAX_PLAYERS];
- new PlayerText:DrawIntroZombie2[MAX_PLAYERS];
- new PlayerText:DrawIntroZombie3[MAX_PLAYERS];
- new PlayerText:DrawIntroZombie4[MAX_PLAYERS];
- new PlayerText:DrawIntroZombie5[MAX_PLAYERS];
- new PlayerText:DrawIntroEinkaufen1[MAX_PLAYERS];
- new PlayerText:DrawIntroEinkaufen2[MAX_PLAYERS];
- new PlayerText:DrawIntroEinkaufen3[MAX_PLAYERS];
- new PlayerText:DrawIntroEinkaufen4[MAX_PLAYERS];
- new PlayerText:DrawIntroEinkaufen5[MAX_PLAYERS];
- new PlayerText:DrawIntroZonen1[MAX_PLAYERS];
- new PlayerText:DrawIntroZonen2[MAX_PLAYERS];
- new PlayerText:DrawIntroZonen3[MAX_PLAYERS];
- new PlayerText:DrawIntroZonen4[MAX_PLAYERS];
- new PlayerText:DrawIntroZonen5[MAX_PLAYERS];
- new PlayerText:DrawKarte[MAX_PLAYERS];
- new PlayerText:StatsBoxDraw[MAX_PLAYERS];
- new Text:Schadenanzzeigerrichtig[MAX_PLAYERS];
- new Text:TachoBenzin[MAX_PLAYERS];
- new Text:KilometerAnzeige[MAX_PLAYERS];
- new Text:Schadenanzeige[MAX_PLAYERS];
- new Text:TachoTankBox;
- new checkgastimer;
- new PicckupObject;
- enum sDaten
- {
- Eingeloggt,
- SpielerSpawn,
- Admin,
- pSkin,
- pGeld,
- pInfoos,
- pKills,
- pBlood,
- pBloodCounter,
- Backpack
- }
- new pInfo[MAX_PLAYERS][sDaten];
- enum OldSpeedoPos
- {
- Float:sX,
- Float:sY,
- Float:sZ
- }
- new SavePlayerPos[SLOTS][OldSpeedoPos];
- new GasMax[] = {
- 6, //"Landstalker",
- 7,//"Bravura",
- 5,//"Buffalo",
- 8,//"Linerunner",
- 5,//"Pereniel",
- 12,//"Sentinel",
- 8,//"Dumper",
- 5,//"Firetruck",
- 14,//"Trashmaster",
- 7,//"Stretch",
- 43,//"Manana",
- 7,//"Infernus",
- 5,//"Voodoo",
- 8,//"Pony",
- 8,//"Mule",
- 11,//"Cheetah",
- 15,//"Ambulance",
- 14,//"Leviathan",
- 16,//"Moonbeam",
- 7,//"Esperanto",
- 5,//"Taxi",
- 6,//"Washington",
- 5,//"Bobcat",
- 5,//"Mr Whoopee",
- 5,//"BF Injection",
- 5,//"Hunter",
- 5,//"Premier",
- 5,//"Enforcer",
- 5,//"Securicar",
- 5,//"Banshee",
- 5,//"Predator",
- 5,//"Bus",
- 7,//"Rhino",
- 7,//"Barracks",
- 7,//"Hotknife",
- 7,//"Trailer",
- 7,//"Previon",
- 7,//"Coach",
- 7,//"Cabbie",
- 7,//"Stallion",
- 7,//"Rumpo",
- 7,//"RC Bandit",
- 7,//"Romero",
- 7,//"Packer",
- 7,//"Monster Truck",
- 7,//"Admiral",
- 7,//"Squalo",
- 7,//"Seasparrow",
- 7,//"Pizzaboy",
- 7,//"Tram",
- 7,//"Trailer",
- 7,//"Turismo",
- 7,//"Speeder",
- 7,//"Reefer",
- 7,//"Tropic",
- 7,//"Flatbed",
- 7,//"Yankee",
- 7,//"Caddy",
- 7,//"Solair",
- 7,//"Berkley's RC Van",
- 7,//"Skimmer",
- 7,//"PCJ-600",
- 7,//"Roller",
- 7,//"Freeway",
- 7,//"RC Baron",
- 7,//"RC Raider",
- 7,//"Glendale",
- 7,//"Oceanic",
- 7,//"Sanchez",
- 7,//"Sparrow",
- 7,//"Patriot",
- 7,//"Quad",
- 7,//"Coastguard",
- 7,//"Dinghy",
- 7,//"Hermes",
- 7,//"Sabre",
- 7,//"Rustler",
- 7,//"ZR-350",
- 7,//"Walton",
- 7,//"Regina",
- 7,//"Comet",
- 7,//"Fahrrad",
- 7,//"Burrito",
- 7,//"Camper",
- 7,//"Marquis",
- 7,//"Baggage",
- 7,//"Dozer",
- 7,//"Maverick",
- 7,//"News Chopper",
- 7,//"Rancher",
- 7,//"FBI Rancher",
- 7,//"Virgo",
- 7,//"Greenwood",
- 7,//"Jetmax",
- 7,//"Hotring",
- 7,//"Sandking",
- 7,//"Blista Compact",
- 7,//"Police Maverick",
- 7,//"Boxville",
- 7,//"Benson",
- 7,//"Mesa",
- 7,//"RC Goblin",
- 7,//"Hotring Racer",
- 7,//"Hotring Racer",
- 7,//"Bloodring Banger",
- 7,//"Rancher",
- 7,//"Super GT",
- 7,//"Elegant",
- 7,//"Journey",
- 7,//"Bike",
- 7,//"Mountain Bike",
- 7,//"Beagle",
- 7,//"Cropdust",
- 7,//"Stunt",
- 7,//"Tanker",
- 7,//"RoadTrain",
- 7,//"Nebula",
- 7,//"Majestic",
- 7,//"Buccaneer",
- 7,//"Shamal",
- 7,//"Hydra",
- 7,//"FCR-900",
- 7,//"NRG-500",
- 7,//"HPV1000",
- 7,//"Cement Truck",
- 7,//"Tow Truck",
- 7,//"Fortune",
- 7,//"Cadrona",
- 7,//"FBI Truck",
- 7,//"Willard",
- 7,//"Forklift",
- 7,//"Traktor",
- 7,//"Combine",
- 7,//"Feltzer",
- 7,//"Remington",
- 7,//"Slamvan",
- 7,//"Blade",
- 7,//"Freight",
- 7,//"Streak",
- 7,//"Vortex",
- 7,//"Vincent",
- 7,//"Bullet",
- 7,//"Clover",
- 7,//"Sadler",
- 7,//"Firetruck",
- 7,//"Hustler",
- 7,//"Intruder",
- 7,//"Primo",
- 7,//"Cargobob",
- 7,//"Tampa",
- 7,//"Sunrise",
- 7,//"Merit",
- 7,//"Utility",
- 7,//"Nevada",
- 7,//"Yosemite",
- 7,//"Windsor",
- 7,//"Monster Truck",
- 7,//"Monster Truck",
- 7,//"Uranus",
- 7,//"Jester",
- 7,//"Sultan",
- 7,//"Stratum",
- 7,//"Elegy",
- 7,//"Raindance",
- 7,//"RC Tiger",
- 7,//"Flash",
- 7,//"Tahoma",
- 7,//"Savanna",
- 7,//"Bandito",
- 7,//"Freight",
- 7,//"Trailer",
- 7,//"Kart",
- 7,//"Mower",
- 7,//"Duneride",
- 7,//"Sweeper",
- 7,//"Broadway",
- 7,//"Tornado",
- 7,//"AT-400",
- 7,//"DFT-30",
- 7,//"Huntley",
- 7,//"Stafford",
- 7,//"BF-400",
- 7,//"Newsvan",
- 7,//"Tug",
- 7,//"Trailer",
- 7,//"Emperor",
- 7,//"Wayfarer",
- 7,//"Euros",
- 7,//"Hotdog",
- 7,//"Club",
- 7,//"Trailer",
- 7,//"Trailer",
- 7,//"Andromada",
- 7,//"Dodo",
- 7,//"RC Cam",
- 7,//"Launch",
- 11,//"Streifenwagen",
- 11,//"Streifenwagen",
- 11,//"Streifenwagen",
- 11,//"Polizei Ranger",
- 6,//"Picador",
- 6,//"S.W.A.T. Van",
- 6,//"Alpha",
- 6,//"Phoenix",
- 6,//"Glendale",
- 50,//"Sadler",
- 6,//"Luggage Trailer",
- 6,//"Luggage Trailer",
- 6,//"Stair Trailer",
- 6,//"Boxville",
- 6,//"Farm Plow",
- 6//"Utility Trailer"
- };
- new Float:wpReichweite[] = {
- 1.0,
- 1.0,
- 1.2,
- 1.2,
- 1.1,
- 1.2,
- 1.2,
- 1.3,
- 1.2,
- 1.3,
- 0.5,
- 0.5,
- 0.5,
- 0.5,
- 0.5,
- 1.4,
- 12.0,
- 12.0,
- 12.0,
- 0.0,
- 0.0,
- 0.0,
- 28.0,
- 29.0,
- 30.0,
- 26.0,
- 25.0,
- 27.0,
- 28.0,
- 31.0,
- 35.0,
- 35.0,
- 26.0,
- 38.0,
- 65.0,
- 40.0,
- 40.0,
- 23.0,
- 37.0,
- 0.0,
- 0.0,
- 0.0,
- 0.0,
- 0.0,
- 0.0,
- 0.0
- };
- new wpSchaden[] = {
- 1,
- 2,
- 4,
- 4,
- 5,
- 4,
- 4,
- 4,
- 6,
- 15,
- 1,
- 1,
- 1,
- 1,
- 1,
- 4,
- 80,
- 2,
- 0,
- 10,
- 0,
- 10,
- 35,
- 30,
- 35,
- 15,
- 17,
- 15,
- 8,
- 9,
- 40,
- 12,
- 100,
- 0,
- 55,
- 40,
- 0,
- 4,
- 2,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0
- };
- main()
- {
- print("\n------------------------------------------------");
- print(" Day of Z Der auf NPC Basierte Zombie Server");
- print(" Wurde erfolgreich geladen.");
- print(" Das Script ist eigentum von Ronny");
- print("------------------------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("Zombie");
- UsePlayerPedAnims();
- SetTimer("AutoTachokmhetc",200,1);
- SetTimer("Timer3",1000, 1);
- checkgastimer = SetTimer("CheckGas", RunOutTime, 1);
- for(new c=0;c<CAR_AMOUNT;c++)
- {
- Gas[c] = GetGasMax(GetVehicleModel(c));
- }
- ConnectRNPC("Zombie1");
- ConnectRNPC("Zombie2");
- ConnectRNPC("Zombie3");
- ConnectRNPC("Zombie4");
- ConnectRNPC("Zombie5");
- ConnectRNPC("Zombie6");
- ConnectRNPC("Zombie7");
- ConnectRNPC("Zombie8");
- ConnectRNPC("Zombie9");
- ConnectRNPC("Zombie10");
- ConnectRNPC("Zombie11");
- ConnectRNPC("Zombie12");
- ConnectRNPC("Zombie13");
- ConnectRNPC("Zombie14");
- ConnectRNPC("Zombie15");
- ConnectRNPC("Zombie16");
- ConnectRNPC("Zombie17");
- ConnectRNPC("Zombie18");
- ConnectRNPC("Zombie19");
- ConnectRNPC("Zombie20");
- ConnectRNPC("Zombie21");
- ConnectRNPC("Zombie22");
- ConnectRNPC("Zombie23");
- ConnectRNPC("Zombie24");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- Rucksack1 = CreatePickup(3026, 24, 198.2905,-226.7606,1.7786, -1); //Rucksack
- AddStaticVehicleEx(411,238.3467,-366.3342,7.8249,279.4806,1,1,-1);
- for(new d=0; d<SLOTS; d++)
- {
- Schadenanzzeigerrichtig[d] = TextDrawCreate(471.000000, 426.000000, "~r~Schaden: ~w~ 1000");
- TextDrawBackgroundColor(Schadenanzzeigerrichtig[d], 255);
- TextDrawFont(Schadenanzzeigerrichtig[d], 1);
- TextDrawLetterSize(Schadenanzzeigerrichtig[d], 0.280000, 1.000000);
- TextDrawColor(Schadenanzzeigerrichtig[d], -1);
- TextDrawSetOutline(Schadenanzzeigerrichtig[d], 1);
- TextDrawSetProportional(Schadenanzzeigerrichtig[d], 1);
- TachoBenzin[d] = TextDrawCreate(470.000000, 408.000000, "~b~Tank: ~w~50 Lieter (Benzin)");
- TextDrawBackgroundColor(TachoBenzin[d], 255);
- TextDrawFont(TachoBenzin[d], 1);
- TextDrawLetterSize(TachoBenzin[d], 0.280000, 1.100000);
- TextDrawColor(TachoBenzin[d], -1);
- TextDrawSetOutline(TachoBenzin[d], 1);
- TextDrawSetProportional(TachoBenzin[d], 1);
- KilometerAnzeige[d] = TextDrawCreate(470.000000, 417.000000, "~b~Stand: ~w~ 0 km");
- TextDrawBackgroundColor(KilometerAnzeige[d], 255);
- TextDrawFont(KilometerAnzeige[d], 1);
- TextDrawLetterSize(KilometerAnzeige[d], 0.310000, 1.000000);
- TextDrawColor(KilometerAnzeige[d], -1);
- TextDrawSetOutline(KilometerAnzeige[d], 1);
- TextDrawSetProportional(KilometerAnzeige[d], 1);
- Schadenanzeige[d] = TextDrawCreate(470.000000, 399.000000, "~b~Tempo: ~w~ 0 km/h");
- TextDrawBackgroundColor(Schadenanzeige[d], 255);
- TextDrawFont(Schadenanzeige[d], 1);
- TextDrawLetterSize(Schadenanzeige[d], 0.280000, 1.000000);
- TextDrawColor(Schadenanzeige[d], -1);
- TextDrawSetOutline(Schadenanzeige[d], 1);
- TextDrawSetProportional(Schadenanzeige[d], 1);
- }
- return 1;
- }
- public OnGameModeExit()
- {
- KillTimer(checkgastimer);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if(IsPlayerNPC(playerid))return 1;
- LoginBild(playerid);
- SetPlayerWeather(playerid, 8);
- SetSpawnInfo(playerid,0,4,-319.1117,-1909.0902,12.4684,0,0,0,0,0,0,0);
- SpawnPlayer(playerid);
- new SpielerDatei[128];
- new name[MAX_PLAYER_NAME];
- new string[328];
- GetPlayerName(playerid,name,sizeof(name));
- format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
- if(dini_Exists(SpielerDatei))
- {
- PlayerTextDrawShow(playerid,DrawLogin1[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin2[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin3[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin4[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin5[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin6[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin7[playerid]);
- LoginBild(playerid);
- PlayAudioStreamForPlayer(playerid,"http://roleofgerman.bplaced.net/Musik/Horror.mp3");
- SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wird nach einen Account in der Datenbank gesucht]");
- SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wurde ein Account {00C146}gefunden{0005FF}]");
- new login[MAX_PLAYER_NAME];
- GetPlayerName(playerid, login, sizeof(login));
- 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);
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",string,"Login","Beenden");
- }
- else
- {
- PlayerTextDrawShow(playerid,DrawLogin1[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin2[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin3[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin4[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin5[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin6[playerid]);
- PlayerTextDrawShow(playerid,DrawLogin7[playerid]);
- new Loginname[MAX_PLAYER_NAME];
- LoginBild(playerid);
- PlayAudioStreamForPlayer(playerid,"http://roleofgerman.bplaced.net/Musik/Horror.mp3");
- GetPlayerName(playerid, Loginname, sizeof(Loginname));
- SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wird nach einen Account in der Datenbank gesucht]");
- SendClientMessage(playerid,WEIß,"{0005FF}[{FAFAFA}Day of Z{0005FF}: Es wurde {FF0005}Kein{0005FF} Account mit diesen Namen gefunden]");
- new login[MAX_PLAYER_NAME];
- GetPlayerName(playerid, login, sizeof(login));
- 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));
- ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account",string,"Registrieren","Beenden");
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SetTimerEx("Timer2",1000,1,"i",playerid);
- NoFuel[playerid] = 0;
- gGas[playerid] = 0;
- pInfo[playerid][Backpack] = 0;
- SetPlayerVirtualWorld(playerid,0);
- Einlatungstimer[playerid] = 0;
- pInfo[playerid][SpielerSpawn] = 0;
- pInfo[playerid][Admin] = 0;
- pInfo[playerid][pSkin] = 37;
- pInfo[playerid][pGeld] = 0;
- pInfo[playerid][pInfoos] = 0;
- pInfo[playerid][pKills] = 0;
- pInfo[playerid][pBlood] = 12000;
- pInfo[playerid][pBloodCounter] = 0;
- DrawLogin1[playerid] = CreatePlayerTextDraw(playerid,0.000000, 1.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawLogin1[playerid] , 255);
- PlayerTextDrawFont(playerid,DrawLogin1[playerid] , 1);
- PlayerTextDrawLetterSize(playerid,DrawLogin1[playerid] , 0.500000, 12.000000);
- PlayerTextDrawColor(playerid,DrawLogin1[playerid] , -1);
- PlayerTextDrawSetOutline(playerid,DrawLogin1[playerid] , 0);
- PlayerTextDrawSetProportional(playerid,DrawLogin1[playerid] , 1);
- PlayerTextDrawSetShadow(playerid,DrawLogin1[playerid] , 1);
- PlayerTextDrawUseBox(playerid,DrawLogin1[playerid] , 1);
- PlayerTextDrawBoxColor(playerid,DrawLogin1[playerid] , 102);
- PlayerTextDrawTextSize(playerid,DrawLogin1[playerid] , 651.000000, 0.000000);
- DrawLogin2[playerid] = CreatePlayerTextDraw(playerid,0.000000, 320.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawLogin2[playerid] , 255);
- PlayerTextDrawFont(playerid,DrawLogin2[playerid] , 1);
- PlayerTextDrawLetterSize(playerid,DrawLogin2[playerid] , 0.500000, 15.000000);
- PlayerTextDrawColor(playerid,DrawLogin2[playerid] , -1);
- PlayerTextDrawSetOutline(playerid,DrawLogin2[playerid] , 0);
- PlayerTextDrawSetProportional(playerid,DrawLogin2[playerid] , 1);
- PlayerTextDrawSetShadow(playerid,DrawLogin2[playerid] , 1);
- PlayerTextDrawUseBox(playerid,DrawLogin2[playerid] , 1);
- PlayerTextDrawBoxColor(playerid,DrawLogin2[playerid] , 102);
- PlayerTextDrawTextSize(playerid,DrawLogin2[playerid] , 640.000000, 0.000000);
- DrawLogin3[playerid] = CreatePlayerTextDraw(playerid,515.000000, 112.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawLogin3[playerid] , 255);
- PlayerTextDrawFont(playerid,DrawLogin3[playerid] , 1);
- PlayerTextDrawLetterSize(playerid,DrawLogin3[playerid] , 0.500000, 22.799999);
- PlayerTextDrawColor(playerid,DrawLogin3[playerid] , -1);
- PlayerTextDrawSetOutline(playerid,DrawLogin3[playerid] , 0);
- PlayerTextDrawSetProportional(playerid,DrawLogin3[playerid] , 1);
- PlayerTextDrawSetShadow(playerid,DrawLogin3[playerid] , 1);
- PlayerTextDrawUseBox(playerid,DrawLogin3[playerid] , 1);
- PlayerTextDrawBoxColor(playerid,DrawLogin3[playerid] , 102);
- PlayerTextDrawTextSize(playerid,DrawLogin3[playerid] , 650.000000, 20.000000);
- DrawLogin4[playerid] = CreatePlayerTextDraw(playerid,329.000000, 276.000000, "Herzlich Willkommen auf~n~~r~ Day of Z");
- PlayerTextDrawBackgroundColor(playerid,DrawLogin4[playerid] , 255);
- PlayerTextDrawFont(playerid,DrawLogin4[playerid] , 1);
- PlayerTextDrawLetterSize(playerid,DrawLogin4[playerid] , 0.370000, 2.199999);
- PlayerTextDrawColor(playerid,DrawLogin4[playerid] , -1);
- PlayerTextDrawSetOutline(playerid,DrawLogin4[playerid] , 1);
- PlayerTextDrawSetProportional(playerid,DrawLogin4[playerid] , 1);
- DrawLogin5[playerid] = CreatePlayerTextDraw(playerid,198.000000, 370.000000, "Der auf NPC Basierte Zombie Server (DayZ)");
- PlayerTextDrawBackgroundColor(playerid,DrawLogin5[playerid] , 255);
- PlayerTextDrawFont(playerid,DrawLogin5[playerid] , 1);
- PlayerTextDrawLetterSize(playerid,DrawLogin5[playerid] , 0.300000, 2.000000);
- PlayerTextDrawColor(playerid,DrawLogin5[playerid] , -1);
- PlayerTextDrawSetOutline(playerid,DrawLogin5[playerid] , 0);
- PlayerTextDrawSetProportional(playerid,DrawLogin5[playerid] , 1);
- PlayerTextDrawSetShadow(playerid,DrawLogin5[playerid] , 1);
- DrawLogin6[playerid] = CreatePlayerTextDraw(playerid,543.000000, 142.000000, "Spieler ~g~Online ~r~0~n~~w~ Mit ~y~Zombies");
- PlayerTextDrawBackgroundColor(playerid,DrawLogin6[playerid] , 255);
- PlayerTextDrawFont(playerid,DrawLogin6[playerid] , 1);
- PlayerTextDrawLetterSize(playerid,DrawLogin6[playerid] , 0.250000, 1.200000);
- PlayerTextDrawColor(playerid,DrawLogin6[playerid] , -1);
- PlayerTextDrawSetOutline(playerid,DrawLogin6[playerid] , 0);
- PlayerTextDrawSetProportional(playerid,DrawLogin6[playerid] , 1);
- PlayerTextDrawSetShadow(playerid,DrawLogin6[playerid] , 1);
- DrawLogin7[playerid] = CreatePlayerTextDraw(playerid,196.000000, 393.000000, "Version ~r~0.1 ~y~Alpha");
- PlayerTextDrawBackgroundColor(playerid,DrawLogin7[playerid] , 255);
- PlayerTextDrawFont(playerid,DrawLogin7[playerid] , 1);
- PlayerTextDrawLetterSize(playerid,DrawLogin7[playerid] , 0.720000, 3.500000);
- PlayerTextDrawColor(playerid,DrawLogin7[playerid] , -1);
- PlayerTextDrawSetOutline(playerid,DrawLogin7[playerid] , 1);
- PlayerTextDrawSetProportional(playerid,DrawLogin7[playerid] , 1);
- DrawIntro1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawIntro1[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntro1[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntro1[playerid], 0.500000, 8.000000);
- PlayerTextDrawColor(playerid,DrawIntro1[playerid], -1);
- PlayerTextDrawSetOutline(playerid,DrawIntro1[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntro1[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntro1[playerid], 1);
- PlayerTextDrawUseBox(playerid,DrawIntro1[playerid], 1);
- PlayerTextDrawBoxColor(playerid,DrawIntro1[playerid], -1);
- PlayerTextDrawTextSize(playerid,DrawIntro1[playerid], 480.000000, 0.000000);
- DrawIntro2[playerid] = CreatePlayerTextDraw(playerid,260.000000, 339.000000, "Die Einleitung");
- PlayerTextDrawBackgroundColor(playerid,DrawIntro2[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntro2[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntro2[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntro2[playerid], -65281);
- PlayerTextDrawSetOutline(playerid,DrawIntro2[playerid], 1);
- PlayerTextDrawSetProportional(playerid,DrawIntro2[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntro3[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntro3[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntro3[playerid], 0.280000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntro3[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntro3[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntro3[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntro3[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntro4[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntro4[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntro4[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntro4[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntro4[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntro4[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntro4[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntro5[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntro5[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntro5[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntro5[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntro5[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntro5[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntro5[playerid], 1);
- DrawIntroSuche1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche1[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroSuche1[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroSuche1[playerid], 0.500000, 8.000000);
- PlayerTextDrawColor(playerid,DrawIntroSuche1[playerid], -1);
- PlayerTextDrawSetOutline(playerid,DrawIntroSuche1[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroSuche1[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroSuche1[playerid], 1);
- PlayerTextDrawUseBox(playerid,DrawIntroSuche1[playerid], 1);
- PlayerTextDrawBoxColor(playerid,DrawIntroSuche1[playerid], -1);
- PlayerTextDrawTextSize(playerid,DrawIntroSuche1[playerid], 480.000000, 0.000000);
- DrawIntroSuche2[playerid] = CreatePlayerTextDraw(playerid,260.000000, 339.000000, "Gegenstaende");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche2[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroSuche2[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroSuche2[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroSuche2[playerid], -65281);
- PlayerTextDrawSetOutline(playerid,DrawIntroSuche2[playerid], 1);
- PlayerTextDrawSetProportional(playerid,DrawIntroSuche2[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche3[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroSuche3[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroSuche3[playerid], 0.280000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroSuche3[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroSuche3[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroSuche3[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroSuche3[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroSuche4[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroSuche4[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroSuche4[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroSuche4[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroSuche4[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroSuche4[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroSuche4[playerid], 1);
- DrawIntroZombie1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie1[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroZombie1[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZombie1[playerid], 0.500000, 8.000000);
- PlayerTextDrawColor(playerid,DrawIntroZombie1[playerid], -1);
- PlayerTextDrawSetOutline(playerid,DrawIntroZombie1[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZombie1[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZombie1[playerid], 1);
- PlayerTextDrawUseBox(playerid,DrawIntroZombie1[playerid], 1);
- PlayerTextDrawBoxColor(playerid,DrawIntroZombie1[playerid], -1);
- PlayerTextDrawTextSize(playerid,DrawIntroZombie1[playerid], 480.000000, 0.000000);
- DrawIntroZombie2[playerid] = CreatePlayerTextDraw(playerid,260.000000, 339.000000, "Unsere Zombies");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie2[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroZombie2[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZombie2[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZombie2[playerid], -65281);
- PlayerTextDrawSetOutline(playerid,DrawIntroZombie2[playerid], 1);
- PlayerTextDrawSetProportional(playerid,DrawIntroZombie2[playerid], 1);
- 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.");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie3[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroZombie3[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZombie3[playerid], 0.280000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZombie3[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroZombie3[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZombie3[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZombie3[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie4[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroZombie4[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZombie4[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZombie4[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroZombie4[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZombie4[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZombie4[playerid], 1);
- DrawIntroZombie5[playerid] = CreatePlayerTextDraw(playerid,187.000000, 390.000000, "Dein schlimmster Feind ist nicht der Zombie sondern~n~Andere Spieler pass bloss auf dich auf");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZombie5[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroZombie5[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZombie5[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZombie5[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroZombie5[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZombie5[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZombie5[playerid], 1);
- DrawIntroEinkaufen1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen1[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroEinkaufen1[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen1[playerid], 0.500000, 8.000000);
- PlayerTextDrawColor(playerid,DrawIntroEinkaufen1[playerid], -1);
- PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen1[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen1[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen1[playerid], 1);
- PlayerTextDrawUseBox(playerid,DrawIntroEinkaufen1[playerid], 1);
- PlayerTextDrawBoxColor(playerid,DrawIntroEinkaufen1[playerid], -1);
- PlayerTextDrawTextSize(playerid,DrawIntroEinkaufen1[playerid], 480.000000, 0.000000);
- DrawIntroEinkaufen2[playerid] = CreatePlayerTextDraw(playerid,280.000000, 339.000000, "Einkaufen");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen2[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroEinkaufen2[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen2[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroEinkaufen2[playerid], -65281);
- PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen2[playerid], 1);
- PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen2[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen3[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroEinkaufen3[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen3[playerid], 0.280000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroEinkaufen3[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen3[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen3[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen3[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen4[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroEinkaufen4[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen4[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroEinkaufen4[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen4[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen4[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen4[playerid], 1);
- DrawIntroEinkaufen5[playerid] = CreatePlayerTextDraw(playerid,187.000000, 390.000000, "Minimap mit einen Marker Markiert werden. ausserdem~n~kannst du Navigations Systeme finden oder auch karten");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroEinkaufen5[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroEinkaufen5[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroEinkaufen5[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroEinkaufen5[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroEinkaufen5[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroEinkaufen5[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroEinkaufen5[playerid], 1);
- DrawIntroZonen1[playerid] = CreatePlayerTextDraw(playerid,170.000000, 350.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen1[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroZonen1[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZonen1[playerid], 0.500000, 8.000000);
- PlayerTextDrawColor(playerid,DrawIntroZonen1[playerid], -1);
- PlayerTextDrawSetOutline(playerid,DrawIntroZonen1[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZonen1[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZonen1[playerid], 1);
- PlayerTextDrawUseBox(playerid,DrawIntroZonen1[playerid], 1);
- PlayerTextDrawBoxColor(playerid,DrawIntroZonen1[playerid], -1);
- PlayerTextDrawTextSize(playerid,DrawIntroZonen1[playerid], 480.000000, 0.000000);
- DrawIntroZonen2[playerid] = CreatePlayerTextDraw(playerid,250.000000, 339.000000, "Die Zombie ~r~Zonen");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen2[playerid], 255);
- PlayerTextDrawFont(playerid,DrawIntroZonen2[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZonen2[playerid], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZonen2[playerid], -65281);
- PlayerTextDrawSetOutline(playerid,DrawIntroZonen2[playerid], 1);
- PlayerTextDrawSetProportional(playerid,DrawIntroZonen2[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen3[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroZonen3[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZonen3[playerid], 0.280000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZonen3[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroZonen3[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZonen3[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZonen3[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen4[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroZonen4[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZonen4[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZonen4[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroZonen4[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZonen4[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZonen4[playerid], 1);
- 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");
- PlayerTextDrawBackgroundColor(playerid,DrawIntroZonen5[playerid], -1);
- PlayerTextDrawFont(playerid,DrawIntroZonen5[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawIntroZonen5[playerid], 0.300000, 1.000000);
- PlayerTextDrawColor(playerid,DrawIntroZonen5[playerid], 255);
- PlayerTextDrawSetOutline(playerid,DrawIntroZonen5[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawIntroZonen5[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawIntroZonen5[playerid], 1);
- DrawKarte[playerid] = CreatePlayerTextDraw(playerid,36.000000, 333.000000, "~n~~n~ Keine Karte~n~~n~~n~");
- PlayerTextDrawBackgroundColor(playerid,DrawKarte[playerid], 255);
- PlayerTextDrawFont(playerid,DrawKarte[playerid], 1);
- PlayerTextDrawLetterSize(playerid,DrawKarte[playerid], 0.400000, 2.000000);
- PlayerTextDrawColor(playerid,DrawKarte[playerid], -1);
- PlayerTextDrawSetOutline(playerid,DrawKarte[playerid], 0);
- PlayerTextDrawSetProportional(playerid,DrawKarte[playerid], 1);
- PlayerTextDrawSetShadow(playerid,DrawKarte[playerid], 0);
- PlayerTextDrawUseBox(playerid,DrawKarte[playerid], 1);
- PlayerTextDrawBoxColor(playerid,DrawKarte[playerid], 255);
- PlayerTextDrawTextSize(playerid,DrawKarte[playerid], 139.000000, 0.000000);
- StatsBoxDraw[playerid] = CreatePlayerTextDraw(playerid,495.000000, 125.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,StatsBoxDraw[playerid], 255);
- PlayerTextDrawFont(playerid,StatsBoxDraw[playerid], 1);
- PlayerTextDrawLetterSize(playerid,StatsBoxDraw[playerid], 0.220000, 1.000000);
- PlayerTextDrawColor(playerid,StatsBoxDraw[playerid], -1);
- PlayerTextDrawSetOutline(playerid,StatsBoxDraw[playerid], 0);
- PlayerTextDrawSetProportional(playerid,StatsBoxDraw[playerid], 1);
- PlayerTextDrawSetShadow(playerid,StatsBoxDraw[playerid], 1);
- PlayerTextDrawUseBox(playerid,StatsBoxDraw[playerid], 1);
- PlayerTextDrawBoxColor(playerid,StatsBoxDraw[playerid], 102);
- PlayerTextDrawTextSize(playerid,StatsBoxDraw[playerid], 619.000000, 0.000000);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- if(GetPVarInt(playerid,"Eingeloggt") == 1)
- {
- SpielerSpeichern(playerid);
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- pInfo[playerid][pBlood]=12000;
- pInfo[playerid][pBloodCounter] = 0;
- if (pInfo[playerid][SpielerSpawn] == 0)// Zivi spawn
- {
- 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;
- SetPlayerWeather(playerid, 8);
- SetPlayerColor(playerid,WEIß);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,234.7013,-327.7058,4.4332);
- }
- if(IsPlayerNPC(playerid)==1)
- {
- new botname[MAX_PLAYER_NAME];
- GetPlayerName(playerid,botname,sizeof(botname));
- if(!strcmp(botname,"Zombie1",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,225.4074,-309.9428,1.6654);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie2",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,248.6878,-294.4554,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie3",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,214.6445,-294.8065,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie4",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,206.5808,-257.8216,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie5",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,206.7704,-219.7235,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie6",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,225.4640,-167.0452,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie7",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,195.6428,-142.6589,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie8",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,112.3033,-161.3937,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie9",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,92.9945,-189.8757,1.4844);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie10",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,64.3029,-245.9500,1.5781);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie11",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,8.8393,-200.4476,1.5964);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie12",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,7.4880,-140.2628,0.6094);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie13",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,57.6965,-69.6877,0.6094);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie14",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,52.6945,-23.0894,1.8283);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie15",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-0.3803,-34.9474,3.1172);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie16",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-38.9299,-78.1145,3.1172);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie17",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-92.9000,-100.6747,3.1181);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie18",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-141.3604,-120.1706,3.1172);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie19",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-138.3495,-74.3397,3.1172);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie20",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-91.9414,-41.9167,6.4844);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie21",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-62.4529,12.2733,3.1172);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie22",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,-30.9724,36.6740,3.1172);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie23",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,42.7041,62.0644,2.6169);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- if(!strcmp(botname,"Zombie24",true))
- {
- SetPVarFloat(playerid, "Leben", 100.00);
- new string[128];
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}100%");
- label = Create3DTextLabel(string, 0x008080FF, 0.0, 0.0, 0.0, 20.0, 0);
- SetPVarInt(playerid, "Label", _:label);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
- SetPlayerPos(playerid,152.5600,37.7162,1.8174);
- SetPlayerInterior(playerid,0);
- SetPlayerSkin(playerid,162);
- pInfo[playerid][pSkin] = 162;
- PicckupObject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PicckupObject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
- return 1;
- }
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- pInfo[playerid][Backpack] = 0;
- pInfo[playerid][pKills] = 0;
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- if(VehicleDeathInfo[vehicleid])
- {
- VehicleDeathInfo[vehicleid] = 0;
- SetVehicleHealth(vehicleid, 255);
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
- UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15);
- }
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- VehicleDeathInfo[vehicleid] = 1;
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[128], idx;
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd, "/npc", true) == 0)
- {
- new tmp[128];
- tmp = strtok(cmdtext, idx);
- if(strlen(tmp) > 0)
- {
- new npc = ConnectRNPC(tmp);
- SetPVarString(npc, "NPCNAME", tmp);
- SetPVarInt(npc, "NPCID", npc);
- new string[128];
- format(string,sizeof(string), "Bot wurde verbunden. (ID: %d | Name: %s)", npc, tmp);
- print(string);
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "/cnb [BOTNAME]");
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(gGas[playerid] == 1)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Auto Verlassen", 500, 3);
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 198.2905,-226.7606,1.7786)) //rucksack 1
- {
- if(pInfo[playerid][Backpack] == 1)
- {
- SendClientMessage(playerid,GRAU,"Du hast bereits einen Rucksack!");
- return 1;
- }
- 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);
- DestroyPickup(Rucksack1);
- }
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new curweapon = GetPlayerWeapon(playerid);
- new curammo = GetPlayerAmmo(playerid);
- if(curweapon == GetPVarInt(playerid, "CurWeapon"))
- {
- if(curammo != GetPVarInt(playerid, "curammo"))
- {
- if(curammo < GetPVarInt(playerid, "curammo"))
- {
- OnPlayerShoot(playerid, curweapon);
- }
- SetPVarInt(playerid, "curammo", curammo);
- }
- }
- else
- {
- SetPVarInt(playerid, "CurWeapon", curweapon);
- }
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- if(IsPlayerNPC(playerid)==0)
- {
- if(IsPlayerNPC(forplayerid)==1)
- {
- SetPVarInt(forplayerid, "SpielerInReichweite", GetPVarInt(forplayerid, "SpielerInReichweite") + 1);
- if(GetPVarInt(forplayerid, "SpielerInReichweite") == 1)
- {
- new tid = SetTimerEx("zombietimer1",1000,true,"i",forplayerid);
- SetPVarInt(forplayerid, "zombietimer1ID", tid);
- }
- }
- }
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- if(IsPlayerNPC(playerid)==0)
- {
- if(IsPlayerNPC(forplayerid)==1)
- {
- SetPVarInt(forplayerid, "SpielerInReichweite", GetPVarInt(forplayerid, "SpielerInReichweite") - 1);
- if(GetPVarInt(forplayerid, "SpielerInReichweite") == 0)
- {
- KillTimer(GetPVarInt(playerid, "zombietimer1ID"));
- }
- }
- }
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_TUTSTARTEN)
- {
- if(response == 1)
- {
- pInfo[playerid][pInfoos] = 1;
- SendClientMessage(playerid,GRUN,"Account wurde Erstellt bevor der Account gespeichert wird.");
- SendClientMessage(playerid,GRUN,"Kommt noch ein kleines Tutorial über dem Server!");
- Einlatungstimer[playerid] += 1;
- }
- }
- if(dialogid==DIALOG_LOGIN)
- {
- if(response==0)
- {
- SendClientMessage(playerid,WEIß,"Du hast den Vorang Beendet");
- SendClientMessage(playerid,WEIß,"Wir wünschen dir noch einen schönen Tag");
- Kick(playerid);
- return 1;
- }
- if(response==1)
- {
- if(!strlen(inputtext))
- {
- SendClientMessage(playerid,ROT,"Dein Passwort war leider Falsch!");
- SendClientMessage(playerid,ROT,"Bitte versuche es nocheinmal");
- SendClientMessage(playerid,ROT,"Probleme mit dein Passwort Melde dich im Forum / Ts3");
- SendClientMessage(playerid,ROT,"Und melde dich bei einen Admin.");
- new login[MAX_PLAYER_NAME];
- new string[250];
- GetPlayerName(playerid, login, sizeof(login));
- format(string, sizeof(string), "{FF9600}%s {FAFAFA}Dein Passwort war {FF2800}Falsch{FAFAFA}\n\nBitte versuche es nocheinmal", login);
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",string,"Login","Abbrechen");
- return 1;
- }
- else
- {
- PlayerTextDrawHide(playerid,DrawLogin1[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin2[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin3[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin4[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin5[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin6[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin7[playerid]);
- Einloggen(playerid,inputtext);
- return 1;
- }
- }
- }
- if(dialogid==DIALOG_REGISTER)
- {
- if(response==0)
- {
- SendClientMessage(playerid,WEIß,"Du hast den Vorang Beendet");
- SendClientMessage(playerid,WEIß,"Wir wünschen dir noch einen schönen Tag");
- Kick(playerid);
- return 1;
- }
- if(response==1)
- {
- if(!strlen(inputtext))
- {
- SendClientMessage(playerid,ROT,"Bitt versuch es noch einmal.");
- SendClientMessage(playerid,ROT,"Dein Passwort war leider nicht lang genug.");
- new login[MAX_PLAYER_NAME];
- new string[228];
- GetPlayerName(playerid, login, sizeof(login));
- 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.");
- ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Benutzerregistration",string,"Erstellen","Abbrechen");
- return 1;
- }
- else
- {
- Accounterstellen(playerid,inputtext);
- return 1;
- }
- }
- }
- if(dialogid==DIALOG_REG)
- {
- if(response==0)
- {
- SendClientMessage(playerid,WEIß,"Du hast auf Beenden gedrückt");
- SendClientMessage(playerid,WEIß,"Wir wünschen dir noch einen schönen Tag");
- Kick(playerid);
- }
- if(response==1)
- {
- PlayerTextDrawHide(playerid,DrawLogin4[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin5[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin6[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin7[playerid]);
- new login[MAX_PLAYER_NAME];
- new string[250];
- LoginBild(playerid);
- GetPlayerName(playerid, login, sizeof(login));
- format(string, sizeof(string), "{FFBE00}%s {FAFAFA}Bitte gebe hier dein zukünftiges Passwort ein!\n\n{FAFAFA}Danach klicke bitte auf Erstellen", login);
- ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Benutzerregistration",string,"Erstellen","Beenden");
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- stock Accounterstellen(playerid,key[])
- {
- new SpielerDatei[128];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
- dini_Create(SpielerDatei);
- dini_Set(SpielerDatei,"Passwort",key);
- SetPlayerScore(playerid,0);
- SetPVarInt(playerid,"Eingeloggt",1);
- SetCameraBehindPlayer(playerid);
- pInfo[playerid][SpielerSpawn] = 0;
- dini_IntSet(SpielerDatei,"Admin",0);
- SetPlayerSkin(playerid,37);
- pInfo[playerid][pSkin] = 37;
- SpawnPlayer(playerid);
- PlayerTextDrawHide(playerid,DrawLogin1[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin2[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin3[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin4[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin5[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin6[playerid]);
- PlayerTextDrawHide(playerid,DrawLogin7[playerid]);
- StopAudioStreamForPlayer(playerid);
- 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","");
- return 1;
- }
- stock Einloggen(playerid,key[])
- {
- new SpielerDatei[128];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
- if(!strcmp(key,dini_Get(SpielerDatei,"Passwort"),false))
- {
- StopAudioStreamForPlayer(playerid);
- pInfo[playerid][pInfoos] = 1;
- PlayerTextDrawShow(playerid,StatsBoxDraw[playerid]);
- SendClientMessage(playerid,GRUN2,"Erfolgreich Eingeloggt.");
- AccountLaden(playerid);
- SpawnPlayer(playerid);
- SetCameraBehindPlayer(playerid);
- SpawnPlayer(playerid);
- if (pInfo[playerid][Admin] > 0)
- {
- new text1[50]; new string6[228];
- if(pInfo[playerid][Admin] == 1) { text1 = "Supporter"; }
- else if(pInfo[playerid][Admin] == 2) { text1 = "Admin"; }
- format(string6, sizeof(string6), "{FF8A05}Server:{F7F7F7} Du bist mit dem Adminrang '{CC0404}%s{F7F7F7}' eingeloggt.",text1);
- SendClientMessage(playerid, WEIß,string6);
- }
- }
- else
- {
- SendClientMessage(playerid,GRUN,"Du hast ein falsches Passwort eingegeben!");
- ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Dein Account wurde in unserer Datenbank gefunden!\nBitte gib nun dein Passwort ein! ","Login", "Abbrechen");
- }
- return 1;
- }
- stock AccountLaden(playerid)
- {
- new SpielerDatei[128];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
- pInfo[playerid][SpielerSpawn] = dini_Int(SpielerDatei,"Team");
- pInfo[playerid][Admin] = dini_Int(SpielerDatei,"Admin");
- pInfo[playerid][pSkin] = dini_Int(SpielerDatei,"Aussehen");
- SetPlayerSkin(playerid, pInfo[playerid][pSkin]);
- pInfo[playerid][pGeld] = dini_Int(SpielerDatei,"Geld");
- GivePlayerMoney(playerid,dini_Int(SpielerDatei,"Geld"));
- pInfo[playerid][pKills] = dini_Int(SpielerDatei,"Kills");
- pInfo[playerid][Backpack] = dini_Int(SpielerDatei,"Rucksack");
- SetPVarInt(playerid,"Eingeloggt",1);
- return 1;
- }
- stock SpielerSpeichern(playerid)
- {
- if(GetPVarInt(playerid,"Eingeloggt") == 1)
- {
- new SpielerDatei[128];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",name);
- dini_IntSet(SpielerDatei,"SpawnSpieler",pInfo[playerid][SpielerSpawn]);
- dini_IntSet(SpielerDatei, "Admin", pInfo[playerid][Admin]);
- dini_IntSet(SpielerDatei,"Geld",GetPlayerMoney(playerid));
- dini_IntSet(SpielerDatei, "Aussehen", pInfo[playerid][pSkin]);
- dini_IntSet(SpielerDatei,"Geld", pInfo[playerid][pGeld]);
- dini_IntSet(SpielerDatei,"Geld",GetPlayerMoney(playerid));
- dini_IntSet(SpielerDatei, "Kills", pInfo[playerid][pKills]);
- dini_IntSet(SpielerDatei, "Rucksack", pInfo[playerid][Backpack]);
- }
- }
- ocmd:wetter(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(pInfo[playerid][Admin] >= 1 || IsPlayerAdmin(playerid))
- {
- new idx; new tmp[256];
- tmp = strtok(params, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, WEIß, "{FFD200}Benutzung:{FEFEFE} /wetter [Wetter ID]");
- return 1;
- }
- new weather;
- weather = strval(tmp);
- if(weather < 0||weather > 45) { SendClientMessage(playerid, GRAU, "Wetter ID nicht weniger als 0 oder höher als 45 !"); return 1; }
- SetWeather(weather);
- SendClientMessage(playerid, GRUN, "Wetter Eingestellt!");
- SendClientMessageToAll(HELLBLAU,"Die Wetter Fee hat das Wetter geändert");
- }
- }
- return 1;
- }
- ocmd:makeadmin(playerid,params[])
- {
- if(pInfo[playerid][Admin] >= 2 || IsPlayerAdmin(playerid))
- {
- new string[256];
- new idx, tmp[250];
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- tmp = strtok(params, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, WEIß, "{FFD200}Benutzung: {FEFEFE} /makeadmin [ID/Spielername] [Adminrang]");
- return 1;
- }
- new para1 = ReturnUser(tmp);
- tmp = strtok(params, idx);
- new level = strval(tmp);
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- if(pInfo[para1][Admin] < level)
- {
- printf("Admin: %s hat %s zu einem Level %d Admin befördert.", sendername, giveplayer, level);
- format(string, sizeof(string), "%s Hat %s Admin %d gegeben", sendername, level);
- SendClientMessage(para1, GRUN, string);
- format(string, sizeof(string), "Du hast %s Adminrang %d gegeben", giveplayer,level);
- SendClientMessage(playerid, GRUN, string);
- }
- else
- {
- printf("Admin: %s hat %s den Adminrang %d Gegeben", sendername, giveplayer, level);
- format(string, sizeof(string), "%s hat dir %d Adminrang gegeben", sendername, level);
- SendClientMessage(para1, GRUN, string);
- format(string, sizeof(string), "Du hast %s Den Adminrang %d gegeben", giveplayer,level);
- SendClientMessage(playerid, GRUN, string);
- }
- pInfo[para1][Admin] = level;
- }
- }
- }
- return 1;
- }
- ocmd:veh(playerid,params[])
- {
- if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,0xFF1400FF,"Du bist kein Supporter");
- new ModelID, color[2],Float:VehPos[4], vehicleid;
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,0xB0AFB0FF,"Du Darfst nicht im Fahrzeug sein!");
- if(sscanf(params, "ddd",ModelID,color[0],color[1])) return SendClientMessage(playerid,0xB0AFB0FF, "/veh [vehicleid] [color1] [color2]");
- if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,0xB0AFB0FF, "Die Fahrzeug Id muss von 400 bis 611 sein");
- if(isPlayerAnAdmin(playerid,3) || CallRemoteFunction("PlayerIsAnAdmin","i",playerid))
- {
- GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
- GetPlayerFacingAngle(playerid, VehPos[3]);
- vehicleid = CreateVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],-1);
- LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, vehicleid, 0);
- }
- return 1;
- }
- stock isPlayerAnAdmin(playerid,rang)
- {
- if(pInfo[playerid][Admin]>=rang)return 1;
- return 0;
- }
- public LoginBild(playerid)
- {
- if(MehrereBilder[playerid] == 0)
- {
- switch(random(3))
- {
- case 0:
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
- SetPlayerFacingAngle(playerid,114.9759);
- SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
- SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
- }
- case 1:
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
- SetPlayerFacingAngle(playerid,114.9759);
- SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
- SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
- }
- default:
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
- SetPlayerFacingAngle(playerid,114.9759);
- SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
- SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
- }
- }
- }
- else
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-40.1781,-1937.3723,-0.7830);
- SetPlayerFacingAngle(playerid,114.9759);
- SetPlayerCameraPos(playerid,-263.0424,-1923.2418,28.1759);
- SetPlayerCameraLookAt(playerid,-40.1781,-1937.3723,-0.7830);
- }
- }
- ocmd:tot(playerid,params[])
- {
- SetPlayerHealth(playerid,0);
- return 1;
- }
- stock FreezePlayer(playerid)
- {
- TogglePlayerControllable(playerid,false);
- }
- stock UnFreezePlayer(playerid)
- {
- TogglePlayerControllable(playerid,true);
- }
- public ClearText(playerid,lines)
- {
- if(IsPlayerConnected(playerid) && lines > 0)
- {
- for(new l=0; l<lines; l++)
- {
- SendClientMessage(playerid,WEIß," ");
- }
- }
- }
- ocmd:regeln(playerid,params[])
- {
- 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","");
- return 1;
- }
- public zombietimer1(playerid)
- {
- new Float:x, Float:y, Float:z;
- if(GetPVarInt(playerid, "AufVerfolgung")==1)
- {
- GetPlayerPos(GetPVarInt(playerid, "VerfolgterSpieler"),x,y,z);
- if(IsPlayerInRangeOfPoint(playerid, 20.0, x,y,z))
- {
- MoveRNPC(playerid, x,y,z, 0.004);
- }
- else
- {
- SetPVarInt(playerid, "AufVerfolgung", 0);
- }
- }
- else
- {
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerNPC(i)==0)
- {
- GetPlayerPos(i, x,y,z);
- if(IsPlayerInRangeOfPoint(playerid, 20.0, x,y,z))
- {
- SetPVarInt(playerid, "AufVerfolgung", 1);
- SetPVarInt(playerid, "VerfolgterSpieler", i);
- MoveRNPC(playerid, x,y,z, 0.004);
- break;
- }
- }
- }
- }
- }
- ocmd:givegun(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- new idx, tmp[250];
- tmp = strtok(params, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, WEIß, "{FFD200}Benutzung:{FEFEFE} /givegun [playerid] [Waffenid] [Munition]");
- return 1;
- }
- new playa;
- new gun;
- new ammo;
- playa = ReturnUser(tmp);
- tmp = strtok(params, idx);
- gun = strval(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, WEIß, "{FFD200}Benutzung:{FEFEFE} /givegun [playerid] [Waffenid] [Munition]");
- return 1;
- }
- tmp = strtok(params, idx);
- ammo = strval(tmp);
- if(ammo <1||ammo > 15000)
- { SendClientMessage(playerid, GRAU, " Nicht unter 1 und nicht über 15000 Munition!"); return 1; }
- if (pInfo[playerid][Admin] >= 2)
- {
- if(IsPlayerConnected(playa))
- {
- if(playa != INVALID_PLAYER_ID)
- {
- GivePlayerWeapon(playa, gun, ammo);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, ROT, " Du bist nicht befugt!");
- }
- }
- return 1;
- }
- stock OnPlayerShoot(playerid, weaponid)
- {
- if(GetPlayerTargetPlayer(playerid) != INVALID_PLAYER_ID)
- {
- SetPVarInt(playerid, "TargetPlayer", GetPlayerTargetPlayer(playerid));
- new target = GetPVarInt(playerid,"TargetPlayer");
- if(IsPlayerNPC(target)==1)
- {
- if(GetPVarInt(GetPVarInt(playerid,"TargetPlayer"), "tot")!=1)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(GetPVarInt(playerid, "TargetPlayer"), x,y,z);
- if(IsPlayerInRangeOfPoint(playerid, wpReichweite[weaponid], x,y,z))
- {
- new string[128]; // Der neue String
- new player = GetPVarInt(playerid, "TargetPlayer");
- new dmg = wpSchaden[weaponid];
- new Float:health = GetPVarFloat(player, "Leben");
- health = health - float(dmg);
- SetPVarFloat(player, "Leben", health);
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}%d%",floatround(health,floatround_round)); // Die neue HP wird in den String gesetzt
- if(health <= 0.0)
- {
- ClearAnimations(player);
- SetPVarInt(player, "tot", 1);
- new tid = GetPVarInt(player, "IrgendeinTimerVomZombie");
- KillTimer(tid);
- pInfo[playerid][pKills] += 1;
- format(string,128,"{00FF00}Zombie\n{00D7FF}Leben: {FF0023}0%"); // Falls der Bot stirbt, wird 0% angezeigt, anstatt die negative HP
- ApplyAnimation(player, "CRACK", "crckdeth1", 4.0, 1, 1, 1, 1, 1, 1);
- SetTimerEx("KickBot",2000,false,"player",player);
- }
- new ee = GetPVarInt(player, "Label");
- label = Text3D:ee;
- Update3DTextLabelText(label, 0xFFFFFFFF, string);
- }
- }
- }
- }
- }
- public KickBot(playerid)
- {
- Kick(playerid);
- }
- public Timer3()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new rstring[528];
- format(rstring,200,"Spieler ~g~Online~w~: ~r~%d~n~~w~ Mit ~y~Zombies",GetOnLinePlayers());
- PlayerTextDrawSetString(i,DrawLogin6[i], rstring);
- if(Einlatungstimer[i] >= 1)
- {
- Einlatungstimer[i] += 1;
- if(Einlatungstimer[i] == 6)
- {
- PlayerTextDrawShow(i,StatsBoxDraw[i]);
- PlayAudioStreamForPlayer(i,"http://roleofgerman.bplaced.net/Musik/Horror.mp3");
- ClearText(i, 10);
- }
- if(Einlatungstimer[i] == 2) //Tutorial Einleitung Start
- {
- ClearText(i, 10);
- FreezePlayer(i);
- PlayerTextDrawShow(i,DrawIntro1[i]);
- PlayerTextDrawShow(i,DrawIntro2[i]);
- PlayerTextDrawShow(i,DrawIntro3[i]);
- PlayerTextDrawShow(i,DrawIntro4[i]);
- PlayerTextDrawShow(i,DrawIntro5[i]);
- SetPlayerInterior(i,0);
- SetPlayerPos(i,99.8659,-344.8220,4.4453);
- SetPlayerCameraPos(i,115.7097,-344.5835,4.4453);
- SetPlayerCameraLookAt(i,99.8659,-344.8220,4.4453);
- }
- if(Einlatungstimer[i] == 25) //Tutorial Finde Sachen
- {
- ClearText(i, 10);
- PlayerTextDrawHide(i,DrawIntro1[i]);
- PlayerTextDrawHide(i,DrawIntro2[i]);
- PlayerTextDrawHide(i,DrawIntro3[i]);
- PlayerTextDrawHide(i,DrawIntro4[i]);
- PlayerTextDrawHide(i,DrawIntro5[i]);
- PlayerTextDrawShow(i,DrawIntroSuche1[i]);
- PlayerTextDrawShow(i,DrawIntroSuche2[i]);
- PlayerTextDrawShow(i,DrawIntroSuche3[i]);
- PlayerTextDrawShow(i,DrawIntroSuche4[i]);
- }
- if(Einlatungstimer[i] == 50) //Unsere Zombies
- {
- ClearText(i, 10);
- PlayerTextDrawHide(i,DrawIntroSuche1[i]);
- PlayerTextDrawHide(i,DrawIntroSuche2[i]);
- PlayerTextDrawHide(i,DrawIntroSuche3[i]);
- PlayerTextDrawHide(i,DrawIntroSuche4[i]);
- PlayerTextDrawShow(i,DrawIntroZombie1[i]);
- PlayerTextDrawShow(i,DrawIntroZombie2[i]);
- PlayerTextDrawShow(i,DrawIntroZombie3[i]);
- PlayerTextDrawShow(i,DrawIntroZombie4[i]);
- PlayerTextDrawShow(i,DrawIntroZombie5[i]);
- }
- if(Einlatungstimer[i] == 75) //Unsere Zombies
- {
- ClearText(i, 10);
- PlayerTextDrawHide(i,DrawIntroZombie1[i]);
- PlayerTextDrawHide(i,DrawIntroZombie2[i]);
- PlayerTextDrawHide(i,DrawIntroZombie3[i]);
- PlayerTextDrawHide(i,DrawIntroZombie4[i]);
- PlayerTextDrawHide(i,DrawIntroZombie5[i]);
- PlayerTextDrawShow(i,DrawIntroEinkaufen1[i]);
- PlayerTextDrawShow(i,DrawIntroEinkaufen2[i]);
- PlayerTextDrawShow(i,DrawIntroEinkaufen3[i]);
- PlayerTextDrawShow(i,DrawIntroEinkaufen4[i]);
- PlayerTextDrawShow(i,DrawIntroEinkaufen5[i]);
- }
- if(Einlatungstimer[i] == 100) //Unsere Läden
- {
- ClearText(i, 10);
- PlayerTextDrawHide(i,DrawIntroEinkaufen1[i]);
- PlayerTextDrawHide(i,DrawIntroEinkaufen2[i]);
- PlayerTextDrawHide(i,DrawIntroEinkaufen3[i]);
- PlayerTextDrawHide(i,DrawIntroEinkaufen4[i]);
- PlayerTextDrawHide(i,DrawIntroEinkaufen5[i]);
- PlayerTextDrawShow(i,DrawIntroZonen1[i]);
- PlayerTextDrawShow(i,DrawIntroZonen2[i]);
- PlayerTextDrawShow(i,DrawIntroZonen3[i]);
- PlayerTextDrawShow(i,DrawIntroZonen4[i]);
- PlayerTextDrawShow(i,DrawIntroZonen5[i]);
- }
- if(Einlatungstimer[i] == 125) //Fahrzeuge Zonen und Co
- {
- ClearText(i, 10);
- PlayerTextDrawHide(i,DrawIntroZonen1[i]);
- PlayerTextDrawHide(i,DrawIntroZonen2[i]);
- PlayerTextDrawHide(i,DrawIntroZonen3[i]);
- PlayerTextDrawHide(i,DrawIntroZonen4[i]);
- PlayerTextDrawHide(i,DrawIntroZonen5[i]);
- SendClientMessage(i,BLAU,"Einleitung Beendet");
- SendClientMessage(i,GELB,"Von nun an bist du auf dich allein gestellt. Suche dir am besten erst einmal eine Waffe!");
- SendClientMessage(i,GELB,"Versuche erst garnicht ein Zombie Tod zu schlagen dies kann sehr schnell in die Hose gehen");
- SendClientMessage(i,GELB,"Da Zombies nur sterben können wenn sie Abgeschossen werden! dies nur so als kleiner Tipp nebenbei");
- SendClientMessage(i,GELB,"Schieße nicht Wild umher dies lockt nur andere Spieler an und Verschwendet nur Munition Viel Erfolg");
- SendClientMessage(i,GELB,"Diese Waffe bekommst du als kleines Starts geschenkt such dir trotdem andere Waffen und Munition vor allem");
- 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");
- SendClientMessage(i,GELB,"Genau eine Zombie Zone ist nicht das du nacher doof umher Läufst an stellen wo garnix los ist");
- GameTextForPlayer(i, "~w~Kaempfe um dein~n~~r~Leben", 5000, 3);
- SetCameraBehindPlayer(i);
- UnFreezePlayer(i);
- GivePlayerWeapon(i,22,25);
- StopAudioStreamForPlayer(i);
- PlayerTextDrawShow(i,DrawKarte[i]);
- }
- }
- }
- }
- return 1;
- }
- stock GetOnLinePlayers()
- {
- new OnLine;
- for(new i, g = GetMaxPlayers(); i < g; i++)
- if(IsPlayerConnected(i))
- OnLine++;
- return OnLine;
- }
- ocmd:test(playerid,params[])
- {
- pInfo[playerid][Backpack] = 1;
- return 1;
- }
- public Timer2(playerid)
- {
- if(pInfo[playerid][pBlood] == 0)
- {
- GameTextForPlayer(playerid, "~r~Verblutet", 5000, 3);
- SetPlayerHealth(playerid,0);
- }
- if(pInfo[playerid][pBloodCounter] == 1)
- {
- pInfo[playerid][pBlood] -= 20;
- }
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(pInfo[i][pInfoos] == 1)
- {
- new rstring[528];
- format(rstring,200," Zombies ~g~Online ~w~%d~n~ Kills %d~n~ ~w~Blut %d",GetOnLinePlayers(),pInfo[playerid][pKills],pInfo[playerid][pBlood]);
- PlayerTextDrawSetString(playerid,StatsBoxDraw[i], rstring);
- }
- new Float:x, Float:y, Float:z;
- if(IsPlayerNPC(i))
- {
- GetPlayerPos(i, x,y,z);
- if(IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z))
- {
- new Float:Health;
- GetPlayerHealth(playerid,Health);
- SetPlayerHealth(playerid,Health -10);
- pInfo[playerid][pBloodCounter] = 1;
- }
- }
- }
- return 1;
- }
- public OnVehicleDamageStatusUpdate(vehicleid, playerid)
- {
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
- tires = 0;
- UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
- return 1;
- }
- ocmd:verband(playerid,params[])
- {
- pInfo[playerid][pBloodCounter] = 0;
- return 1;
- }
- public AutoTachokmhetc()
- {
- new Float:Speedo_X,Float:Speedo_Y,Float:Speedo_Z;
- for(new i=0; i<SLOTS; i++)
- {
- if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && !IsANoTachoVehicle(GetPlayerVehicleID(i)))
- {
- GetPlayerPos(i, Speedo_X, Speedo_Y, Speedo_Z);
- GetPlayerVehicleID(i);
- new str2[256],str3[256];
- if(SpeedoON[i] == 0)
- {
- tachovar[i]=SetTimerEx("tachotimer",200,true,"i",i);
- TextDrawShowForPlayer(i, TachoTankBox);
- TextDrawShowForPlayer(i, TachoBenzin[i]);
- TextDrawShowForPlayer(i, Schadenanzeige[i]);
- TextDrawShowForPlayer(i, KilometerAnzeige[i]);
- TextDrawShowForPlayer(i, Schadenanzzeigerrichtig[i]);
- GetPlayerPos(i,xx[i],yy[i],zz[i]);
- SpeedoON[i] = 1;
- }
- new Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,final_speed_int;
- new veh = GetPlayerVehicleID(i);
- GetVehicleVelocity(veh, speed_x, speed_y, speed_z);
- 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
- final_speed_int = floatround(final_speed,floatround_round);
- new kmh_anzahl = final_speed_int;
- if(kmh_anzahl >= 150)
- {
- format(str2,sizeof(str2),"~b~Tempo: ~r~%d",kmh_anzahl);
- TextDrawSetString(Schadenanzeige[i], str2);
- }
- else if(kmh_anzahl >= 100)
- {
- format(str2,sizeof(str2),"~b~Tempo: ~y~%d",kmh_anzahl);
- TextDrawSetString(Schadenanzeige[i], str2);
- }
- else if(kmh_anzahl >= 50)
- {
- format(str2,sizeof(str2),"~b~Tempo: ~w~%d",kmh_anzahl);
- TextDrawSetString(Schadenanzeige[i], str2);
- }
- else
- {
- format(str2,sizeof(str2),"~b~Tempo: ~w~%d",kmh_anzahl);
- TextDrawSetString(Schadenanzeige[i], str2);
- }
- new Float:vHealth;
- new string[126];
- GetVehicleHealth(GetPlayerVehicleID(i),vHealth);
- if(vHealth >= 999.0)
- {
- format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
- TextDrawSetString(Schadenanzzeigerrichtig[i],string);
- }
- else if(vHealth >= 750.0 && vHealth < 999.0)
- {
- format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
- TextDrawSetString(Schadenanzzeigerrichtig[i],string);
- }
- else if(vHealth >= 375.0 && vHealth < 750.0)
- {
- format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
- TextDrawSetString(Schadenanzzeigerrichtig[i],string);
- }
- else if(vHealth < 375.0)
- {
- format(string, sizeof(string), "~r~Schaden: ~w~%.1f", vHealth);
- TextDrawSetString(Schadenanzzeigerrichtig[i],string);
- }
- new vehicleid = GetPlayerVehicleID(i);
- format(str3,sizeof(str3),"~b~Tank: ~w~%d / %d Liter", Gas[vehicleid],GetGasMax(GetVehicleModel(vehicleid)));
- TextDrawSetString(TachoBenzin[i], str3);
- }
- SavePlayerPos[i][sX] = Speedo_X, SavePlayerPos[i][sY] = Speedo_Y, SavePlayerPos[i][sZ] = Speedo_Z;
- }
- for(new i=0; i<SLOTS; i++)
- {
- if(!IsPlayerInAnyVehicle(i))
- {
- TextDrawHideForPlayer(i, TachoTankBox);
- TextDrawHideForPlayer(i, TachoBenzin[i]);
- TextDrawHideForPlayer(i, Schadenanzeige[i]);
- TextDrawHideForPlayer(i, KilometerAnzeige[i]);
- TextDrawHideForPlayer(i, Schadenanzzeigerrichtig[i]);
- KillTimer(tachovar[i]);
- SpeedoON[i] = 0;
- }
- }
- }
- public IsANoTachoVehicle(carid)
- {
- new model = GetVehicleModel(carid);
- {
- if(model == 481 || model == 509 || model == 510)
- {
- return 1;
- }
- }
- return 0;
- }
- public Float:GetDistanceFromPointToPoint(Float:KOLOMETERX,Float:KOLOMETERY,Float:KOLOMETERZ,Float:tX,Float:tY,Float:tZ)
- {
- return Float:floatsqroot((tX-KOLOMETERX)*(tX-KOLOMETERX)+(tY-KOLOMETERY)*(tY-KOLOMETERY)+(tZ-KOLOMETERZ)*(tZ-KOLOMETERZ));
- }
- public Fillup()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new VID;
- new FillUp;
- new string[256];
- VID = GetPlayerVehicleID(i);
- FillUp = GetGasMax(GetVehicleModel(VID)) - Gas[VID];
- if(Refueling[i] == 1)
- {
- if(GetPlayerMoney(i) >= FillUp+1)
- {
- Gas[VID] += FillUp;
- format(string,sizeof(string),"* Fahrzeug für $%d aufgetankt",FillUp);
- SendClientMessage(i,0x730000FF,string);
- GivePlayerMoney(i, - FillUp);
- Refueling[i] = 0;
- UnFreezePlayer(i);
- }
- else
- {
- format(string,sizeof(string),"* Du hast nicht genug Geld zum Tanken, Kosten: $%d / Liter.",FillUp);
- SendClientMessage(i,0x730000FF,string);
- }
- }
- }
- }
- return 1;
- }
- stock GetGasMax(vehmodel)
- {
- if(vehmodel >= 400 && vehmodel <= 611)
- {
- return GasMax[(vehmodel-400)];
- }
- return 100;
- }
- public CheckGas()
- {
- new string[256];
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
- {
- new vehicle = GetPlayerVehicleID(i);
- new Model = GetVehicleModel(GetPlayerVehicleID(i));
- if(Gas[vehicle] >= 1)
- {
- if(Gas[vehicle] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
- if(gGas[i] == 1) {
- format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Benzin:~w~ %d%",Gas[vehicle]);
- GameTextForPlayer(i,string,15500,3); }
- if(Model == 462 || Model == 481)
- {
- Gas[vehicle]++;
- }
- new engine3,lights3,alarm3,doors3,bonnet3,boot3,objective3;
- new vid = GetPlayerVehicleID(i);
- GetVehicleParamsEx(vid,engine3,lights3,alarm3,doors3,bonnet3,boot3,objective3);
- if(vid != INVALID_VEHICLE_ID)
- {
- if(engine3 == VEHICLE_PARAMS_ON)
- {
- Gas[vehicle]--;
- }
- }
- }
- else
- {
- NoFuel[i] = 1;
- FreezePlayer(i);
- GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Kein Benzin mehr~n~Gib /exit ein um auszusteigen.",1500,3);
- }
- if(Gas[vehicle] > GetGasMax(GetVehicleModel(vehicle)))
- {
- Gas[vehicle] = GetGasMax(GetVehicleModel(vehicle));
- }
- }
- }
- }
- return 1;
- }
- public tachotimer(playerid)
- {
- new string[50];
- new Float:distanz;
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- distanz=GetDistanceFromPointToPoint(xx[playerid],yy[playerid],zz[playerid],x,y,z);
- if(distanz>100) return 1;
- distance[playerid]=distance[playerid]+distanz;
- GetPlayerPos(playerid,xx[playerid],yy[playerid],zz[playerid]);
- if(distance[playerid]>100)
- {
- mmm1[playerid]++;
- distance[playerid]=distance[playerid]-100;
- if(mmm1[playerid]==10)
- {
- km[playerid]++;
- mmm1[playerid]=0;
- }
- format(string,sizeof(string),"~b~Stand: ~w~ %i,%i km",km[playerid],mmm1[playerid]);
- TextDrawSetString(KilometerAnzeige[playerid],string);
- }
- return 1;
- }
- ocmd:exit(playerid,params[])
- {
- if(NoFuel[playerid] == 1)
- {
- UnFreezePlayer(playerid);
- RemovePlayerFromVehicle(playerid);
- NoFuel[playerid] = 0;
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment