Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////
- // FS BY: |...MIHAEL...| //
- // VALLIS AUREA RP SCRIPTER //
- // DON'T REMOVE CREDITS //
- // DON'T REMOVE CREDITS //
- // DON'T REMOVE CREDITS //
- // DON'T REMOVE CREDITS //
- ///////////////////////////////////////////////
- #include <a_samp>
- #include <zcmd>
- //~~~~~~~~~~~~~~boje~~~~~~~~~~~~~~~~~//
- #define CRVENI_KURAC 0xFF0000AA
- #define PLAVI_KURAC 0x0000A0FF
- //~~~~~~~~~~~~~~dmz~~~~~~~~~~~~~~~~~~//
- new gang[MAX_PLAYERS];
- new Float:posX, Float:posY, Float:posZ, Float:facingA;
- new Float:OldHealth;
- new PNAME[MAX_PLAYER_NAME];
- new Text:nest;
- new CT1,CT2,CT3,CT4,CT5,CT6,CT7,CT8,CT9;
- new PT1,PT2,PT3,PT4,PT5,PT6,PT7,PT8,PT9;
- //~~~~~~~~~~~~~dialog~~~~~~~~~~~~~~~~//
- #define DMZ 100 // DA NAGLASIM DA JE OVAJ BROJ POTREBNO PROMJENITI UKOLIKO U MODU VEC IMATE DIALOG S OVIM ID-OM
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" NE BRISI CREDITSE, NE SMJETAJU TI! ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print(" DM ZONA BY |...MihaeL...| ");
- print("--------------------------------------\n");
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~VOZILA U DM ZONI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
- CT1 = AddStaticVehicle(424,2500.8691,-2596.7678,13.4307,88.3588,2,2); //
- CT2 = AddStaticVehicle(424,2501.8662,-2601.2217,13.4307,88.0515,2,2); //
- CT3 = AddStaticVehicle(424,2501.6819,-2607.6858,13.4305,87.3684,2,2); //
- CT4 = AddStaticVehicle(432,2460.9326,-2616.4656,13.6759,268.9763,2,2); //
- CT5 = AddStaticVehicle(432,2462.5791,-2606.6326,13.6752,269.4389,2,2); //
- CT6 = AddStaticVehicle(470,2500.8953,-2617.6912,13.6425,93.1071,2,2); //
- CT7 = AddStaticVehicle(471,2472.0649,-2632.5723,13.1336,269.7800,2,2); //
- CT8 = AddStaticVehicle(471,2472.1494,-2628.4050,13.1344,269.7249,2,2); //
- CT9 = AddStaticVehicle(471,2472.2114,-2623.8792,13.1332,270.7732,2,2); //
- PT1 = AddStaticVehicle(432,2790.0874,-2494.8694,13.6601,89.4840,54,92); //
- PT2 = AddStaticVehicle(432,2787.6147,-2456.2517,13.6474,90.2049,54,92); //
- PT3 = AddStaticVehicle(471,2794.1477,-2480.0735,13.1249,0.1181,2,2); //
- PT4 = AddStaticVehicle(471,2789.9895,-2480.0811,13.1281,358.8575,2,2); //
- PT5 = AddStaticVehicle(471,2785.4458,-2479.9141,13.1290,359.7951,2,2); //
- PT6 = AddStaticVehicle(470,2794.9751,-2470.2749,13.6301,89.6104,2,2); //
- PT7 = AddStaticVehicle(470,2783.6282,-2470.1414,13.6269,88.7418,2,2); //
- PT8 = AddStaticVehicle(424,2806.4390,-2486.3013,13.4094,359.0850,3,3); //
- PT9 = AddStaticVehicle(424,2806.4219,-2461.0962,13.4112,181.7527,3,3); //
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~NEKI TEXTDRAW~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
- nest = TextDrawCreate(218 ,456 , "Ovaj server koristi DM zonu by: |...MihaeL...|");
- TextDrawFont(nest , 1);
- TextDrawLetterSize(nest , 0.6, 4.2);
- TextDrawColor(nest , 0xff0000FF);
- TextDrawSetOutline(nest , false);
- TextDrawSetProportional(nest , true);
- TextDrawSetShadow(nest , 1);
- return 1;
- }
- #endif
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, nest);
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~spawnanje poslje krepavanja u DM zoni~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
- if(gang[playerid] == 1)
- {
- SetPlayerPos(playerid, 2801.5886,-2474.6211,13.6334);
- GivePlayerWeapon(playerid, 42, 10000);
- GivePlayerWeapon(playerid, 39, 10000);
- GivePlayerWeapon(playerid, 34, 10000);
- GivePlayerWeapon(playerid, 31, 10000);
- GivePlayerWeapon(playerid, 29, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- GivePlayerWeapon(playerid, 24, 10000);
- SetPlayerHealth(playerid, 100);
- return 1;
- }
- else if(gang[playerid] == 2)
- {
- SetPlayerPos(playerid, 2463.7363,-2596.1802,13.6613);
- GivePlayerWeapon(playerid, 42, 10000);
- GivePlayerWeapon(playerid, 39, 10000);
- GivePlayerWeapon(playerid, 34, 10000);
- GivePlayerWeapon(playerid, 31, 10000);
- GivePlayerWeapon(playerid, 29, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- GivePlayerWeapon(playerid, 24, 10000);
- SetPlayerHealth(playerid, 100);
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new newcar = GetPlayerVehicleID(playerid);
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~VOZILA U DM ZONI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
- if(newcar == CT1 || newcar == CT2 || newcar == CT3 || newcar == CT4 || newcar == CT5 || newcar == CT6 || newcar == CT7 || newcar == CT8 || newcar == CT9)
- {
- if(gang[playerid] == 1){ }
- else
- {
- GameTextForPlayer(playerid, "~w~Nisi u Crvenom Timu u DM zoni, jebiga!", 5000, 1);
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- }
- if(newcar == PT1 || newcar == PT2 || newcar == PT3 || newcar == PT4 || newcar == PT5 || newcar == PT6 || newcar == PT7 || newcar == PT8 || newcar == PT9)
- {
- if(gang[playerid] == 2){ }
- else
- {
- GameTextForPlayer(playerid, "~w~Nisi u Plavom Timu u DM zoni, jebiga!", 5000, 1);
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DMZ) //vamo stavite isti broj kao sto ste maloprije stavili
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(gang[playerid] == 2)
- {
- SendClientMessage(playerid,CRVENI_KURAC,"Moras napustit tim da bi usao u drugi.");
- return 1;
- }
- gang[playerid] = 1;
- SetPlayerSkin(playerid,232);
- SetPlayerColor(playerid,CRVENI_KURAC);
- GivePlayerWeapon(playerid,22,100);
- GivePlayerWeapon(playerid,29,100);
- GivePlayerWeapon(playerid, 42, 10000);
- GivePlayerWeapon(playerid, 39, 10000);
- GivePlayerWeapon(playerid, 34, 10000);
- GivePlayerWeapon(playerid, 31, 10000);
- GivePlayerWeapon(playerid, 29, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- GivePlayerWeapon(playerid, 24, 10000);
- SetPlayerHealth(playerid,100);
- GetPlayerHealth(playerid,OldHealth);
- GetPlayerPos(playerid, posX, posY, posZ);
- GetPlayerFacingAngle(playerid, facingA);
- SendClientMessage(playerid,CRVENI_KURAC,"Dobro dosao Crveni tim.");
- }
- if(listitem == 1)
- {
- if(gang[playerid] == 1)
- {
- SendClientMessage(playerid,PLAVI_KURAC,"Moras napustit tim da bi usao u drugi.");
- return 1;
- }
- gang[playerid] = 2;
- SetPlayerColor(playerid,PLAVI_KURAC);
- GivePlayerWeapon(playerid, 22, 10000);
- GivePlayerWeapon(playerid, 42, 10000);
- GivePlayerWeapon(playerid, 39, 10000);
- GivePlayerWeapon(playerid, 34, 10000);
- GivePlayerWeapon(playerid, 31, 10000);
- GivePlayerWeapon(playerid, 29, 10000);
- GivePlayerWeapon(playerid, 27, 10000);
- GivePlayerWeapon(playerid, 24, 10000);
- GetPlayerPos(playerid, posX, posY, posZ);
- GetPlayerFacingAngle(playerid, facingA);
- SetPlayerPos(playerid,2463.7363,-2596.1802,13.6613);
- SendClientMessage(playerid,PLAVI_KURAC,"Dobro dosao Plavi tim");
- SetPlayerHealth(playerid,100);
- GetPlayerHealth(playerid,OldHealth);
- }
- }
- }
- return 1;
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DM ZONA KOMANDE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
- CMD:dmzulaz(playerid, params[])
- {
- ShowPlayerDialog(playerid,DMZ,DIALOG_STYLE_LIST,"DMZONA TIMOVI","1.Crveni tim\n2.Plavi tim","Odaberi", "Odustani");
- return 1;
- }
- CMD:napustidmz(playerid, params[])
- {
- new string[68];
- if(gang[playerid] == 0)
- {
- SendClientMessage(playerid,CRVENI_KURAC,"Nisi u timu u dm zoni.");
- return 1;
- }
- gang[playerid] = 0;
- SetPlayerPos(playerid, posX, posY, posZ);
- SetPlayerFacingAngle(playerid, facingA);
- SetPlayerHealth(playerid,OldHealth);
- ResetPlayerWeapons(playerid);
- GetPlayerName(playerid, PNAME, MAX_PLAYERS);
- format(string, sizeof(string), "%s je Napustio DM zonu.", PNAME);
- SendClientMessageToAll(PLAVI_KURAC,string);
- return 1;
- }
- //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
Advertisement
Add Comment
Please, Sign In to add comment