5 warnings
#1

how do i fix these 5 warnings

Код:
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1.pwn(574) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1.pwn(575) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1.pwn(738) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1.pwn(916) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1.pwn(1313) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
HERE IS MY SCRIPT

Код:
    /*
	1v1/ Dm Server - Version 4.2.0 - Latest
	By Anak

	I made it in late 2012, I don't use it so i release it on
	Sa-mp forums.
	Feel free to edit the script.
	Don't remove credits!
	Don't release anywhere else without my permission.

	Contact:

	Real Name: Nouman Arshad
	Forum Name: Anak
	Sa-mp account: http://forum.sa-mp.com/member.php?u=1725...8.80891120	********: /nouman.arshad.98
	Email: noumanarshad0320@gmail.com
	Website: 1v1crew.tk
    */

	//-----------------------------------------------------------------
	//INCLUDES


    #include <a_samp>
    #include <Dini>
    #include <sscanf2>
    #include "../include/gl_common.inc"

    //DEFINES
    #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_PURPLE2 0x880088FF
    #define COLOR_ACTIVEBORDER 0xB4B4B4FF
    #define COLOR_ACTIVECAPTION 0x99B4D1FF
    #define COLOR_ACTIVECAPTIONTEXT 0x000000FF
    #define COLOR_ALICEBLUE 0xF0F8FFFF
    #define COLOR_ANTIQUEWHITE 0xFAEBD7FF
    #define COLOR_APPWORKSPACE 0xABABABFF
    #define COLOR_AQUA 0x00FFFFFF
    #define COLOR_AQUAMARINE 0x7FFFD4FF
    #define COLOR_AZURE 0xF0FFFFFF
    #define COLOR_BEIGE 0xF5F5DCFF
    #define COLOR_BISQUE 0xFFE4C4FF
    #define COLOR_BLACK 0x000000FF
    #define COLOR_BLANCHEDALMOND 0xFFEBCDFF
    #define COLOR_BLUE 0x0000FFFF
    #define COLOR_BLUEVIOLET 0x8A2BE2FF
    #define COLOR_BROWN 0xA52A2AFF
    #define LIGHTBLUE 0x0000FFFF
    #define COLOR_BURLYWOOD 0xDEB887FF
    #define COLOR_BUTTONFACE 0xF0F0F0FF
    #define COLOR_BUTTONHIGHLIGHT 0xFFFFFFFF
    #define COLOR_BUTTONSHADOW 0xA0A0A0FF
    #define COLOR_CADETBLUE 0x5F9EA0FF
    #define COLOR_CHARTREUSE 0x7FFF00FF
    #define COLOR_CHOCOLATE 0xD2691EFF
    #define COLOR_CONTROL 0xF0F0F0FF
    #define COLOR_CONTROLDARK 0xA0A0A0FF
    #define COLOR_CONTROLDARKDARK 0x696969FF
    #define COLOR_CONTROLLIGHT 0xE3E3E3FF
    #define COLOR_CONTROLLIGHTLIGHT 0xFFFFFFFF
    #define COLOR_CONTROLTEXT 0x000000FF
    #define COLOR_CORAL 0xFF7F50FF
    #define COLOR_CORNFLOWERBLUE 0x6495EDFF
    #define COLOR_CORNSILK 0xFFF8DCFF
    #define COLOR_CRIMSON 0xDC143CFF
    #define COLOR_CYAN 0x00FFFFFF
    #define COLOR_DARKBLUE 0x00008BFF
    #define COLOR_DARKCYAN 0x008B8BFF
    #define COLOR_DARKGOLDENROD 0xB8860BFF
    #define COLOR_DARKGRAY 0xA9A9A9FF
    #define COLOR_DARKGREEN 0x006400FF
    #define COLOR_DARKKHAKI 0xBDB76BFF
    #define COLOR_DARKMAGENTA 0x8B008BFF
    #define COLOR_DARKOLIVEGREEN 0x556B2FFF
    #define COLOR_DARKORANGE 0xFF8C00FF
    #define COLOR_DARKORCHID 0x9932CCFF
    #define COLOR_DARKRED 0x8B0000FF
    #define COLOR_DARKSALMON 0xE9967AFF
    #define COLOR_DARKSEAGREEN 0x8FBC8BFF
    #define COLOR_DARKSLATEBLUE 0x483D8BFF
    #define COLOR_DARKSLATEGRAY 0x2F4F4FFF
    #define COLOR_DARKTURQUOISE 0x00CED1FF
    #define COLOR_DARKVIOLET 0x9400D3FF
    #define COLOR_DEEPPINK 0xFF1493FF
    #define COLOR_DEEPSKYBLUE 0x00BFFFFF
    #define COLOR_DESKTOP 0x000000FF
    #define COLOR_DIMGRAY 0x696969FF
    #define COLOR_DODGERBLUE 0x1E90FFFF
    #define COLOR_FIREBRICK 0xB22222FF
    #define COLOR_FLORALWHITE 0xFFFAF0FF
    #define COLOR_FORESTGREEN 0x228B22FF
    #define COLOR_FUCHSIA 0xFF00FFFF
    #define COLOR_GAINSBORO 0xDCDCDCFF
    #define COLOR_GHOSTWHITE 0xF8F8FFFF
    #define COLOR_GOLD 0xFFD700FF
    #define COLOR_GOLDENROD 0xDAA520FF
    #define COLOR_GRADIENTACTIVECAPTION 0xB9D1EAFF
    #define COLOR_GRADIENTINACTIVECAPTION 0xD7E4F2FF
    #define COLOR_GRAY 0x808080FF
    #define COLOR_GRAYTEXT 0x808080FF
    #define COLOR_GREEN 0x008000FF
    #define COLOR_GREENYELLOW 0xADFF2FFF
    #define COLOR_HIGHLIGHT 0x3399FFFF
    #define COLOR_HIGHLIGHTTEXT 0xFFFFFFFF
    #define COLOR_HONEYDEW 0xF0FFF0FF
    #define COLOR_HOTPINK 0xFF69B4FF
    #define COLOR_HOTTRACK 0x0066CCFF
    #define COLOR_INACTIVEBORDER 0xF4F7FCFF
    #define COLOR_INACTIVECAPTION 0xBFCDDBFF
    #define COLOR_INACTIVECAPTIONTEXT 0x434E54FF
    #define COLOR_INDIANRED 0xCD5C5CFF
    #define COLOR_INDIGO 0x4B0082FF
    #define COLOR_INFO 0xFFFFE1FF
    #define COLOR_INFOTEXT 0x000000FF
    #define COLOR_IVORY 0xFFFFF0FF
    #define COLOR_KHAKI 0xF0E68CFF
    #define COLOR_LAVENDER 0xE6E6FAFF
    #define COLOR_LAVENDERBLUSH 0xFFF0F5FF
    #define COLOR_LAWNGREEN 0x7CFC00FF
    #define COLOR_LEMONCHIFFON 0xFFFACDFF
    #define COLOR_LIGHTBLUE 0xADD8E6FF
    #define COLOR_LIGHTCORAL 0xF08080FF
    #define COLOR_LIGHTCYAN 0xE0FFFFFF
    #define COLOR_LIGHTGOLDENRODYELLOW 0xFAFAD2FF
    #define COLOR_LIGHTGRAY 0xD3D3D3FF
    #define COLOR_LIGHTGREEN 0x90EE90FF
    #define COLOR_LIGHTPINK 0xFFB6C1FF
    #define COLOR_LIGHTSALMON 0xFFA07AFF
    #define COLOR_LIGHTSEAGREEN 0x20B2AAFF
    #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
    #define COLOR_LIGHTSLATEGRAY 0x778899FF
    #define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
    #define COLOR_LIGHTYELLOW 0xFFFFE0FF
    #define YELLOW 0xFFFFE0FF
    #define COLOR_LIME 0x00FF00FF
    #define COLOR_LIMEGREEN 0x32CD32FF
    #define COLOR_LINEN 0xFAF0E6FF
    #define COLOR_MAGENTA 0xFF00FFFF
    #define COLOR_MAROON 0x800000FF
    #define COLOR_MEDIUMAQUAMARINE 0x66CDAAFF
    #define COLOR_MEDIUMBLUE 0x0000CDFF
    #define COLOR_MEDIUMORCHID 0xBA55D3FF
    #define COLOR_MEDIUMPURPLE 0x9370DBFF
    #define COLOR_MEDIUMSEAGREEN 0x3CB371FF
    #define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
    #define COLOR_MEDIUMSPRINGGREEN 0x00FA9AFF
    #define COLOR_MEDIUMTURQUOISE 0x48D1CCFF
    #define COLOR_MEDIUMVIOLETRED 0xC71585FF
    #define COLOR_MENU 0xF0F0F0FF
    #define COLOR_MENUBAR 0xF0F0F0FF
    #define COLOR_MENUHIGHLIGHT 0x3399FFFF
    #define COLOR_MENUTEXT 0x000000FF
    #define COLOR_MIDNIGHTBLUE 0x191970FF
    #define COLOR_MINTCREAM 0xF5FFFAFF
    #define COLOR_MISTYROSE 0xFFE4E1FF
    #define COLOR_MOCCASIN 0xFFE4B5FF
    #define COLOR_NAVAJOWHITE 0xFFDEADFF
    #define COLOR_NAVY 0x000080FF
    #define COLOR_OLDLACE 0xFDF5E6FF
    #define COLOR_OLIVE 0x808000FF
    #define COLOR_OLIVEDRAB 0x6B8E23FF
    #define COLOR_ORANGE 0xFFA500FF
    #define ORANGE 0xFFA500FF
    #define COLOR_ORANGERED 0xFF4500FF
    #define COLOR_ORCHID 0xDA70D6FF
    #define COLOR_PALEGOLDENROD 0xEEE8AAFF
    #define COLOR_PALEGREEN 0x98FB98FF
    #define COLOR_PALETURQUOISE 0xAFEEEEFF
    #define COLOR_PALEVIOLETRED 0xDB7093FF
    #define COLOR_PAPAYAWHIP 0xFFEFD5FF
    #define COLOR_PEACHPUFF 0xFFDAB9FF
    #define COLOR_PERU 0xCD853FFF
    #define COLOR_PINK 0xFFC0CBFF
    #define COLOR_PLUM 0xDDA0DDFF
    #define COLOR_POWDERBLUE 0xB0E0E6FF
    #define COLOR_PURPLE 0x800080FF
    #define COLOR_RED 0xFF0000FF
    #define COLOR_ROSYBROWN 0xBC8F8FFF
    #define COLOR_ROYALBLUE 0x4169E1FF
    #define COLOR_SADDLEBROWN 0x8B4513FF
    #define COLOR_SALMON 0xFA8072FF
    #define COLOR_SANDYBROWN 0xF4A460FF
    #define COLOR_SCROLLBAR 0xC8C8C8FF
    #define COLOR_SEAGREEN 0x2E8B57FF
    #define COLOR_SEASHELL 0xFFF5EEFF
    #define COLOR_SIENNA 0xA0522DFF
    #define COLOR_SILVER 0xC0C0C0FF
    #define COLOR_SKYBLUE 0x87CEEBFF
    #define COLOR_SLATEBLUE 0x6A5ACDFF
    #define COLOR_SLATEGRAY 0x708090FF
    #define COLOR_SNOW 0xFFFAFAFF
    #define COLOR_SPRINGGREEN 0x00FF7FFF
    #define COLOR_STEELBLUE 0x4682B4FF
    #define COLOR_TAN 0xD2B48CFF
    #define COLOR_TEAL 0x008080FF
    #define COLOR_THISTLE 0xD8BFD8FF
    #define COLOR_TOMATO 0xFF6347FF
    #define COLOR_TRANSPARENT 0xFFFFFF00
    #define COLOR_TURQUOISE 0x40E0D0FF
    #define COLOR_VIOLET 0xEE82EEFF
    #define COLOR_WHEAT 0xF5DEB3FF
    #define COLOR_WHITE 0xFFFFFFFF
    #define COLOR_WHITESMOKE 0xF5F5F5FF
    #define COLOR_WINDOW 0xFFFFFFFF
    #define COLOR_WINDOWFRAME 0x646464FF
    #define COLOR_WINDOWTEXT 0x000000FF
    #define COLOR_YELLOW 0xFFFF00FF
    #define COLOR_YELLOWGREEN 0x9ACD32FF
    #define STEALTH_ORANGE 0xFF880000
    #define STEALTH_OLIVE 0x66660000
    #define STEALTH_GREEN 0x33DD1100
    #define STEALTH_PINK 0xFF22EE00
    #define STEALTH_BLUE 0x0077BB00



    #define DIALOG_ATTACH_INDEX             13500
#define DIALOG_ATTACH_INDEX_SELECTION   DIALOG_ATTACH_INDEX+1
#define DIALOG_ATTACH_EDITREPLACE       DIALOG_ATTACH_INDEX+2
#define DIALOG_ATTACH_MODEL_SELECTION   DIALOG_ATTACH_INDEX+3
#define DIALOG_ATTACH_BONE_SELECTION    DIALOG_ATTACH_INDEX+4

enum AttachmentEnum
{
    attachmodel,
    attachname[24]
}

new AttachmentObjects[][AttachmentEnum] = {
{18632, "FishingRod"},
{18633, "GTASAWrench1"},
{18634, "GTASACrowbar1"},
{18635, "GTASAHammer1"},
{18636, "PoliceCap1"},
{18637, "PoliceShield1"},
{18638, "HardHat1"},
{18639, "BlackHat1"},
{18640, "Hair1"},
{18975, "Hair2"},
{19136, "Hair4"},
{19274, "Hair5"},
{18641, "Flashlight1"},
{18642, "Taser1"},
{18643, "LaserPointer1"},
{19080, "LaserPointer2"},
{19081, "LaserPointer3"},
{19082, "LaserPointer4"},
{19083, "LaserPointer5"},
{19084, "LaserPointer6"},
{18644, "Screwdriver1"},
{18645, "MotorcycleHelmet1"},
{18865, "MobilePhone1"},
{18866, "MobilePhone2"},
{18867, "MobilePhone3"},
{18868, "MobilePhone4"},
{18869, "MobilePhone5"},
{18870, "MobilePhone6"},
{18871, "MobilePhone7"},
{18872, "MobilePhone8"},
{18873, "MobilePhone9"},
{18874, "MobilePhone10"},
{18875, "Pager1"},
{18890, "Rake1"},
{18891, "Bandana1"},
{18892, "Bandana2"},
{18893, "Bandana3"},
{18894, "Bandana4"},
{18895, "Bandana5"},
{18896, "Bandana6"},
{18897, "Bandana7"},
{18898, "Bandana8"},
{18899, "Bandana9"},
{18900, "Bandana10"},
{18901, "Bandana11"},
{18902, "Bandana12"},
{18903, "Bandana13"},
{18904, "Bandana14"},
{18905, "Bandana15"},
{18906, "Bandana16"},
{18907, "Bandana17"},
{18908, "Bandana18"},
{18909, "Bandana19"},
{18910, "Bandana20"},
{18911, "Mask1"},
{18912, "Mask2"},
{18913, "Mask3"},
{18914, "Mask4"},
{18915, "Mask5"},
{18916, "Mask6"},
{18917, "Mask7"},
{18918, "Mask8"},
{18919, "Mask9"},
{18920, "Mask10"},
{18921, "Beret1"},
{18922, "Beret2"},
{18923, "Beret3"},
{18924, "Beret4"},
{18925, "Beret5"},
{18926, "Hat1"},
{18927, "Hat2"},
{18928, "Hat3"},
{18929, "Hat4"},
{18930, "Hat5"},
{18931, "Hat6"},
{18932, "Hat7"},
{18933, "Hat8"},
{18934, "Hat9"},
{18935, "Hat10"},
{18936, "Helmet1"},
{18937, "Helmet2"},
{18938, "Helmet3"},
{18939, "CapBack1"},
{18940, "CapBack2"},
{18941, "CapBack3"},
{18942, "CapBack4"},
{18943, "CapBack5"},
{18944, "HatBoater1"},
{18945, "HatBoater2"},
{18946, "HatBoater3"},
{18947, "HatBowler1"},
{18948, "HatBowler2"},
{18949, "HatBowler3"},
{18950, "HatBowler4"},
{18951, "HatBowler5"},
{18952, "BoxingHelmet1"},
{18953, "CapKnit1"},
{18954, "CapKnit2"},
{18955, "CapOverEye1"},
{18956, "CapOverEye2"},
{18957, "CapOverEye3"},
{18958, "CapOverEye4"},
{18959, "CapOverEye5"},
{18960, "CapRimUp1"},
{18961, "CapTrucker1"},
{18962, "CowboyHat2"},
{18963, "CJElvisHead"},
{18964, "SkullyCap1"},
{18965, "SkullyCap2"},
{18966, "SkullyCap3"},
{18967, "HatMan1"},
{18968, "HatMan2"},
{18969, "HatMan3"},
{18970, "HatTiger1"},
{18971, "HatCool1"},
{18972, "HatCool2"},
{18973, "HatCool3"},
{18974, "MaskZorro1"},
{18976, "MotorcycleHelmet2"},
{18977, "MotorcycleHelmet3"},
{18978, "MotorcycleHelmet4"},
{18979, "MotorcycleHelmet5"},
{19006, "GlassesType1"},
{19007, "GlassesType2"},
{19008, "GlassesType3"},
{19009, "GlassesType4"},
{19010, "GlassesType5"},
{19011, "GlassesType6"},
{19012, "GlassesType7"},
{19013, "GlassesType8"},
{19014, "GlassesType9"},
{19015, "GlassesType10"},
{19016, "GlassesType11"},
{19017, "GlassesType12"},
{19018, "GlassesType13"},
{19019, "GlassesType14"},
{19020, "GlassesType15"},
{19021, "GlassesType16"},
{19022, "GlassesType17"},
{19023, "GlassesType18"},
{19024, "GlassesType19"},
{19025, "GlassesType20"},
{19026, "GlassesType21"},
{19027, "GlassesType22"},
{19028, "GlassesType23"},
{19029, "GlassesType24"},
{19030, "GlassesType25"},
{19031, "GlassesType26"},
{19032, "GlassesType27"},
{19033, "GlassesType28"},
{19034, "GlassesType29"},
{19035, "GlassesType30"},
{19036, "HockeyMask1"},
{19037, "HockeyMask2"},
{19038, "HockeyMask3"},
{19039, "WatchType1"},
{19040, "WatchType2"},
{19041, "WatchType3"},
{19042, "WatchType4"},
{19043, "WatchType5"},
{19044, "WatchType6"},
{19045, "WatchType7"},
{19046, "WatchType8"},
{19047, "WatchType9"},
{19048, "WatchType10"},
{19049, "WatchType11"},
{19050, "WatchType12"},
{19051, "WatchType13"},
{19052, "WatchType14"},
{19053, "WatchType15"},
{19085, "EyePatch1"},
{19086, "ChainsawDildo1"},
{19090, "PomPomBlue"},
{19091, "PomPomRed"},
{19092, "PomPomGreen"},
{19093, "HardHat2"},
{19094, "BurgerShotHat1"},
{19095, "CowboyHat1"},
{19096, "CowboyHat3"},
{19097, "CowboyHat4"},
{19098, "CowboyHat5"},
{19099, "PoliceCap2"},
{19100, "PoliceCap3"},
{19101, "ArmyHelmet1"},
{19102, "ArmyHelmet2"},
{19103, "ArmyHelmet3"},
{19104, "ArmyHelmet4"},
{19105, "ArmyHelmet5"},
{19106, "ArmyHelmet6"},
{19107, "ArmyHelmet7"},
{19108, "ArmyHelmet8"},
{19109, "ArmyHelmet9"},
{19110, "ArmyHelmet10"},
{19111, "ArmyHelmet11"},
{19112, "ArmyHelmet12"},
{19113, "SillyHelmet1"},
{19114, "SillyHelmet2"},
{19115, "SillyHelmet3"},
{19116, "PlainHelmet1"},
{19117, "PlainHelmet2"},
{19118, "PlainHelmet3"},
{19119, "PlainHelmet4"},
{19120, "PlainHelmet5"},
{19137, "CluckinBellHat1"},
{19138, "PoliceGlasses1"},
{19139, "PoliceGlasses2"},
{19140, "PoliceGlasses3"},
{19141, "SWATHelmet1"},
{19142, "SWATArmour1"},
{19160, "HardHat3"},
{19161, "PoliceHat1"},
{19162, "PoliceHat2"},
{19163, "GimpMask1"},
{19317, "bassguitar01"},
{19318, "flyingv01"},
{19319, "warlock01"},
{19330, "fire_hat01"},
{19331, "fire_hat02"},
{19346, "hotdog01"},
{19347, "badge01"},
{19348, "cane01"},
{19349, "monocle01"},
{19350, "moustache01"},
{19351, "moustache02"},
{19352, "tophat01"},
{19487, "tophat02"},
{19488, "HatBowler6"},
{19513, "whitephone"},
{19515, "GreySwatArm"}
};

new AttachmentBones[][24] = {
{"Spine"},
{"Head"},
{"Left upper arm"},
{"Right upper arm"},
{"Left hand"},
{"Right hand"},
{"Left thigh"},
{"Right thigh"},
{"Left foot"},
{"Right foot"},
{"Right calf"},
{"Left calf"},
{"Left forearm"},
{"Right forearm"},
{"Left clavicle"},
{"Right clavicle"},
{"Neck"},
{"Jaw"}
};



    new USED_AD[MAX_PLAYERS];
	new ON_DRUGS[MAX_PLAYERS];
	new challenge[MAX_PLAYERS];
	new buyad[MAX_PLAYERS];

    new AD_TIMER_ID;
    new DRUG_TIMER_RESPONSE1;

    new armour_ls;
    new armour_drylake;
    new swanoff_drylake;
    new Health_drylake;
    new armour_sfa;


    #define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

    new total_vehicles_from_files=0;
    new PlayerText:Textdraw0;
    new PlayerText:Textdraw1;
    new PlayerText:Textdraw2;
    new PlayerText:Textdraw3;
    new PlayerText:Textdraw4;
    new PlayerText:Textdraw5;
    new KillStreak[MAX_PLAYERS];
    enum gPInfo
    {
        Logged,
        Regged,
        Level,
        IsSpecing,
        Float:X,
        Float:Y,
        Float:Z,
        Float:Ang
    }


    new PInfo[MAX_PLAYERS][gPInfo];

    main()
    {
            print("\n----------------------------------");
            print("1v1 /Dm by Anak Loaded. Version 4.2.0 Checked!");
            print("----------------------------------\n");
    }



    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == armour_ls)
    {
        SetPlayerArmour(playerid, 100);
    }
    else if(pickupid == armour_drylake)
    {
        SetPlayerArmour(playerid, 100);
    }
    else if(pickupid == swanoff_drylake)
    {
        GivePlayerWeapon(playerid, 26, 50000);
    }
    else if(pickupid == Health_drylake)
    {
        SetPlayerHealth(playerid, 100);
    }
    else if(pickupid == armour_sfa)
    {
        SetPlayerArmour(playerid, 100);
    }
    return 1;
    }


    public OnGameModeInit()
    {

    //dmap_GameModeInit();

	// SPECIAL
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");

   	// LAS VENTURAS
     total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");

    // SAN FIERRO
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");

    // LOS SANTOS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");

    // OTHER AREAS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");

    printf("Total vehicles from files: %d",total_vehicles_from_files);




    //AddStaticVehicleEx(522,-1191.9000244,-976.9000244,137.6999969,268.0000000,132,4,15); //NRG-500
    CreateObject(972,-1005.0000000,-923.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
    CreateObject(972,-1005.0000000,-948.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
    CreateObject(972,-1005.0000000,-973.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (3)
    CreateObject(972,-1005.0000000,-997.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (4)
    CreateObject(972,-1005.0999756,-1022.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (5)
    CreateObject(972,-1005.0000000,-1047.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (6)
    CreateObject(972,-1005.0999756,-1056.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (7)
    CreateObject(972,-1016.2000122,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (8)
    CreateObject(972,-1041.0000000,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (9)
    CreateObject(972,-1065.6999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (10)
    CreateObject(972,-1090.6999512,-1062.8000488,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (11)
    CreateObject(972,-1115.5000000,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (12)
    CreateObject(972,-1140.4000244,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (13)
    CreateObject(972,-1165.1999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (14)
    CreateObject(972,-1189.1999512,-1063.0999756,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (15)
    CreateObject(972,-1195.6999512,-1052.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(tunnelentrance) (16)
    CreateObject(972,-1195.6999512,-1027.1999512,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (17)
    CreateObject(972,-1195.6999512,-1002.4000244,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (18)
    CreateObject(972,-1195.8000488,-977.7999878,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (19)
    CreateObject(972,-1195.8000488,-953.0999756,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (20)
    CreateObject(972,-1187.5000000,-933.4000244,128.1999969,0.0000000,0.0000000,141.9945068); //object(tunnelentrance) (21)
    CreateObject(972,-1169.6999512,-918.9000244,128.1999969,0.0000000,0.0000000,119.9927979); //object(tunnelentrance) (22)
    CreateObject(972,-1148.0000000,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (23)
    CreateObject(972,-1123.0999756,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (24)
    CreateObject(972,-1098.3000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (25)
    CreateObject(972,-1073.5999756,-913.7999878,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (26)
    CreateObject(972,-1048.8000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (27)
    CreateObject(972,-1023.9000244,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (28)
    CreateObject(972,-1004.5000000,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (29)
    CreateObject(11095,-1108.5999756,-995.7000122,133.3999939,0.0000000,0.0000000,0.0000000); //object(stadbridge_sfs) (1)
    CreateObject(11095,-1040.5000000,-945.5999756,133.1999969,0.0000000,0.0000000,50.0000000); //object(stadbridge_sfs) (2)
    CreateObject(790,-1179.3000488,-943.7999878,127.5000000,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (1)
    CreateObject(790,-1113.3000488,-1012.4000244,127.0000000,0.0000000,0.0000000,171.3824463); //object(sm_fir_tallgroup) (2)
    CreateObject(790,-1050.9000244,-945.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (3)
    CreateObject(791,-1052.5999756,-974.2999878,127.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
    CreateObject(791,-1160.8000488,-1007.9000244,123.5000000,352.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
    CreateObject(790,-1165.6999512,-1053.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (4)
    CreateObject(790,-1143.0999756,-1035.0999756,128.1999969,0.0000000,0.0000000,141.3812256); //object(sm_fir_tallgroup) (5)
    CreateObject(790,-1088.5999756,-931.2000122,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (6)
    CreateObject(790,-1029.0000000,-1054.5999756,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (7)
    CreateObject(790,-1040.6999512,-1051.0000000,128.1999969,0.0000000,0.0000000,121.3775635); //object(sm_fir_tallgroup) (8)
    CreateObject(17324,-1076.9000244,-1037.6999512,128.0000000,0.0000000,0.0000000,142.0000000); //object(cw_combbarn) (1)
    CreateObject(3279,-1151.5999756,-999.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
    CreateObject(3279,-1049.0999756,-968.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
    CreateObject(3279,-1039.5999756,-1041.3000488,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
    CreateObject(727,-1011.7999878,-951.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (1)
    CreateObject(727,-1019.9000244,-917.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (2)
    CreateObject(727,-1019.0999756,-946.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (3)
    CreateObject(727,-1008.4000244,-919.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (4)
    CreateObject(727,-1028.4000244,-936.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (5)
    CreateObject(727,-1019.9000244,-927.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (6)
    CreateObject(727,-1009.0000000,-938.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (7)
    CreateObject(727,-1049.4000244,-922.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (8)
    CreateObject(727,-1037.0000000,-929.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (9)
    CreateObject(727,-1035.9000244,-917.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (10)
    CreateObject(727,-1177.5999756,-921.2000122,132.5000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (11)
    CreateObject(727,-1150.1999512,-920.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (12)
    CreateObject(727,-1168.6999512,-925.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (13)
    CreateObject(727,-1134.8000488,-930.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (14)
    CreateObject(727,-1115.3000488,-927.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (15)
    CreateObject(727,-1131.5000000,-919.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (16)
    CreateObject(727,-1122.0000000,-934.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (17)
    CreateObject(727,-1100.5999756,-915.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (18)
    CreateObject(727,-1103.4000244,-943.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (19)
    CreateObject(727,-1071.9000244,-947.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (20)
    CreateObject(727,-1103.0000000,-928.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (21)
    CreateObject(727,-1160.5999756,-932.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (22)
    CreateObject(727,-1137.0999756,-942.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (23)
    CreateObject(727,-1150.3000488,-931.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (24)
    CreateObject(727,-1125.1999512,-944.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (25)
    CreateObject(727,-1172.5000000,-940.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (26)
    CreateObject(727,-1160.6999512,-939.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (27)
    CreateObject(727,-1183.0999756,-946.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (28)
    CreateObject(727,-1191.0999756,-953.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (29)
    CreateObject(790,-1103.3000488,-1053.3000488,128.1999969,0.0000000,0.0000000,121.3812256); //object(sm_fir_tallgroup) (9)
    CreateObject(790,-1059.8000488,-1048.9000244,128.1999969,0.0000000,0.0000000,121.3769531); //object(sm_fir_tallgroup) (10)
    CreateObject(3268,-1189.0999756,-977.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(mil_hangar1_) (1)
    CreateObject(790,-1189.3000488,-1028.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (11)
    CreateObject(790,-1126.4000244,-933.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (12)
    CreateObject(790,-1057.9000244,-1014.0000000,128.8999939,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (13)
    CreateObject(790,-1159.1999512,-960.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (14)
    CreateObject(5262,-1193.5000000,-987.4000244,131.0000000,0.0000000,0.0000000,270.0000000); //object(las2dkwar04) (1)
    CreateObject(5269,-1186.4000244,-966.2000122,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (1)
    CreateObject(5269,-1197.8000488,-978.5000000,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (2)
    CreateObject(7040,-1086.6999512,-935.9000244,131.6000061,0.0000000,0.0000000,0.0000000); //object(vgnplcehldbox01) (1)
    CreateObject(3374,-1105.0000000,-977.5999756,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (1)
    CreateObject(3374,-1105.5000000,-982.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (2)
    CreateObject(10814,-1086.3000488,-989.2000122,132.3000031,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
    CreateObject(13489,-1021.9000244,-1023.5000000,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (1)
    CreateObject(13489,-1021.2999878,-1012.7999878,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (2)
    CreateObject(727,-1038.5000000,-1031.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (30)
    CreateObject(727,-1018.0999756,-1030.6999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (31)
    CreateObject(727,-1035.1999512,-1018.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (32)
    CreateObject(727,-1025.5999756,-985.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (33)
    CreateObject(727,-1009.9000244,-1013.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (34)
    CreateObject(727,-1028.5000000,-999.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (35)
    CreateObject(790,-1143.5000000,-982.7999878,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (15)
    CreateObject(790,-1085.8000488,-965.2000122,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (16)
    CreateObject(790,-1052.5000000,-1038.0999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (17)
    CreateObject(790,-1128.3000488,-999.5999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (18)
    CreateObject(790,-1118.0999756,-1053.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (19)
    CreateObject(16599,-1146.5000000,-1052.4000244,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (1)
    CreateObject(16599,-1140.8000488,-1052.0999756,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (2)
    CreateObject(8493,-1176.4000244,-1027.5999756,142.1000061,0.0000000,0.0000000,336.0000000); //object(pirtshp01_lvs) (1)
    CreateObject(972,-1195.6999512,-1052.0000000,135.3999939,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (30)
    CreateObject(972,-1189.0999756,-1063.0999756,135.5000000,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (31)
    CreateObject(11440,-1130.5999756,-1016.9000244,127.5999985,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
    CreateObject(11440,-1075.5999756,-973.4000244,127.6999969,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
    CreateObject(11440,-1137.0000000,-956.9000244,127.6999969,0.0000000,0.0000000,40.0000000); //object(des_pueblo1) (3)
    CreateObject(11457,-1011.4000244,-993.2999878,127.8000031,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
    CreateObject(972,-1005.2000122,-1004.0000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (32)
    CreateObject(11459,-1150.1999512,-1035.9000244,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (1)
    CreateObject(11459,-1049.5999756,-1048.6999512,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (2)
    CreateObject(18256,-1092.9000244,-988.5999756,132.8999939,0.0000000,0.0000000,4.7039795); //object(w7bark01) (1)
    CreateObject(11544,-1107.6999512,-992.0999756,139.0000000,0.0000000,0.0000000,0.0000000); //object(des_ntfrescape2) (1)
    CreateObject(5269,-1184.0000000,-978.4000244,130.5000000,0.0000000,0.0000000,268.0000000); //object(las2dkwar05) (3)
    CreateObject(727,-1171.0999756,-963.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (36)
    CreateObject(727,-1164.3000488,-983.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (37)
    CreateObject(727,-1158.0000000,-969.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (38)
    CreateObject(17007,-1042.4000244,-1013.9000244,128.0000000,0.0000000,0.0000000,0.0000000); //object(wt6supps01) (1)
    CreateObject(17067,-1123.8000488,-1039.0000000,128.0000000,0.0000000,0.0000000,98.0000000); //object(cw2_logcabins) (1)
    CreateObject(3374,-1100.5999756,-980.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (3)
    CreateObject(3374,-1102.5000000,-980.7000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (4)
    CreateObject(3374,-1118.9000244,-929.9000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (5)
    CreateObject(3374,-1112.4000244,-931.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (6)
    CreateObject(3374,-1112.5000000,-931.2000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (7)
    CreateObject(3374,-1166.3000488,-993.2000122,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (8)
    CreateObject(3374,-1162.5999756,-990.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (9)
    CreateObject(3374,-1018.5999756,-1047.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (10)
    CreateObject(3374,-1018.7000122,-1043.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (11)
    CreateObject(3374,-1018.7999878,-1044.9000244,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (12)
    CreateObject(3374,-1164.5000000,-1029.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (13)
    CreateObject(3374,-1160.5000000,-1029.6999512,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (14)
    CreateObject(3374,-1162.4000244,-1029.8000488,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (15)


			armour_ls = CreatePickup(1242, 3, 1545.7163,-1631.7328,13.3828, -1);
            armour_drylake = CreatePickup(1242, 3, 16.6743,1409.8851,10.9030, -1);
            swanoff_drylake = CreatePickup(350, 3, 16.6743,1409.8851,10.9030, -1);
            Health_drylake = CreatePickup(1240, 3, 30.1322,1410.2271,11.1528, -1);
            armour_sfa = CreatePickup(1242, 3, -1250.7837,66.1808,14.1484, -1);

            SetGameModeText("Death Match (4.2.0)");
            AddPlayerClass(1,-78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(3, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(192, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(15, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(17, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(20, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(24, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(25, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(27,  -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(28, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(45, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(61, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(70, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(99, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(112, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(123, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(149, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(161, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(164, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(163, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(167, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(264, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(275, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(277, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(285, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(294, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(298, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);

            return 1;
    }

    public OnGameModeExit()
    {
            //dmap_GameModeExit();
            return 1;
    }

    public OnPlayerRequestClass(playerid, classid)
    {


                            SetPlayerPos(playerid,-78.3052,1385.9991,9.8040);
                            SetPlayerCameraPos(playerid, -74.7202, 1387.1851, 10.4307);
                            SetPlayerCameraLookAt(playerid, -75.6765, 1386.8779, 10.4806);
                            SetPlayerFacingAngle( playerid, 281.6389);
                            SetPlayerInterior(playerid, 0);

                            switch(classid)
                            {
                            case 0: GameTextForPlayer(playerid, "~y~pothead", 3000, 6);
                            case 1: GameTextForPlayer(playerid, "~y~Gay!", 3000, 6);
                            case 2: GameTextForPlayer(playerid, "~r~Anak", 3000, 6);
                            case 3: GameTextForPlayer(playerid, "~y~Dat boss~n~~y~extra!", 3000, 6);
                            case 4: GameTextForPlayer(playerid, "~y~Business man", 3000, 6);
                            case 5: GameTextForPlayer(playerid, "~y~Rich guy", 3000, 6);
                            case 6: GameTextForPlayer(playerid, "~y~Guard", 3000, 6);
                            case 7: GameTextForPlayer(playerid, "~y~Noob gaurd", 3000, 6);
                            case 8: GameTextForPlayer(playerid, "~y~worker", 3000, 6);
                            case 9: GameTextForPlayer(playerid, "~y~Mad guy", 3000, 6);
                            case 10: GameTextForPlayer(playerid, "~y~Beach beauty", 3000, 6);
                            case 11: GameTextForPlayer(playerid, "~r~Banned ~y~Pilot", 3000, 6);
                            case 12: GameTextForPlayer(playerid, "~r~Mad ~y~scientist", 3000, 6);
                            case 13: GameTextForPlayer(playerid, "~y~gay skater", 3000, 6);
                            case 14: GameTextForPlayer(playerid, "~y~Russian Mafia", 3000, 6);
                            case 15: GameTextForPlayer(playerid, "~y~Made in china", 3000, 6);
                            case 16: GameTextForPlayer(playerid, "~g~Big Smoke", 3000, 6);
                            case 17: GameTextForPlayer(playerid, "~r~Mad ~y~Farmer", 3000, 6);
                            case 18: GameTextForPlayer(playerid, "~b~Security", 3000, 6);
                            case 19: GameTextForPlayer(playerid, "~b~Security", 3000, 6);
                            case 20: GameTextForPlayer(playerid, "~y~Cluckin' bell", 3000, 6);
                            case 21: GameTextForPlayer(playerid, "~r~Clown!", 3000, 6);
                            case 22: GameTextForPlayer(playerid, "~r~Medic", 3000, 6);
                            case 23: GameTextForPlayer(playerid, "~r~Medic", 3000, 6);
                            case 24: GameTextForPlayer(playerid, "~b~s.w.a.t", 3000, 6);
                            case 25: GameTextForPlayer(playerid, "~y~Admin's choice", 3000, 6);
                            case 26: GameTextForPlayer(playerid, "~y~Cat", 3000, 6);

                            }
							return 1;
    }

    public OnPlayerConnect(playerid)
    {

SetPlayerColor(playerid, COLOR_GREY);
Textdraw0 = CreatePlayerTextDraw(playerid,323.000000, 122.000000, "Welcome to ~r~1v1 server");
PlayerTextDrawAlignment(playerid,Textdraw0, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
PlayerTextDrawFont(playerid,Textdraw0, 3);
PlayerTextDrawLetterSize(playerid,Textdraw0, 0.789999, 2.700000);
PlayerTextDrawColor(playerid,Textdraw0, -1);
PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
PlayerTextDrawUseBox(playerid,Textdraw0, 1);
PlayerTextDrawBoxColor(playerid,Textdraw0, 255);
PlayerTextDrawTextSize(playerid,Textdraw0, 556.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);

Textdraw1 = CreatePlayerTextDraw(playerid,523.000000, 136.000000, "~y~the original");
PlayerTextDrawAlignment(playerid,Textdraw1, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
PlayerTextDrawFont(playerid,Textdraw1, 1);
PlayerTextDrawLetterSize(playerid,Textdraw1, 0.349999, 0.899999);
PlayerTextDrawColor(playerid,Textdraw1, -1);
PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);

Textdraw2 = CreatePlayerTextDraw(playerid,323.000000, 151.000000, "~w~Scripter: ~y~Anak");
PlayerTextDrawAlignment(playerid,Textdraw2, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw2, 255);
PlayerTextDrawFont(playerid,Textdraw2, 2);
PlayerTextDrawLetterSize(playerid,Textdraw2, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw2, -1);
PlayerTextDrawSetOutline(playerid,Textdraw2, 0);
PlayerTextDrawSetProportional(playerid,Textdraw2, 1);
PlayerTextDrawSetShadow(playerid,Textdraw2, 1);
PlayerTextDrawUseBox(playerid,Textdraw2, 1);
PlayerTextDrawBoxColor(playerid,Textdraw2, 255);
PlayerTextDrawTextSize(playerid,Textdraw2, 0.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw2, 0);

Textdraw3 = CreatePlayerTextDraw(playerid,323.000000, 165.000000, "~y~please play fair.~n~~w~this Gm is remade ~n~~y~for more info~n~~y~visit:~n~~p~www.1v1dm.tk");
PlayerTextDrawAlignment(playerid,Textdraw3, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255);
PlayerTextDrawFont(playerid,Textdraw3, 1);
PlayerTextDrawLetterSize(playerid,Textdraw3, 0.559998, 2.299999);
PlayerTextDrawColor(playerid,Textdraw3, -1);
PlayerTextDrawSetOutline(playerid,Textdraw3, 0);
PlayerTextDrawSetProportional(playerid,Textdraw3, 1);
PlayerTextDrawSetShadow(playerid,Textdraw3, 1);
PlayerTextDrawUseBox(playerid,Textdraw3, 1);
PlayerTextDrawBoxColor(playerid,Textdraw3, 255);
PlayerTextDrawTextSize(playerid,Textdraw3, 0.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw3, 0);

Textdraw4 = CreatePlayerTextDraw(playerid,150.000000, 437.000000, "~w~the only ~r~1v1 /dm ~w~server 0.3x");
PlayerTextDrawAlignment(playerid,Textdraw4, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255);
PlayerTextDrawFont(playerid,Textdraw4, 1);
PlayerTextDrawLetterSize(playerid,Textdraw4, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw4, -1);
PlayerTextDrawSetOutline(playerid,Textdraw4, 0);
PlayerTextDrawSetProportional(playerid,Textdraw4, 1);
PlayerTextDrawSetShadow(playerid,Textdraw4, 1);
PlayerTextDrawUseBox(playerid,Textdraw4, 1);
PlayerTextDrawBoxColor(playerid,Textdraw4, 255);
PlayerTextDrawTextSize(playerid,Textdraw4, 0.000000, 1045.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw4, 0);

Textdraw5 = CreatePlayerTextDraw(playerid,511.000000, 10.000000, "~y~www.1v1dm.tk");
PlayerTextDrawBackgroundColor(playerid,Textdraw5, 255);
PlayerTextDrawFont(playerid,Textdraw5, 1);
PlayerTextDrawLetterSize(playerid,Textdraw5, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw5, -1);
PlayerTextDrawSetOutline(playerid,Textdraw5, 0);
PlayerTextDrawSetProportional(playerid,Textdraw5, 1);
PlayerTextDrawSetShadow(playerid,Textdraw5, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw5, 0);


/*PlayerTextDrawShow(playerid,Textdraw0);
PlayerTextDrawShow(playerid,Textdraw1);
PlayerTextDrawShow(playerid,Textdraw2);
PlayerTextDrawShow(playerid,Textdraw3);
PlayerTextDrawShow(playerid,Textdraw4);
PlayerTextDrawShow(playerid,Textdraw5);*/


            SetTimerEx("WELCOME_TD", 4*1000, false, "i", playerid);

            //TextDrawShowForPlayer(playerid,Textdraw0);
            KillStreak[playerid] = 0;
            buyad[playerid] =0;
            //noTotForest[playerid] = 0;
            new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];

			GetPlayerName(playerid, pname, sizeof(pname));
            format(string, sizeof(string), "%s has joined The Server.", pname);
            //SendClientMessage(playerid, COLOR_WHITE, "Welcome to {0087FF}The Only | 1v1 | DM Server {FFFFFF}- {FFBE00}Version 4.1.4");
            //SendClientMessage(playerid, COLOR_WHITE, "Type {FFBE00}/rules /help /cmds{FFFFFF} For Game Info. Don't forgot to visit our website.");
            //SendClientMessage(playerid, COLOR_WHITE, "This Account is not Registered. Type {FFBE00}/register {FFFFFF}to Save Your Stats.");
            //SendClientMessage(playerid, COLOR_RED, "IMPORTANT! {FFFFFF}You have 3 minutes to Register. Otherwise you will be kicked.");
            //SendClientMessage(playerid, COLOR_WHITE, "Welcome to {0087FF}The Only | 1v1 | DM Server {FFFFFF}- {FFBE00}Version 4.1.4");
            SendClientMessageToAll(COLOR_GREY, string);
            PInfo[playerid][Logged] = 0;
            PInfo[playerid][Regged] = 0;
            PInfo[playerid][Level] = 0;
            new n[MAX_PLAYER_NAME], file[256];
            GetPlayerName(playerid,n,sizeof(n));
            format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
            if(dini_Exists(file)) // Works.
        {
            //SendClientMessage(playerid,LIGHTBLUE,"You are registered, Please /login!");
            PInfo[playerid][Regged] = 1;
            PInfo[playerid][Logged] = 0;
            TogglePlayerControllable(playerid,0);
            return 1;
            }
            if(!dini_Exists(file)) // Works.
            {
            //SendClientMessage(playerid,LIGHTBLUE,"You are not registered, Please /register!");
            PInfo[playerid][Regged] = 0;
            PInfo[playerid][Logged] = 0;
            TogglePlayerControllable(playerid,0);
            return 1;
            }
            return 1;
    }

    public OnPlayerDisconnect(playerid, reason)
    {
        KillStreak[playerid] = 0;
        new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        switch(reason)
        {
        case 0: format(string, sizeof(string), "%s has left the server. (Time Out)", pname);
        case 1: format(string, sizeof(string), "%s has left the server. (/q)", pname);
        case 2: format(string, sizeof(string), "%s has left the server. (Kicked!)", pname);
        }
        SendClientMessageToAll(COLOR_GREY, string);
        new n[MAX_PLAYER_NAME], file[256];
        GetPlayerName(playerid,n,sizeof(n));
        format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
        PInfo[playerid][Logged] = 0;




        //
        if(dini_Exists(file))
        {
            dini_IntSet(file,"Logged",0);
            return 1; // Same here.
        }
        return 1;
     }

new Float:RandomSpawns[][] =
{
    {1249.7258, -2047.9263, 59.9209, 90.2055}, // Randomspawn
    {1241.2084, -2057.6521, 60.0190, 94.9352}, // Randomspawn
    {1241.0105, -2052.6873, 59.9975, 2.8144}, // Randomspawn
    {718.4906, -1477.3024, 5.4688, 357.9947}, // Randomspawn
    {722.3772, -1477.2856, 5.4688, 272.3814} // Randomspawn
};
    public OnPlayerSpawn(playerid)
    {

    USED_AD[playerid] =0;
    SetPlayerColor(playerid, COLOR_WHITE);
    challenge[playerid] =0;
    KillTimer(AD_TIMER_ID);



    if(GetPlayerScore(playerid) < 1)
    {
    SetPlayerScore(playerid, 10);
    new string[256], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    SendClientMessageToAll(COLOR_PINK,"*[BOT]Anak: {FFFFFF}Enjoy! :)");
    format(string, sizeof(string), "%[REWARD] [BOT]Anak have given 10 score as a reward to Player '%s' for being new member.", pname);
    SendClientMessageToAll(COLOR_PINK, string);

    }

    /*SetPlayerPos(playerid, 1580.3962,-1636.7898,13.5579);
    SetPlayerFacingAngle( playerid, 83.3784);*/
    new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 0);
    SetPlayerColor(playerid, COLOR_WHITE);

   /* if(GetPlayerMoney(playerid) < 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Your money is $0, you have been given $50000.");
    GivePlayerMoney(playerid, 50000);
	}*/


    GivePlayerWeapon(playerid, 9, 1);
    GivePlayerWeapon(playerid, 24, 6000);
    GivePlayerWeapon(playerid, 26, 6000);
    GivePlayerWeapon(playerid, 28, 6000);
    GivePlayerWeapon(playerid, 31, 6000);
    GivePlayerWeapon(playerid, 34, 6000);


    //GameTextForPlayer(playerid, "~w~/skin and /saveskin", 4000, 3);

    if(PInfo[playerid][IsSpecing] == 1) // If the player is still spectating
            {
            PInfo[playerid][IsSpecing] = 0; // Player is no longer spectating
            SetPlayerPos(playerid, PInfo[playerid][X], PInfo[playerid][Y], PInfo[playerid][Z]); // Setting the player to the old x y z
            SetPlayerFacingAngle(playerid, PInfo[playerid][Ang]); // Setting the player to the correct facing angle...
            ResetPlayerWeapons(playerid);
            GivePlayerWeapon(playerid, 28, 200);
            }

    return 1;
            }
    public OnPlayerDeath(playerid, killerid, reason)
    {







    SetPlayerColor(playerid, COLOR_GREY);
    if(challenge[playerid] == 1)
		  {
           new string[256], pname[MAX_PLAYER_NAME];
           GetPlayerName(playerid, pname, sizeof(pname));
           format(string, sizeof(string), "[CHALLENGE] %s has got killed in a challenge", pname);
           SendClientMessageToAll(COLOR_PINK, string);
		   challenge[playerid] =0;
		  }


    //GameTextForPlayer(playerid, "~r~owned ~w~try again!!", 5000, 3);
    SendDeathMessage(killerid, playerid, reason);
    if(GetPlayerWeapon(killerid) == 38)
	{
	SendClientMessage(playerid, COLOR_ORANGE,"Unfair Kill!");
	SendClientMessage(playerid, COLOR_PINK,"Unfair Death!");
	GameTextForPlayer(playerid,"~r~unfair death",4000,3);
	}
	else
	{
    if(IsPlayerConnected(killerid) &&  killerid != INVALID_PLAYER_ID )
    {
                    if(GetPlayerWantedLevel(killerid) < 6)
                    {
                    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
                    }
                    KillStreak[killerid] ++;
                    GivePlayerMoney(killerid, 500);
    }
    SetPlayerWantedLevel(playerid, 0);
    KillStreak[playerid] = 0;
    SetPlayerScore(killerid,GetPlayerScore(killerid)+5);
    new str[ 256 ], KillerName[MAX_PLAYER_NAME]; //here, you're defining a string and the killername
    GetPlayerName(killerid, KillerName, sizeof(KillerName)); //receive the information of the killer's name
    switch(KillStreak[killerid])
    {
        case 2: format(str, sizeof(str), "[KILLINGSPREE] ~g~%s has performed a ~y~double kill!", KillerName);
        case 3: format(str, sizeof(str), "[KILLINGSPREE] ~y~Triple Kill for ~b~%s!", KillerName);
        case 4: format(str, sizeof(str), "[KILLINGSPREE] ~p~Fourth Kill for ~r~%s!", KillerName);
            case 5: format(str, sizeof(str), "[KILLINGSPREE] ~r~%s is dominating with ~p~five kills!", KillerName);
            case 6: format(str, sizeof(str), "[KILLINGSPREE] ~w~%s is epic !! Imagine that !! ~y~six kills!", KillerName);
            case 7: format(str, sizeof(str), "[KILLINGSPREE] ~r~Epic luck for %s with ~w~seven kills!", KillerName);
            case 8: format(str, sizeof(str), "[KILLINGSPREE] ~p~%s is Amazing Killer with ~y~eight kills!", KillerName);
            case 9: format(str, sizeof(str), "[KILLINGSPREE] ~g~%s is Profesional !! ~b~nine kills!", KillerName);
            case 10: format(str, sizeof(str), "[KILLINGSPREE] ~b~%s is annihilating ! ~g~ten kills!", KillerName);
            }
    GameTextForAll(str,4000,4);
    new string[128];
    GivePlayerMoney(killerid, 10000);
    SetPlayerColor(killerid, COLOR_MAROON);


    format(string, sizeof(string), "You Received $10000 For Your Bonus Kill. You Have Now $%d", GetPlayerMoney(killerid));
    SendClientMessage(killerid, COLOR_YELLOW, string);

   	new string_2[128], wepname[32], killername[24], playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));
    GetPlayerName(killerid, killername, sizeof(killername));
    GetWeaponName(reason, wepname, sizeof(wepname));
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
    SetPlayerWantedLevel(playerid, 0);

    format(string_2, sizeof(string_2), "%s (%d) Died. Killed By %s (%d) - %s", playername, playerid , killername, killerid, wepname);
    SendClientMessageToAll(COLOR_MAROON, string_2);
    }
	}

    public OnVehicleSpawn(vehicleid)
    {
            return 1;
    }




    forward AD_TIMER(playerid);
    forward DRUG_TIMER(playerid);
    forward DRUG_TIMER_RESPONSE(playerid);


    public OnVehicleDeath(vehicleid, killerid)
    {
            return 1;
    }

    public OnPlayerText(playerid, text[])
    {
            return 1;
    }






    public OnPlayerCommandText(playerid, cmdtext[])
    {


    if(!strcmp(cmdtext, "/clothes", true))
    {
        new string[128];
        for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
        {
            if(IsPlayerAttachedObjectSlotUsed(playerid, x)) format(string, sizeof(string), "%s%d (Used)\n", string, x);
            else format(string, sizeof(string), "%s%d\n", string, x);
        }
        ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, \
        "{FF0000}Clothes", string, "Select", "Cancel");
        return 1;
    }


    return SendClientMessage(playerid, COLOR_RED, "Invalid Command - Type /cmds to see a list of available commands.");
    }

/*forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_RED, "Command not found. Please check /cmds.");
return 1;
}*/
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
            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 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 AD_TIMER(playerid)
{
    SendClientMessage(playerid, COLOR_GREY, "You can use /ad now.");
    USED_AD[playerid] =0;
    KillTimer(AD_TIMER_ID);
    return 1;
}


public DRUG_TIMER_RESPONSE(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid,health);
    DRUG_TIMER_RESPONSE1 = SetTimerEx("DRUG_TIMER_RESPONSE", 2000, false, "i", playerid);
    if (health < 95.0)
    {
    SetPlayerHealth(playerid, health+3);
    }
    return 1;
}


public DRUG_TIMER(playerid)
{
    KillTimer(DRUG_TIMER_RESPONSE1);
    ON_DRUGS[playerid] =0;
    GameTextForPlayer(playerid, "Your drugs are worn off", 3000, 3);
    return 1;
}

forward WELCOME_TD(playerid);

public WELCOME_TD(playerid)
{
     PlayerTextDrawDestroy(playerid, Textdraw0);
     PlayerTextDrawDestroy(playerid, Textdraw1);
     PlayerTextDrawDestroy(playerid, Textdraw2);
     PlayerTextDrawDestroy(playerid, Textdraw3);


    return 1;
}





public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_ATTACH_INDEX_SELECTION:
        {
            if(response)
            {
                if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
                {
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_EDITREPLACE, DIALOG_STYLE_MSGBOX, \
                    "{FF0000}Attachment Modification", "Do you wish to edit the attachment in that slot, or delete it?", "Edit", "Delete");
                }
                else
                {
                    new string[4000+1];
                    for(new x;x<sizeof(AttachmentObjects);x++)
                    {
                        format(string, sizeof(string), "%s%s\n", string, AttachmentObjects[x][attachname]);
                    }
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_MODEL_SELECTION, DIALOG_STYLE_LIST, \
                    "{FF0000}Attachment Modification - Model Selection", string, "Select", "Cancel");
                }
                SetPVarInt(playerid, "AttachmentIndexSel", listitem);
            }
            return 1;
        }
        case DIALOG_ATTACH_EDITREPLACE:
        {
            if(response) EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
            else RemovePlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
            DeletePVar(playerid, "AttachmentIndexSel");
            return 1;
        }
        case DIALOG_ATTACH_MODEL_SELECTION:
        {
            if(response)
            {
                if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, listitem);
                else
                {
                    SetPVarInt(playerid, "AttachmentModelSel", AttachmentObjects[listitem][attachmodel]);
                    new string[256+1];
                    for(new x;x<sizeof(AttachmentBones);x++)
                    {
                        format(string, sizeof(string), "%s%s\n", string, AttachmentBones[x]);
                    }
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
                    "{FF0000}Attachment Modification - Bone Selection", string, "Select", "Cancel");
                }
            }
            else DeletePVar(playerid, "AttachmentIndexSel");
            return 1;
        }
        case DIALOG_ATTACH_BONE_SELECTION:
        {
            if(response)
            {
                SetPlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"), GetPVarInt(playerid, "AttachmentModelSel"), listitem+1);
                EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
                SendClientMessage(playerid, 0xFFFFFFFF, "Hint: Use {FFFF00}~k~~PED_SPRINT~{FFFFFF} to look around.");
            }
            DeletePVar(playerid, "AttachmentIndexSel");
            DeletePVar(playerid, "AttachmentModelSel");
            return 1;
        }
    }
    return 0;
}

public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
                                   Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
                                   Float:fRotX, Float:fRotY, Float:fRotZ,
                                   Float:fScaleX, Float:fScaleY, Float:fScaleZ )
{
    new debug_string[256+1];
	format(debug_string,256,"SetPlayerAttachedObject(playerid,%d,%d,%d,%f,%f,%f,%f,%f,%f,%f,%f,%f)",
        index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);

	print(debug_string);

    SetPlayerAttachedObject(playerid,index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);
    SendClientMessage(playerid, 0xFFFFFFFF, "You finished editing an attached object");

    return 1;
}
Reply
#2

yeah mate for few lines we will go trough all your script...
Reply
#3

try this
Код:
   /*
	1v1/ Dm Server - Version 4.2.0 - Latest
	By Anak

	I made it in late 2012, I don't use it so i release it on
	Sa-mp forums.
	Feel free to edit the script.
	Don't remove credits!
	Don't release anywhere else without my permission.

	Contact:

	Real Name: Nouman Arshad
	Forum Name: Anak
	Sa-mp account: http://forum.sa-mp.com/member.php?u=1725...7.80105272	********: /nouman.arshad.98
	Email: noumanarshad0320@gmail.com
	Website: 1v1crew.tk
    */

	//-----------------------------------------------------------------
	//INCLUDES


    #include <a_samp>
    #include <Dini>
    #include <sscanf2>
    #include "../include/gl_common.inc"

    //DEFINES
    #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_PURPLE2 0x880088FF
    #define COLOR_ACTIVEBORDER 0xB4B4B4FF
    #define COLOR_ACTIVECAPTION 0x99B4D1FF
    #define COLOR_ACTIVECAPTIONTEXT 0x000000FF
    #define COLOR_ALICEBLUE 0xF0F8FFFF
    #define COLOR_ANTIQUEWHITE 0xFAEBD7FF
    #define COLOR_APPWORKSPACE 0xABABABFF
    #define COLOR_AQUA 0x00FFFFFF
    #define COLOR_AQUAMARINE 0x7FFFD4FF
    #define COLOR_AZURE 0xF0FFFFFF
    #define COLOR_BEIGE 0xF5F5DCFF
    #define COLOR_BISQUE 0xFFE4C4FF
    #define COLOR_BLACK 0x000000FF
    #define COLOR_BLANCHEDALMOND 0xFFEBCDFF
    #define COLOR_BLUE 0x0000FFFF
    #define COLOR_BLUEVIOLET 0x8A2BE2FF
    #define COLOR_BROWN 0xA52A2AFF
    #define LIGHTBLUE 0x0000FFFF
    #define COLOR_BURLYWOOD 0xDEB887FF
    #define COLOR_BUTTONFACE 0xF0F0F0FF
    #define COLOR_BUTTONHIGHLIGHT 0xFFFFFFFF
    #define COLOR_BUTTONSHADOW 0xA0A0A0FF
    #define COLOR_CADETBLUE 0x5F9EA0FF
    #define COLOR_CHARTREUSE 0x7FFF00FF
    #define COLOR_CHOCOLATE 0xD2691EFF
    #define COLOR_CONTROL 0xF0F0F0FF
    #define COLOR_CONTROLDARK 0xA0A0A0FF
    #define COLOR_CONTROLDARKDARK 0x696969FF
    #define COLOR_CONTROLLIGHT 0xE3E3E3FF
    #define COLOR_CONTROLLIGHTLIGHT 0xFFFFFFFF
    #define COLOR_CONTROLTEXT 0x000000FF
    #define COLOR_CORAL 0xFF7F50FF
    #define COLOR_CORNFLOWERBLUE 0x6495EDFF
    #define COLOR_CORNSILK 0xFFF8DCFF
    #define COLOR_CRIMSON 0xDC143CFF
    #define COLOR_CYAN 0x00FFFFFF
    #define COLOR_DARKBLUE 0x00008BFF
    #define COLOR_DARKCYAN 0x008B8BFF
    #define COLOR_DARKGOLDENROD 0xB8860BFF
    #define COLOR_DARKGRAY 0xA9A9A9FF
    #define COLOR_DARKGREEN 0x006400FF
    #define COLOR_DARKKHAKI 0xBDB76BFF
    #define COLOR_DARKMAGENTA 0x8B008BFF
    #define COLOR_DARKOLIVEGREEN 0x556B2FFF
    #define COLOR_DARKORANGE 0xFF8C00FF
    #define COLOR_DARKORCHID 0x9932CCFF
    #define COLOR_DARKRED 0x8B0000FF
    #define COLOR_DARKSALMON 0xE9967AFF
    #define COLOR_DARKSEAGREEN 0x8FBC8BFF
    #define COLOR_DARKSLATEBLUE 0x483D8BFF
    #define COLOR_DARKSLATEGRAY 0x2F4F4FFF
    #define COLOR_DARKTURQUOISE 0x00CED1FF
    #define COLOR_DARKVIOLET 0x9400D3FF
    #define COLOR_DEEPPINK 0xFF1493FF
    #define COLOR_DEEPSKYBLUE 0x00BFFFFF
    #define COLOR_DESKTOP 0x000000FF
    #define COLOR_DIMGRAY 0x696969FF
    #define COLOR_DODGERBLUE 0x1E90FFFF
    #define COLOR_FIREBRICK 0xB22222FF
    #define COLOR_FLORALWHITE 0xFFFAF0FF
    #define COLOR_FORESTGREEN 0x228B22FF
    #define COLOR_FUCHSIA 0xFF00FFFF
    #define COLOR_GAINSBORO 0xDCDCDCFF
    #define COLOR_GHOSTWHITE 0xF8F8FFFF
    #define COLOR_GOLD 0xFFD700FF
    #define COLOR_GOLDENROD 0xDAA520FF
    #define COLOR_GRADIENTACTIVECAPTION 0xB9D1EAFF
    #define COLOR_GRADIENTINACTIVECAPTION 0xD7E4F2FF
    #define COLOR_GRAY 0x808080FF
    #define COLOR_GRAYTEXT 0x808080FF
    #define COLOR_GREEN 0x008000FF
    #define COLOR_GREENYELLOW 0xADFF2FFF
    #define COLOR_HIGHLIGHT 0x3399FFFF
    #define COLOR_HIGHLIGHTTEXT 0xFFFFFFFF
    #define COLOR_HONEYDEW 0xF0FFF0FF
    #define COLOR_HOTPINK 0xFF69B4FF
    #define COLOR_HOTTRACK 0x0066CCFF
    #define COLOR_INACTIVEBORDER 0xF4F7FCFF
    #define COLOR_INACTIVECAPTION 0xBFCDDBFF
    #define COLOR_INACTIVECAPTIONTEXT 0x434E54FF
    #define COLOR_INDIANRED 0xCD5C5CFF
    #define COLOR_INDIGO 0x4B0082FF
    #define COLOR_INFO 0xFFFFE1FF
    #define COLOR_INFOTEXT 0x000000FF
    #define COLOR_IVORY 0xFFFFF0FF
    #define COLOR_KHAKI 0xF0E68CFF
    #define COLOR_LAVENDER 0xE6E6FAFF
    #define COLOR_LAVENDERBLUSH 0xFFF0F5FF
    #define COLOR_LAWNGREEN 0x7CFC00FF
    #define COLOR_LEMONCHIFFON 0xFFFACDFF
    #define COLOR_LIGHTBLUE 0xADD8E6FF
    #define COLOR_LIGHTCORAL 0xF08080FF
    #define COLOR_LIGHTCYAN 0xE0FFFFFF
    #define COLOR_LIGHTGOLDENRODYELLOW 0xFAFAD2FF
    #define COLOR_LIGHTGRAY 0xD3D3D3FF
    #define COLOR_LIGHTGREEN 0x90EE90FF
    #define COLOR_LIGHTPINK 0xFFB6C1FF
    #define COLOR_LIGHTSALMON 0xFFA07AFF
    #define COLOR_LIGHTSEAGREEN 0x20B2AAFF
    #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
    #define COLOR_LIGHTSLATEGRAY 0x778899FF
    #define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
    #define COLOR_LIGHTYELLOW 0xFFFFE0FF
    #define YELLOW 0xFFFFE0FF
    #define COLOR_LIME 0x00FF00FF
    #define COLOR_LIMEGREEN 0x32CD32FF
    #define COLOR_LINEN 0xFAF0E6FF
    #define COLOR_MAGENTA 0xFF00FFFF
    #define COLOR_MAROON 0x800000FF
    #define COLOR_MEDIUMAQUAMARINE 0x66CDAAFF
    #define COLOR_MEDIUMBLUE 0x0000CDFF
    #define COLOR_MEDIUMORCHID 0xBA55D3FF
    #define COLOR_MEDIUMPURPLE 0x9370DBFF
    #define COLOR_MEDIUMSEAGREEN 0x3CB371FF
    #define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
    #define COLOR_MEDIUMSPRINGGREEN 0x00FA9AFF
    #define COLOR_MEDIUMTURQUOISE 0x48D1CCFF
    #define COLOR_MEDIUMVIOLETRED 0xC71585FF
    #define COLOR_MENU 0xF0F0F0FF
    #define COLOR_MENUBAR 0xF0F0F0FF
    #define COLOR_MENUHIGHLIGHT 0x3399FFFF
    #define COLOR_MENUTEXT 0x000000FF
    #define COLOR_MIDNIGHTBLUE 0x191970FF
    #define COLOR_MINTCREAM 0xF5FFFAFF
    #define COLOR_MISTYROSE 0xFFE4E1FF
    #define COLOR_MOCCASIN 0xFFE4B5FF
    #define COLOR_NAVAJOWHITE 0xFFDEADFF
    #define COLOR_NAVY 0x000080FF
    #define COLOR_OLDLACE 0xFDF5E6FF
    #define COLOR_OLIVE 0x808000FF
    #define COLOR_OLIVEDRAB 0x6B8E23FF
    #define COLOR_ORANGE 0xFFA500FF
    #define ORANGE 0xFFA500FF
    #define COLOR_ORANGERED 0xFF4500FF
    #define COLOR_ORCHID 0xDA70D6FF
    #define COLOR_PALEGOLDENROD 0xEEE8AAFF
    #define COLOR_PALEGREEN 0x98FB98FF
    #define COLOR_PALETURQUOISE 0xAFEEEEFF
    #define COLOR_PALEVIOLETRED 0xDB7093FF
    #define COLOR_PAPAYAWHIP 0xFFEFD5FF
    #define COLOR_PEACHPUFF 0xFFDAB9FF
    #define COLOR_PERU 0xCD853FFF
    #define COLOR_PINK 0xFFC0CBFF
    #define COLOR_PLUM 0xDDA0DDFF
    #define COLOR_POWDERBLUE 0xB0E0E6FF
    #define COLOR_PURPLE 0x800080FF
    #define COLOR_RED 0xFF0000FF
    #define COLOR_ROSYBROWN 0xBC8F8FFF
    #define COLOR_ROYALBLUE 0x4169E1FF
    #define COLOR_SADDLEBROWN 0x8B4513FF
    #define COLOR_SALMON 0xFA8072FF
    #define COLOR_SANDYBROWN 0xF4A460FF
    #define COLOR_SCROLLBAR 0xC8C8C8FF
    #define COLOR_SEAGREEN 0x2E8B57FF
    #define COLOR_SEASHELL 0xFFF5EEFF
    #define COLOR_SIENNA 0xA0522DFF
    #define COLOR_SILVER 0xC0C0C0FF
    #define COLOR_SKYBLUE 0x87CEEBFF
    #define COLOR_SLATEBLUE 0x6A5ACDFF
    #define COLOR_SLATEGRAY 0x708090FF
    #define COLOR_SNOW 0xFFFAFAFF
    #define COLOR_SPRINGGREEN 0x00FF7FFF
    #define COLOR_STEELBLUE 0x4682B4FF
    #define COLOR_TAN 0xD2B48CFF
    #define COLOR_TEAL 0x008080FF
    #define COLOR_THISTLE 0xD8BFD8FF
    #define COLOR_TOMATO 0xFF6347FF
    #define COLOR_TRANSPARENT 0xFFFFFF00
    #define COLOR_TURQUOISE 0x40E0D0FF
    #define COLOR_VIOLET 0xEE82EEFF
    #define COLOR_WHEAT 0xF5DEB3FF
    #define COLOR_WHITE 0xFFFFFFFF
    #define COLOR_WHITESMOKE 0xF5F5F5FF
    #define COLOR_WINDOW 0xFFFFFFFF
    #define COLOR_WINDOWFRAME 0x646464FF
    #define COLOR_WINDOWTEXT 0x000000FF
    #define COLOR_YELLOW 0xFFFF00FF
    #define COLOR_YELLOWGREEN 0x9ACD32FF
    #define STEALTH_ORANGE 0xFF880000
    #define STEALTH_OLIVE 0x66660000
    #define STEALTH_GREEN 0x33DD1100
    #define STEALTH_PINK 0xFF22EE00
    #define STEALTH_BLUE 0x0077BB00



    #define DIALOG_ATTACH_INDEX             13500
    #define DIALOG_ATTACH_INDEX_SELECTION   DIALOG_ATTACH_INDEX+1
    #define DIALOG_ATTACH_EDITREPLACE       DIALOG_ATTACH_INDEX+2
    #define DIALOG_ATTACH_MODEL_SELECTION   DIALOG_ATTACH_INDEX+3
    #define DIALOG_ATTACH_BONE_SELECTION    DIALOG_ATTACH_INDEX+4

enum AttachmentEnum
{
    attachmodel,
    attachname[24]
}

new AttachmentObjects[][AttachmentEnum] = {
{18632, "FishingRod"},
{18633, "GTASAWrench1"},
{18634, "GTASACrowbar1"},
{18635, "GTASAHammer1"},
{18636, "PoliceCap1"},
{18637, "PoliceShield1"},
{18638, "HardHat1"},
{18639, "BlackHat1"},
{18640, "Hair1"},
{18975, "Hair2"},
{19136, "Hair4"},
{19274, "Hair5"},
{18641, "Flashlight1"},
{18642, "Taser1"},
{18643, "LaserPointer1"},
{19080, "LaserPointer2"},
{19081, "LaserPointer3"},
{19082, "LaserPointer4"},
{19083, "LaserPointer5"},
{19084, "LaserPointer6"},
{18644, "Screwdriver1"},
{18645, "MotorcycleHelmet1"},
{18865, "MobilePhone1"},
{18866, "MobilePhone2"},
{18867, "MobilePhone3"},
{18868, "MobilePhone4"},
{18869, "MobilePhone5"},
{18870, "MobilePhone6"},
{18871, "MobilePhone7"},
{18872, "MobilePhone8"},
{18873, "MobilePhone9"},
{18874, "MobilePhone10"},
{18875, "Pager1"},
{18890, "Rake1"},
{18891, "Bandana1"},
{18892, "Bandana2"},
{18893, "Bandana3"},
{18894, "Bandana4"},
{18895, "Bandana5"},
{18896, "Bandana6"},
{18897, "Bandana7"},
{18898, "Bandana8"},
{18899, "Bandana9"},
{18900, "Bandana10"},
{18901, "Bandana11"},
{18902, "Bandana12"},
{18903, "Bandana13"},
{18904, "Bandana14"},
{18905, "Bandana15"},
{18906, "Bandana16"},
{18907, "Bandana17"},
{18908, "Bandana18"},
{18909, "Bandana19"},
{18910, "Bandana20"},
{18911, "Mask1"},
{18912, "Mask2"},
{18913, "Mask3"},
{18914, "Mask4"},
{18915, "Mask5"},
{18916, "Mask6"},
{18917, "Mask7"},
{18918, "Mask8"},
{18919, "Mask9"},
{18920, "Mask10"},
{18921, "Beret1"},
{18922, "Beret2"},
{18923, "Beret3"},
{18924, "Beret4"},
{18925, "Beret5"},
{18926, "Hat1"},
{18927, "Hat2"},
{18928, "Hat3"},
{18929, "Hat4"},
{18930, "Hat5"},
{18931, "Hat6"},
{18932, "Hat7"},
{18933, "Hat8"},
{18934, "Hat9"},
{18935, "Hat10"},
{18936, "Helmet1"},
{18937, "Helmet2"},
{18938, "Helmet3"},
{18939, "CapBack1"},
{18940, "CapBack2"},
{18941, "CapBack3"},
{18942, "CapBack4"},
{18943, "CapBack5"},
{18944, "HatBoater1"},
{18945, "HatBoater2"},
{18946, "HatBoater3"},
{18947, "HatBowler1"},
{18948, "HatBowler2"},
{18949, "HatBowler3"},
{18950, "HatBowler4"},
{18951, "HatBowler5"},
{18952, "BoxingHelmet1"},
{18953, "CapKnit1"},
{18954, "CapKnit2"},
{18955, "CapOverEye1"},
{18956, "CapOverEye2"},
{18957, "CapOverEye3"},
{18958, "CapOverEye4"},
{18959, "CapOverEye5"},
{18960, "CapRimUp1"},
{18961, "CapTrucker1"},
{18962, "CowboyHat2"},
{18963, "CJElvisHead"},
{18964, "SkullyCap1"},
{18965, "SkullyCap2"},
{18966, "SkullyCap3"},
{18967, "HatMan1"},
{18968, "HatMan2"},
{18969, "HatMan3"},
{18970, "HatTiger1"},
{18971, "HatCool1"},
{18972, "HatCool2"},
{18973, "HatCool3"},
{18974, "MaskZorro1"},
{18976, "MotorcycleHelmet2"},
{18977, "MotorcycleHelmet3"},
{18978, "MotorcycleHelmet4"},
{18979, "MotorcycleHelmet5"},
{19006, "GlassesType1"},
{19007, "GlassesType2"},
{19008, "GlassesType3"},
{19009, "GlassesType4"},
{19010, "GlassesType5"},
{19011, "GlassesType6"},
{19012, "GlassesType7"},
{19013, "GlassesType8"},
{19014, "GlassesType9"},
{19015, "GlassesType10"},
{19016, "GlassesType11"},
{19017, "GlassesType12"},
{19018, "GlassesType13"},
{19019, "GlassesType14"},
{19020, "GlassesType15"},
{19021, "GlassesType16"},
{19022, "GlassesType17"},
{19023, "GlassesType18"},
{19024, "GlassesType19"},
{19025, "GlassesType20"},
{19026, "GlassesType21"},
{19027, "GlassesType22"},
{19028, "GlassesType23"},
{19029, "GlassesType24"},
{19030, "GlassesType25"},
{19031, "GlassesType26"},
{19032, "GlassesType27"},
{19033, "GlassesType28"},
{19034, "GlassesType29"},
{19035, "GlassesType30"},
{19036, "HockeyMask1"},
{19037, "HockeyMask2"},
{19038, "HockeyMask3"},
{19039, "WatchType1"},
{19040, "WatchType2"},
{19041, "WatchType3"},
{19042, "WatchType4"},
{19043, "WatchType5"},
{19044, "WatchType6"},
{19045, "WatchType7"},
{19046, "WatchType8"},
{19047, "WatchType9"},
{19048, "WatchType10"},
{19049, "WatchType11"},
{19050, "WatchType12"},
{19051, "WatchType13"},
{19052, "WatchType14"},
{19053, "WatchType15"},
{19085, "EyePatch1"},
{19086, "ChainsawDildo1"},
{19090, "PomPomBlue"},
{19091, "PomPomRed"},
{19092, "PomPomGreen"},
{19093, "HardHat2"},
{19094, "BurgerShotHat1"},
{19095, "CowboyHat1"},
{19096, "CowboyHat3"},
{19097, "CowboyHat4"},
{19098, "CowboyHat5"},
{19099, "PoliceCap2"},
{19100, "PoliceCap3"},
{19101, "ArmyHelmet1"},
{19102, "ArmyHelmet2"},
{19103, "ArmyHelmet3"},
{19104, "ArmyHelmet4"},
{19105, "ArmyHelmet5"},
{19106, "ArmyHelmet6"},
{19107, "ArmyHelmet7"},
{19108, "ArmyHelmet8"},
{19109, "ArmyHelmet9"},
{19110, "ArmyHelmet10"},
{19111, "ArmyHelmet11"},
{19112, "ArmyHelmet12"},
{19113, "SillyHelmet1"},
{19114, "SillyHelmet2"},
{19115, "SillyHelmet3"},
{19116, "PlainHelmet1"},
{19117, "PlainHelmet2"},
{19118, "PlainHelmet3"},
{19119, "PlainHelmet4"},
{19120, "PlainHelmet5"},
{19137, "CluckinBellHat1"},
{19138, "PoliceGlasses1"},
{19139, "PoliceGlasses2"},
{19140, "PoliceGlasses3"},
{19141, "SWATHelmet1"},
{19142, "SWATArmour1"},
{19160, "HardHat3"},
{19161, "PoliceHat1"},
{19162, "PoliceHat2"},
{19163, "GimpMask1"},
{19317, "bassguitar01"},
{19318, "flyingv01"},
{19319, "warlock01"},
{19330, "fire_hat01"},
{19331, "fire_hat02"},
{19346, "hotdog01"},
{19347, "badge01"},
{19348, "cane01"},
{19349, "monocle01"},
{19350, "moustache01"},
{19351, "moustache02"},
{19352, "tophat01"},
{19487, "tophat02"},
{19488, "HatBowler6"},
{19513, "whitephone"},
{19515, "GreySwatArm"}
};

new AttachmentBones[][24] = {
{"Spine"},
{"Head"},
{"Left upper arm"},
{"Right upper arm"},
{"Left hand"},
{"Right hand"},
{"Left thigh"},
{"Right thigh"},
{"Left foot"},
{"Right foot"},
{"Right calf"},
{"Left calf"},
{"Left forearm"},
{"Right forearm"},
{"Left clavicle"},
{"Right clavicle"},
{"Neck"},
{"Jaw"}
};



        new USED_AD[MAX_PLAYERS];
	new ON_DRUGS[MAX_PLAYERS];
	new challenge[MAX_PLAYERS];
	new buyad[MAX_PLAYERS];

    new AD_TIMER_ID;
    new DRUG_TIMER_RESPONSE1;

    new armour_ls;
    new armour_drylake;
    new swanoff_drylake;
    new Health_drylake;
    new armour_sfa;


    #define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

    new total_vehicles_from_files=0;
    new PlayerText:Textdraw0;
    new PlayerText:Textdraw1;
    new PlayerText:Textdraw2;
    new PlayerText:Textdraw3;
    new PlayerText:Textdraw4;
    new PlayerText:Textdraw5;
    new KillStreak[MAX_PLAYERS];
    enum gPInfo
    {
        Logged,
        Regged,
        Level,
        IsSpecing,
        Float:X,
        Float:Y,
        Float:Z,
        Float:Ang
    }


    new PInfo[MAX_PLAYERS][gPInfo];

    main()
    {
            print("\n----------------------------------");
            print("1v1 /Dm by Anak Loaded. Version 4.2.0 Checked!");
            print("----------------------------------\n");
    }



    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == armour_ls)
    {
        SetPlayerArmour(playerid, 100);
    }
    else if(pickupid == armour_drylake)
    {
        SetPlayerArmour(playerid, 100);
    }
    else if(pickupid == swanoff_drylake)
    {
        GivePlayerWeapon(playerid, 26, 50000);
    }
    else if(pickupid == Health_drylake)
    {
        SetPlayerHealth(playerid, 100);
    }
    else if(pickupid == armour_sfa)
    {
        SetPlayerArmour(playerid, 100);
    }
    return 1;
    }


    public OnGameModeInit()
    {

    //dmap_GameModeInit();

	// SPECIAL
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");

   	// LAS VENTURAS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");

    // SAN FIERRO
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");

    // LOS SANTOS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");

    // OTHER AREAS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");

    printf("Total vehicles from files: %d",total_vehicles_from_files);




    //AddStaticVehicleEx(522,-1191.9000244,-976.9000244,137.6999969,268.0000000,132,4,15); //NRG-500
    CreateObject(972,-1005.0000000,-923.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
    CreateObject(972,-1005.0000000,-948.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
    CreateObject(972,-1005.0000000,-973.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (3)
    CreateObject(972,-1005.0000000,-997.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (4)
    CreateObject(972,-1005.0999756,-1022.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (5)
    CreateObject(972,-1005.0000000,-1047.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (6)
    CreateObject(972,-1005.0999756,-1056.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (7)
    CreateObject(972,-1016.2000122,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (8)
    CreateObject(972,-1041.0000000,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (9)
    CreateObject(972,-1065.6999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (10)
    CreateObject(972,-1090.6999512,-1062.8000488,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (11)
    CreateObject(972,-1115.5000000,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (12)
    CreateObject(972,-1140.4000244,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (13)
    CreateObject(972,-1165.1999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (14)
    CreateObject(972,-1189.1999512,-1063.0999756,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (15)
    CreateObject(972,-1195.6999512,-1052.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(tunnelentrance) (16)
    CreateObject(972,-1195.6999512,-1027.1999512,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (17)
    CreateObject(972,-1195.6999512,-1002.4000244,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (18)
    CreateObject(972,-1195.8000488,-977.7999878,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (19)
    CreateObject(972,-1195.8000488,-953.0999756,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (20)
    CreateObject(972,-1187.5000000,-933.4000244,128.1999969,0.0000000,0.0000000,141.9945068); //object(tunnelentrance) (21)
    CreateObject(972,-1169.6999512,-918.9000244,128.1999969,0.0000000,0.0000000,119.9927979); //object(tunnelentrance) (22)
    CreateObject(972,-1148.0000000,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (23)
    CreateObject(972,-1123.0999756,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (24)
    CreateObject(972,-1098.3000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (25)
    CreateObject(972,-1073.5999756,-913.7999878,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (26)
    CreateObject(972,-1048.8000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (27)
    CreateObject(972,-1023.9000244,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (28)
    CreateObject(972,-1004.5000000,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (29)
    CreateObject(11095,-1108.5999756,-995.7000122,133.3999939,0.0000000,0.0000000,0.0000000); //object(stadbridge_sfs) (1)
    CreateObject(11095,-1040.5000000,-945.5999756,133.1999969,0.0000000,0.0000000,50.0000000); //object(stadbridge_sfs) (2)
    CreateObject(790,-1179.3000488,-943.7999878,127.5000000,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (1)
    CreateObject(790,-1113.3000488,-1012.4000244,127.0000000,0.0000000,0.0000000,171.3824463); //object(sm_fir_tallgroup) (2)
    CreateObject(790,-1050.9000244,-945.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (3)
    CreateObject(791,-1052.5999756,-974.2999878,127.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
    CreateObject(791,-1160.8000488,-1007.9000244,123.5000000,352.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
    CreateObject(790,-1165.6999512,-1053.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (4)
    CreateObject(790,-1143.0999756,-1035.0999756,128.1999969,0.0000000,0.0000000,141.3812256); //object(sm_fir_tallgroup) (5)
    CreateObject(790,-1088.5999756,-931.2000122,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (6)
    CreateObject(790,-1029.0000000,-1054.5999756,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (7)
    CreateObject(790,-1040.6999512,-1051.0000000,128.1999969,0.0000000,0.0000000,121.3775635); //object(sm_fir_tallgroup) (8)
    CreateObject(17324,-1076.9000244,-1037.6999512,128.0000000,0.0000000,0.0000000,142.0000000); //object(cw_combbarn) (1)
    CreateObject(3279,-1151.5999756,-999.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
    CreateObject(3279,-1049.0999756,-968.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
    CreateObject(3279,-1039.5999756,-1041.3000488,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
    CreateObject(727,-1011.7999878,-951.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (1)
    CreateObject(727,-1019.9000244,-917.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (2)
    CreateObject(727,-1019.0999756,-946.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (3)
    CreateObject(727,-1008.4000244,-919.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (4)
    CreateObject(727,-1028.4000244,-936.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (5)
    CreateObject(727,-1019.9000244,-927.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (6)
    CreateObject(727,-1009.0000000,-938.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (7)
    CreateObject(727,-1049.4000244,-922.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (8)
    CreateObject(727,-1037.0000000,-929.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (9)
    CreateObject(727,-1035.9000244,-917.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (10)
    CreateObject(727,-1177.5999756,-921.2000122,132.5000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (11)
    CreateObject(727,-1150.1999512,-920.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (12)
    CreateObject(727,-1168.6999512,-925.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (13)
    CreateObject(727,-1134.8000488,-930.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (14)
    CreateObject(727,-1115.3000488,-927.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (15)
    CreateObject(727,-1131.5000000,-919.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (16)
    CreateObject(727,-1122.0000000,-934.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (17)
    CreateObject(727,-1100.5999756,-915.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (18)
    CreateObject(727,-1103.4000244,-943.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (19)
    CreateObject(727,-1071.9000244,-947.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (20)
    CreateObject(727,-1103.0000000,-928.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (21)
    CreateObject(727,-1160.5999756,-932.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (22)
    CreateObject(727,-1137.0999756,-942.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (23)
    CreateObject(727,-1150.3000488,-931.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (24)
    CreateObject(727,-1125.1999512,-944.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (25)
    CreateObject(727,-1172.5000000,-940.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (26)
    CreateObject(727,-1160.6999512,-939.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (27)
    CreateObject(727,-1183.0999756,-946.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (28)
    CreateObject(727,-1191.0999756,-953.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (29)
    CreateObject(790,-1103.3000488,-1053.3000488,128.1999969,0.0000000,0.0000000,121.3812256); //object(sm_fir_tallgroup) (9)
    CreateObject(790,-1059.8000488,-1048.9000244,128.1999969,0.0000000,0.0000000,121.3769531); //object(sm_fir_tallgroup) (10)
    CreateObject(3268,-1189.0999756,-977.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(mil_hangar1_) (1)
    CreateObject(790,-1189.3000488,-1028.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (11)
    CreateObject(790,-1126.4000244,-933.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (12)
    CreateObject(790,-1057.9000244,-1014.0000000,128.8999939,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (13)
    CreateObject(790,-1159.1999512,-960.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (14)
    CreateObject(5262,-1193.5000000,-987.4000244,131.0000000,0.0000000,0.0000000,270.0000000); //object(las2dkwar04) (1)
    CreateObject(5269,-1186.4000244,-966.2000122,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (1)
    CreateObject(5269,-1197.8000488,-978.5000000,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (2)
    CreateObject(7040,-1086.6999512,-935.9000244,131.6000061,0.0000000,0.0000000,0.0000000); //object(vgnplcehldbox01) (1)
    CreateObject(3374,-1105.0000000,-977.5999756,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (1)
    CreateObject(3374,-1105.5000000,-982.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (2)
    CreateObject(10814,-1086.3000488,-989.2000122,132.3000031,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
    CreateObject(13489,-1021.9000244,-1023.5000000,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (1)
    CreateObject(13489,-1021.2999878,-1012.7999878,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (2)
    CreateObject(727,-1038.5000000,-1031.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (30)
    CreateObject(727,-1018.0999756,-1030.6999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (31)
    CreateObject(727,-1035.1999512,-1018.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (32)
    CreateObject(727,-1025.5999756,-985.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (33)
    CreateObject(727,-1009.9000244,-1013.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (34)
    CreateObject(727,-1028.5000000,-999.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (35)
    CreateObject(790,-1143.5000000,-982.7999878,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (15)
    CreateObject(790,-1085.8000488,-965.2000122,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (16)
    CreateObject(790,-1052.5000000,-1038.0999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (17)
    CreateObject(790,-1128.3000488,-999.5999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (18)
    CreateObject(790,-1118.0999756,-1053.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (19)
    CreateObject(16599,-1146.5000000,-1052.4000244,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (1)
    CreateObject(16599,-1140.8000488,-1052.0999756,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (2)
    CreateObject(8493,-1176.4000244,-1027.5999756,142.1000061,0.0000000,0.0000000,336.0000000); //object(pirtshp01_lvs) (1)
    CreateObject(972,-1195.6999512,-1052.0000000,135.3999939,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (30)
    CreateObject(972,-1189.0999756,-1063.0999756,135.5000000,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (31)
    CreateObject(11440,-1130.5999756,-1016.9000244,127.5999985,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
    CreateObject(11440,-1075.5999756,-973.4000244,127.6999969,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
    CreateObject(11440,-1137.0000000,-956.9000244,127.6999969,0.0000000,0.0000000,40.0000000); //object(des_pueblo1) (3)
    CreateObject(11457,-1011.4000244,-993.2999878,127.8000031,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
    CreateObject(972,-1005.2000122,-1004.0000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (32)
    CreateObject(11459,-1150.1999512,-1035.9000244,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (1)
    CreateObject(11459,-1049.5999756,-1048.6999512,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (2)
    CreateObject(18256,-1092.9000244,-988.5999756,132.8999939,0.0000000,0.0000000,4.7039795); //object(w7bark01) (1)
    CreateObject(11544,-1107.6999512,-992.0999756,139.0000000,0.0000000,0.0000000,0.0000000); //object(des_ntfrescape2) (1)
    CreateObject(5269,-1184.0000000,-978.4000244,130.5000000,0.0000000,0.0000000,268.0000000); //object(las2dkwar05) (3)
    CreateObject(727,-1171.0999756,-963.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (36)
    CreateObject(727,-1164.3000488,-983.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (37)
    CreateObject(727,-1158.0000000,-969.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (38)
    CreateObject(17007,-1042.4000244,-1013.9000244,128.0000000,0.0000000,0.0000000,0.0000000); //object(wt6supps01) (1)
    CreateObject(17067,-1123.8000488,-1039.0000000,128.0000000,0.0000000,0.0000000,98.0000000); //object(cw2_logcabins) (1)
    CreateObject(3374,-1100.5999756,-980.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (3)
    CreateObject(3374,-1102.5000000,-980.7000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (4)
    CreateObject(3374,-1118.9000244,-929.9000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (5)
    CreateObject(3374,-1112.4000244,-931.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (6)
    CreateObject(3374,-1112.5000000,-931.2000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (7)
    CreateObject(3374,-1166.3000488,-993.2000122,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (8)
    CreateObject(3374,-1162.5999756,-990.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (9)
    CreateObject(3374,-1018.5999756,-1047.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (10)
    CreateObject(3374,-1018.7000122,-1043.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (11)
    CreateObject(3374,-1018.7999878,-1044.9000244,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (12)
    CreateObject(3374,-1164.5000000,-1029.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (13)
    CreateObject(3374,-1160.5000000,-1029.6999512,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (14)
    CreateObject(3374,-1162.4000244,-1029.8000488,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (15)


			armour_ls = CreatePickup(1242, 3, 1545.7163,-1631.7328,13.3828, -1);
            armour_drylake = CreatePickup(1242, 3, 16.6743,1409.8851,10.9030, -1);
            swanoff_drylake = CreatePickup(350, 3, 16.6743,1409.8851,10.9030, -1);
            Health_drylake = CreatePickup(1240, 3, 30.1322,1410.2271,11.1528, -1);
            armour_sfa = CreatePickup(1242, 3, -1250.7837,66.1808,14.1484, -1);

            SetGameModeText("Death Match (4.2.0)");
            AddPlayerClass(1,-78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(3, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(192, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(15, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(17, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(20, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(24, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(25, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(27,  -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(28, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(45, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(61, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(70, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(99, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(112, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(123, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(149, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(161, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(164, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(163, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(167, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(264, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(275, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(277, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(285, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(294, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(298, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);

            return 1;
    }

    public OnGameModeExit()
    {
            //dmap_GameModeExit();
            return 1;
    }

    public OnPlayerRequestClass(playerid, classid)
    {


                            SetPlayerPos(playerid,-78.3052,1385.9991,9.8040);
                            SetPlayerCameraPos(playerid, -74.7202, 1387.1851, 10.4307);
                            SetPlayerCameraLookAt(playerid, -75.6765, 1386.8779, 10.4806);
                            SetPlayerFacingAngle( playerid, 281.6389);
                            SetPlayerInterior(playerid, 0);

                            switch(classid)
                            {
                            case 0: GameTextForPlayer(playerid, "~y~pothead", 3000, 6);
                            case 1: GameTextForPlayer(playerid, "~y~Gay!", 3000, 6);
                            case 2: GameTextForPlayer(playerid, "~r~Anak", 3000, 6);
                            case 3: GameTextForPlayer(playerid, "~y~Dat boss~n~~y~extra!", 3000, 6);
                            case 4: GameTextForPlayer(playerid, "~y~Business man", 3000, 6);
                            case 5: GameTextForPlayer(playerid, "~y~Rich guy", 3000, 6);
                            case 6: GameTextForPlayer(playerid, "~y~Guard", 3000, 6);
                            case 7: GameTextForPlayer(playerid, "~y~Noob gaurd", 3000, 6);
                            case 8: GameTextForPlayer(playerid, "~y~worker", 3000, 6);
                            case 9: GameTextForPlayer(playerid, "~y~Mad guy", 3000, 6);
                            case 10: GameTextForPlayer(playerid, "~y~Beach beauty", 3000, 6);
                            case 11: GameTextForPlayer(playerid, "~r~Banned ~y~Pilot", 3000, 6);
                            case 12: GameTextForPlayer(playerid, "~r~Mad ~y~scientist", 3000, 6);
                            case 13: GameTextForPlayer(playerid, "~y~gay skater", 3000, 6);
                            case 14: GameTextForPlayer(playerid, "~y~Russian Mafia", 3000, 6);
                            case 15: GameTextForPlayer(playerid, "~y~Made in china", 3000, 6);
                            case 16: GameTextForPlayer(playerid, "~g~Big Smoke", 3000, 6);
                            case 17: GameTextForPlayer(playerid, "~r~Mad ~y~Farmer", 3000, 6);
                            case 18: GameTextForPlayer(playerid, "~b~Security", 3000, 6);
                            case 19: GameTextForPlayer(playerid, "~b~Security", 3000, 6);
                            case 20: GameTextForPlayer(playerid, "~y~Cluckin' bell", 3000, 6);
                            case 21: GameTextForPlayer(playerid, "~r~Clown!", 3000, 6);
                            case 22: GameTextForPlayer(playerid, "~r~Medic", 3000, 6);
                            case 23: GameTextForPlayer(playerid, "~r~Medic", 3000, 6);
                            case 24: GameTextForPlayer(playerid, "~b~s.w.a.t", 3000, 6);
                            case 25: GameTextForPlayer(playerid, "~y~Admin's choice", 3000, 6);
                            case 26: GameTextForPlayer(playerid, "~y~Cat", 3000, 6);

                            }
							return 1;
    }

    public OnPlayerConnect(playerid)
    {

SetPlayerColor(playerid, COLOR_GREY);
Textdraw0 = CreatePlayerTextDraw(playerid,323.000000, 122.000000, "Welcome to ~r~1v1 server");
PlayerTextDrawAlignment(playerid,Textdraw0, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
PlayerTextDrawFont(playerid,Textdraw0, 3);
PlayerTextDrawLetterSize(playerid,Textdraw0, 0.789999, 2.700000);
PlayerTextDrawColor(playerid,Textdraw0, -1);
PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
PlayerTextDrawUseBox(playerid,Textdraw0, 1);
PlayerTextDrawBoxColor(playerid,Textdraw0, 255);
PlayerTextDrawTextSize(playerid,Textdraw0, 556.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);

Textdraw1 = CreatePlayerTextDraw(playerid,523.000000, 136.000000, "~y~the original");
PlayerTextDrawAlignment(playerid,Textdraw1, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
PlayerTextDrawFont(playerid,Textdraw1, 1);
PlayerTextDrawLetterSize(playerid,Textdraw1, 0.349999, 0.899999);
PlayerTextDrawColor(playerid,Textdraw1, -1);
PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);

Textdraw2 = CreatePlayerTextDraw(playerid,323.000000, 151.000000, "~w~Scripter: ~y~Anak");
PlayerTextDrawAlignment(playerid,Textdraw2, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw2, 255);
PlayerTextDrawFont(playerid,Textdraw2, 2);
PlayerTextDrawLetterSize(playerid,Textdraw2, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw2, -1);
PlayerTextDrawSetOutline(playerid,Textdraw2, 0);
PlayerTextDrawSetProportional(playerid,Textdraw2, 1);
PlayerTextDrawSetShadow(playerid,Textdraw2, 1);
PlayerTextDrawUseBox(playerid,Textdraw2, 1);
PlayerTextDrawBoxColor(playerid,Textdraw2, 255);
PlayerTextDrawTextSize(playerid,Textdraw2, 0.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw2, 0);

Textdraw3 = CreatePlayerTextDraw(playerid,323.000000, 165.000000, "~y~please play fair.~n~~w~this Gm is remade ~n~~y~for more info~n~~y~visit:~n~~p~www.1v1dm.tk");
PlayerTextDrawAlignment(playerid,Textdraw3, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255);
PlayerTextDrawFont(playerid,Textdraw3, 1);
PlayerTextDrawLetterSize(playerid,Textdraw3, 0.559998, 2.299999);
PlayerTextDrawColor(playerid,Textdraw3, -1);
PlayerTextDrawSetOutline(playerid,Textdraw3, 0);
PlayerTextDrawSetProportional(playerid,Textdraw3, 1);
PlayerTextDrawSetShadow(playerid,Textdraw3, 1);
PlayerTextDrawUseBox(playerid,Textdraw3, 1);
PlayerTextDrawBoxColor(playerid,Textdraw3, 255);
PlayerTextDrawTextSize(playerid,Textdraw3, 0.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw3, 0);

Textdraw4 = CreatePlayerTextDraw(playerid,150.000000, 437.000000, "~w~the only ~r~1v1 /dm ~w~server 0.3x");
PlayerTextDrawAlignment(playerid,Textdraw4, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255);
PlayerTextDrawFont(playerid,Textdraw4, 1);
PlayerTextDrawLetterSize(playerid,Textdraw4, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw4, -1);
PlayerTextDrawSetOutline(playerid,Textdraw4, 0);
PlayerTextDrawSetProportional(playerid,Textdraw4, 1);
PlayerTextDrawSetShadow(playerid,Textdraw4, 1);
PlayerTextDrawUseBox(playerid,Textdraw4, 1);
PlayerTextDrawBoxColor(playerid,Textdraw4, 255);
PlayerTextDrawTextSize(playerid,Textdraw4, 0.000000, 1045.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw4, 0);

Textdraw5 = CreatePlayerTextDraw(playerid,511.000000, 10.000000, "~y~www.1v1dm.tk");
PlayerTextDrawBackgroundColor(playerid,Textdraw5, 255);
PlayerTextDrawFont(playerid,Textdraw5, 1);
PlayerTextDrawLetterSize(playerid,Textdraw5, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw5, -1);
PlayerTextDrawSetOutline(playerid,Textdraw5, 0);
PlayerTextDrawSetProportional(playerid,Textdraw5, 1);
PlayerTextDrawSetShadow(playerid,Textdraw5, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw5, 0);


/*PlayerTextDrawShow(playerid,Textdraw0);
PlayerTextDrawShow(playerid,Textdraw1);
PlayerTextDrawShow(playerid,Textdraw2);
PlayerTextDrawShow(playerid,Textdraw3);
PlayerTextDrawShow(playerid,Textdraw4);
PlayerTextDrawShow(playerid,Textdraw5);*/


            SetTimerEx("WELCOME_TD", 4*1000, false, "i", playerid);

            //TextDrawShowForPlayer(playerid,Textdraw0);
            KillStreak[playerid] = 0;
            buyad[playerid] =0;
            //noTotForest[playerid] = 0;
            new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];

			GetPlayerName(playerid, pname, sizeof(pname));
            format(string, sizeof(string), "%s has joined The Server.", pname);
            //SendClientMessage(playerid, COLOR_WHITE, "Welcome to {0087FF}The Only | 1v1 | DM Server {FFFFFF}- {FFBE00}Version 4.1.4");
            //SendClientMessage(playerid, COLOR_WHITE, "Type {FFBE00}/rules /help /cmds{FFFFFF} For Game Info. Don't forgot to visit our website.");
            //SendClientMessage(playerid, COLOR_WHITE, "This Account is not Registered. Type {FFBE00}/register {FFFFFF}to Save Your Stats.");
            //SendClientMessage(playerid, COLOR_RED, "IMPORTANT! {FFFFFF}You have 3 minutes to Register. Otherwise you will be kicked.");
            //SendClientMessage(playerid, COLOR_WHITE, "Welcome to {0087FF}The Only | 1v1 | DM Server {FFFFFF}- {FFBE00}Version 4.1.4");
            SendClientMessageToAll(COLOR_GREY, string);
            PInfo[playerid][Logged] = 0;
            PInfo[playerid][Regged] = 0;
            PInfo[playerid][Level] = 0;
            new n[MAX_PLAYER_NAME], file[256];
            GetPlayerName(playerid,n,sizeof(n));
            format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
            if(dini_Exists(file)) // Works.
        {
            //SendClientMessage(playerid,LIGHTBLUE,"You are registered, Please /login!");
            PInfo[playerid][Regged] = 1;
            PInfo[playerid][Logged] = 0;
            TogglePlayerControllable(playerid,0);
            return 1;
            }
            if(!dini_Exists(file)) // Works.
            {
            //SendClientMessage(playerid,LIGHTBLUE,"You are not registered, Please /register!");
            PInfo[playerid][Regged] = 0;
            PInfo[playerid][Logged] = 0;
            TogglePlayerControllable(playerid,0);
            return 1;
            }
            return 1;
    }

    public OnPlayerDisconnect(playerid, reason)
    {
        KillStreak[playerid] = 0;
        new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        switch(reason)
        {
        case 0: format(string, sizeof(string), "%s has left the server. (Time Out)", pname);
        case 1: format(string, sizeof(string), "%s has left the server. (/q)", pname);
        case 2: format(string, sizeof(string), "%s has left the server. (Kicked!)", pname);
        }
        SendClientMessageToAll(COLOR_GREY, string);
        new n[MAX_PLAYER_NAME], file[256];
        GetPlayerName(playerid,n,sizeof(n));
        format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
        PInfo[playerid][Logged] = 0;




        //
        if(dini_Exists(file))
        {
            dini_IntSet(file,"Logged",0);
            return 1; // Same here.
        }
        return 1;
     }

new Float:RandomSpawns[][] =
{
    {1249.7258, -2047.9263, 59.9209, 90.2055}, // Randomspawn
    {1241.2084, -2057.6521, 60.0190, 94.9352}, // Randomspawn
    {1241.0105, -2052.6873, 59.9975, 2.8144}, // Randomspawn
    {718.4906, -1477.3024, 5.4688, 357.9947}, // Randomspawn
    {722.3772, -1477.2856, 5.4688, 272.3814} // Randomspawn
};
    public OnPlayerSpawn(playerid)
    {

    USED_AD[playerid] =0;
    SetPlayerColor(playerid, COLOR_WHITE);
    challenge[playerid] =0;
    KillTimer(AD_TIMER_ID);



    if(GetPlayerScore(playerid) < 1)
    {
    SetPlayerScore(playerid, 10);
    new string[256], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    SendClientMessageToAll(COLOR_PINK,"*[BOT]Anak: {FFFFFF}Enjoy! :)");
    format(string, sizeof(string), "%[REWARD] [BOT]Anak have given 10 score as a reward to Player '%s' for being new member.", pname);
    SendClientMessageToAll(COLOR_PINK, string);

    }

    /*SetPlayerPos(playerid, 1580.3962,-1636.7898,13.5579);
    SetPlayerFacingAngle( playerid, 83.3784);*/
    new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 0);
    SetPlayerColor(playerid, COLOR_WHITE);

   /* if(GetPlayerMoney(playerid) < 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Your money is $0, you have been given $50000.");
    GivePlayerMoney(playerid, 50000);
	}*/


    GivePlayerWeapon(playerid, 9, 1);
    GivePlayerWeapon(playerid, 24, 6000);
    GivePlayerWeapon(playerid, 26, 6000);
    GivePlayerWeapon(playerid, 28, 6000);
    GivePlayerWeapon(playerid, 31, 6000);
    GivePlayerWeapon(playerid, 34, 6000);


    //GameTextForPlayer(playerid, "~w~/skin and /saveskin", 4000, 3);

    if(PInfo[playerid][IsSpecing] == 1) // If the player is still spectating
            {
            PInfo[playerid][IsSpecing] = 0; // Player is no longer spectating
            SetPlayerPos(playerid, PInfo[playerid][X], PInfo[playerid][Y], PInfo[playerid][Z]); // Setting the player to the old x y z
            SetPlayerFacingAngle(playerid, PInfo[playerid][Ang]); // Setting the player to the correct facing angle...
            ResetPlayerWeapons(playerid);
            GivePlayerWeapon(playerid, 28, 200);
            }

    return 1;
            }
    public OnPlayerDeath(playerid, killerid, reason)
    {







    SetPlayerColor(playerid, COLOR_GREY);
    if(challenge[playerid] == 1)
		  {
           new string[256], pname[MAX_PLAYER_NAME];
           GetPlayerName(playerid, pname, sizeof(pname));
           format(string, sizeof(string), "[CHALLENGE] %s has got killed in a challenge", pname);
           SendClientMessageToAll(COLOR_PINK, string);
		   challenge[playerid] =0;
		  }


    //GameTextForPlayer(playerid, "~r~owned ~w~try again!!", 5000, 3);
    SendDeathMessage(killerid, playerid, reason);
    if(GetPlayerWeapon(killerid) == 38)
	{
	SendClientMessage(playerid, COLOR_ORANGE,"Unfair Kill!");
	SendClientMessage(playerid, COLOR_PINK,"Unfair Death!");
	GameTextForPlayer(playerid,"~r~unfair death",4000,3);
	}
	else
	{
    if(IsPlayerConnected(killerid) &&  killerid != INVALID_PLAYER_ID )
    {
                    if(GetPlayerWantedLevel(killerid) < 6)
                    {
                    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
                    }
                    KillStreak[killerid] ++;
                    GivePlayerMoney(killerid, 500);
    }
    SetPlayerWantedLevel(playerid, 0);
    KillStreak[playerid] = 0;
    SetPlayerScore(killerid,GetPlayerScore(killerid)+5);
    new str[ 256 ], KillerName[MAX_PLAYER_NAME]; //here, you're defining a string and the killername
    GetPlayerName(killerid, KillerName, sizeof(KillerName)); //receive the information of the killer's name
    switch(KillStreak[killerid])
    {
        case 2: format(str, sizeof(str), "[KILLINGSPREE] ~g~%s has performed a ~y~double kill!", KillerName);
        case 3: format(str, sizeof(str), "[KILLINGSPREE] ~y~Triple Kill for ~b~%s!", KillerName);
        case 4: format(str, sizeof(str), "[KILLINGSPREE] ~p~Fourth Kill for ~r~%s!", KillerName);
            case 5: format(str, sizeof(str), "[KILLINGSPREE] ~r~%s is dominating with ~p~five kills!", KillerName);
            case 6: format(str, sizeof(str), "[KILLINGSPREE] ~w~%s is epic !! Imagine that !! ~y~six kills!", KillerName);
            case 7: format(str, sizeof(str), "[KILLINGSPREE] ~r~Epic luck for %s with ~w~seven kills!", KillerName);
            case 8: format(str, sizeof(str), "[KILLINGSPREE] ~p~%s is Amazing Killer with ~y~eight kills!", KillerName);
            case 9: format(str, sizeof(str), "[KILLINGSPREE] ~g~%s is Profesional !! ~b~nine kills!", KillerName);
            case 10: format(str, sizeof(str), "[KILLINGSPREE] ~b~%s is annihilating ! ~g~ten kills!", KillerName);
            }
    GameTextForAll(str,4000,4);
    new string[128];
    GivePlayerMoney(killerid, 10000);
    SetPlayerColor(killerid, COLOR_MAROON);


    format(string, sizeof(string), "You Received $10000 For Your Bonus Kill. You Have Now $%d", GetPlayerMoney(killerid));
    SendClientMessage(killerid, COLOR_YELLOW, string);

   	new string_2[128], wepname[32], killername[24], playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));
    GetPlayerName(killerid, killername, sizeof(killername));
    GetWeaponName(reason, wepname, sizeof(wepname));
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
    SetPlayerWantedLevel(playerid, 0);

    format(string_2, sizeof(string_2), "%s (%d) Died. Killed By %s (%d) - %s", playername, playerid , killername, killerid, wepname);
    SendClientMessageToAll(COLOR_MAROON, string_2);
    }
	}

    public OnVehicleSpawn(vehicleid)
    {
            return 1;
    }




    forward AD_TIMER(playerid);
    forward DRUG_TIMER(playerid);
    forward DRUG_TIMER_RESPONSE(playerid);


    public OnVehicleDeath(vehicleid, killerid)
    {
            return 1;
    }

    public OnPlayerText(playerid, text[])
    {
            return 1;
    }






    public OnPlayerCommandText(playerid, cmdtext[])
    {


    if(!strcmp(cmdtext, "/clothes", true))
    {
        new string[128];
        for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
        {
            if(IsPlayerAttachedObjectSlotUsed(playerid, x)) format(string, sizeof(string), "%s%d (Used)\n", string, x);
            else format(string, sizeof(string), "%s%d\n", string, x);
        }
        ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, \
        "{FF0000}Clothes", string, "Select", "Cancel");
        return 1;
    }


    return SendClientMessage(playerid, COLOR_RED, "Invalid Command - Type /cmds to see a list of available commands.");
    }

/*forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_RED, "Command not found. Please check /cmds.");
return 1;
}*/
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
            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 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 AD_TIMER(playerid)
{
    SendClientMessage(playerid, COLOR_GREY, "You can use /ad now.");
    USED_AD[playerid] =0;
    KillTimer(AD_TIMER_ID);
    return 1;
}


public DRUG_TIMER_RESPONSE(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid,health);
    DRUG_TIMER_RESPONSE1 = SetTimerEx("DRUG_TIMER_RESPONSE", 2000, false, "i", playerid);
    if (health < 95.0)
    {
    SetPlayerHealth(playerid, health+3);
    }
    return 1;
}


public DRUG_TIMER(playerid)
{
    KillTimer(DRUG_TIMER_RESPONSE1);
    ON_DRUGS[playerid] =0;
    GameTextForPlayer(playerid, "Your drugs are worn off", 3000, 3);
    return 1;
}

forward WELCOME_TD(playerid);

public WELCOME_TD(playerid)
{
     PlayerTextDrawDestroy(playerid, Textdraw0);
     PlayerTextDrawDestroy(playerid, Textdraw1);
     PlayerTextDrawDestroy(playerid, Textdraw2);
     PlayerTextDrawDestroy(playerid, Textdraw3);


    return 1;
}





public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_ATTACH_INDEX_SELECTION:
        {
            if(response)
            {
                if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
                {
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_EDITREPLACE, DIALOG_STYLE_MSGBOX, \
                    "{FF0000}Attachment Modification", "Do you wish to edit the attachment in that slot, or delete it?", "Edit", "Delete");
                }
                else
                {
                    new string[4000+1];
                    for(new x;x<sizeof(AttachmentObjects);x++)
                    {
                        format(string, sizeof(string), "%s%s\n", string, AttachmentObjects[x][attachname]);
                    }
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_MODEL_SELECTION, DIALOG_STYLE_LIST, \
                    "{FF0000}Attachment Modification - Model Selection", string, "Select", "Cancel");
                }
                SetPVarInt(playerid, "AttachmentIndexSel", listitem);
            }
            return 1;
        }
        case DIALOG_ATTACH_EDITREPLACE:
        {
            if(response) EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
            else RemovePlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
            DeletePVar(playerid, "AttachmentIndexSel");
            return 1;
        }
        case DIALOG_ATTACH_MODEL_SELECTION:
        {
            if(response)
            {
                if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, listitem);
                else
                {
                    SetPVarInt(playerid, "AttachmentModelSel", AttachmentObjects[listitem][attachmodel]);
                    new string[256+1];
                    for(new x;x<sizeof(AttachmentBones);x++)
                    {
                        format(string, sizeof(string), "%s%s\n", string, AttachmentBones[x]);
                    }
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
                    "{FF0000}Attachment Modification - Bone Selection", string, "Select", "Cancel");
                }
            }
            else DeletePVar(playerid, "AttachmentIndexSel");
            return 1;
        }
        case DIALOG_ATTACH_BONE_SELECTION:
        {
            if(response)
            {
                SetPlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"), GetPVarInt(playerid, "AttachmentModelSel"), listitem+1);
                EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
                SendClientMessage(playerid, 0xFFFFFFFF, "Hint: Use {FFFF00}~k~~PED_SPRINT~{FFFFFF} to look around.");
            }
            DeletePVar(playerid, "AttachmentIndexSel");
            DeletePVar(playerid, "AttachmentModelSel");
            return 1;
        }
    }
    return 0;
}

public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
                                   Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
                                   Float:fRotX, Float:fRotY, Float:fRotZ,
                                   Float:fScaleX, Float:fScaleY, Float:fScaleZ )
{
    new debug_string[256+1];
	format(debug_string,256,"SetPlayerAttachedObject(playerid,%d,%d,%d,%f,%f,%f,%f,%f,%f,%f,%f,%f)",
        index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);

	print(debug_string);

    SetPlayerAttachedObject(playerid,index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);
    SendClientMessage(playerid, 0xFFFFFFFF, "You finished editing an attached object");

    return 1;
}
Reply
#4

now 3 warnings

C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1 .pwn(736) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1 .pwn(914) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1 .pwn(1311) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Reply
#5

you for got somewhere to add tab or take off tab..
Reply
#6

pleas do it for me and repost it
Reply
#7

bump
Reply
#8

Show us the line...
Reply
#9

C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1 .pwn(736) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1 .pwn(914) : warning 217: loose indentation
C:\DOCUME~1\HP_ADM~1\Desktop\1V1SER~1\GAMEMO~1\1v1 .pwn(1311) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
___________
Reply
#10

Code is pretty messy,
Try now
Код:
  /*
	1v1/ Dm Server - Version 4.2.0 - Latest
	By Anak

	I made it in late 2012, I don't use it so i release it on
	Sa-mp forums.
	Feel free to edit the script.
	Don't remove credits!
	Don't release anywhere else without my permission.

	Contact:

	Real Name: Nouman Arshad
	Forum Name: Anak
	Sa-mp account: http://forum.sa-mp.com/member.php?u=1725...8.93978067	********: /nouman.arshad.98
	Email: noumanarshad0320@gmail.com
	Website: 1v1crew.tk
    */

	//-----------------------------------------------------------------
	//INCLUDES


    #include <a_samp>
    #include <Dini>
    #include <sscanf2>
    #include "../include/gl_common.inc"

    //DEFINES
    #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_PURPLE2 0x880088FF
    #define COLOR_ACTIVEBORDER 0xB4B4B4FF
    #define COLOR_ACTIVECAPTION 0x99B4D1FF
    #define COLOR_ACTIVECAPTIONTEXT 0x000000FF
    #define COLOR_ALICEBLUE 0xF0F8FFFF
    #define COLOR_ANTIQUEWHITE 0xFAEBD7FF
    #define COLOR_APPWORKSPACE 0xABABABFF
    #define COLOR_AQUA 0x00FFFFFF
    #define COLOR_AQUAMARINE 0x7FFFD4FF
    #define COLOR_AZURE 0xF0FFFFFF
    #define COLOR_BEIGE 0xF5F5DCFF
    #define COLOR_BISQUE 0xFFE4C4FF
    #define COLOR_BLACK 0x000000FF
    #define COLOR_BLANCHEDALMOND 0xFFEBCDFF
    #define COLOR_BLUE 0x0000FFFF
    #define COLOR_BLUEVIOLET 0x8A2BE2FF
    #define COLOR_BROWN 0xA52A2AFF
    #define LIGHTBLUE 0x0000FFFF
    #define COLOR_BURLYWOOD 0xDEB887FF
    #define COLOR_BUTTONFACE 0xF0F0F0FF
    #define COLOR_BUTTONHIGHLIGHT 0xFFFFFFFF
    #define COLOR_BUTTONSHADOW 0xA0A0A0FF
    #define COLOR_CADETBLUE 0x5F9EA0FF
    #define COLOR_CHARTREUSE 0x7FFF00FF
    #define COLOR_CHOCOLATE 0xD2691EFF
    #define COLOR_CONTROL 0xF0F0F0FF
    #define COLOR_CONTROLDARK 0xA0A0A0FF
    #define COLOR_CONTROLDARKDARK 0x696969FF
    #define COLOR_CONTROLLIGHT 0xE3E3E3FF
    #define COLOR_CONTROLLIGHTLIGHT 0xFFFFFFFF
    #define COLOR_CONTROLTEXT 0x000000FF
    #define COLOR_CORAL 0xFF7F50FF
    #define COLOR_CORNFLOWERBLUE 0x6495EDFF
    #define COLOR_CORNSILK 0xFFF8DCFF
    #define COLOR_CRIMSON 0xDC143CFF
    #define COLOR_CYAN 0x00FFFFFF
    #define COLOR_DARKBLUE 0x00008BFF
    #define COLOR_DARKCYAN 0x008B8BFF
    #define COLOR_DARKGOLDENROD 0xB8860BFF
    #define COLOR_DARKGRAY 0xA9A9A9FF
    #define COLOR_DARKGREEN 0x006400FF
    #define COLOR_DARKKHAKI 0xBDB76BFF
    #define COLOR_DARKMAGENTA 0x8B008BFF
    #define COLOR_DARKOLIVEGREEN 0x556B2FFF
    #define COLOR_DARKORANGE 0xFF8C00FF
    #define COLOR_DARKORCHID 0x9932CCFF
    #define COLOR_DARKRED 0x8B0000FF
    #define COLOR_DARKSALMON 0xE9967AFF
    #define COLOR_DARKSEAGREEN 0x8FBC8BFF
    #define COLOR_DARKSLATEBLUE 0x483D8BFF
    #define COLOR_DARKSLATEGRAY 0x2F4F4FFF
    #define COLOR_DARKTURQUOISE 0x00CED1FF
    #define COLOR_DARKVIOLET 0x9400D3FF
    #define COLOR_DEEPPINK 0xFF1493FF
    #define COLOR_DEEPSKYBLUE 0x00BFFFFF
    #define COLOR_DESKTOP 0x000000FF
    #define COLOR_DIMGRAY 0x696969FF
    #define COLOR_DODGERBLUE 0x1E90FFFF
    #define COLOR_FIREBRICK 0xB22222FF
    #define COLOR_FLORALWHITE 0xFFFAF0FF
    #define COLOR_FORESTGREEN 0x228B22FF
    #define COLOR_FUCHSIA 0xFF00FFFF
    #define COLOR_GAINSBORO 0xDCDCDCFF
    #define COLOR_GHOSTWHITE 0xF8F8FFFF
    #define COLOR_GOLD 0xFFD700FF
    #define COLOR_GOLDENROD 0xDAA520FF
    #define COLOR_GRADIENTACTIVECAPTION 0xB9D1EAFF
    #define COLOR_GRADIENTINACTIVECAPTION 0xD7E4F2FF
    #define COLOR_GRAY 0x808080FF
    #define COLOR_GRAYTEXT 0x808080FF
    #define COLOR_GREEN 0x008000FF
    #define COLOR_GREENYELLOW 0xADFF2FFF
    #define COLOR_HIGHLIGHT 0x3399FFFF
    #define COLOR_HIGHLIGHTTEXT 0xFFFFFFFF
    #define COLOR_HONEYDEW 0xF0FFF0FF
    #define COLOR_HOTPINK 0xFF69B4FF
    #define COLOR_HOTTRACK 0x0066CCFF
    #define COLOR_INACTIVEBORDER 0xF4F7FCFF
    #define COLOR_INACTIVECAPTION 0xBFCDDBFF
    #define COLOR_INACTIVECAPTIONTEXT 0x434E54FF
    #define COLOR_INDIANRED 0xCD5C5CFF
    #define COLOR_INDIGO 0x4B0082FF
    #define COLOR_INFO 0xFFFFE1FF
    #define COLOR_INFOTEXT 0x000000FF
    #define COLOR_IVORY 0xFFFFF0FF
    #define COLOR_KHAKI 0xF0E68CFF
    #define COLOR_LAVENDER 0xE6E6FAFF
    #define COLOR_LAVENDERBLUSH 0xFFF0F5FF
    #define COLOR_LAWNGREEN 0x7CFC00FF
    #define COLOR_LEMONCHIFFON 0xFFFACDFF
    #define COLOR_LIGHTBLUE 0xADD8E6FF
    #define COLOR_LIGHTCORAL 0xF08080FF
    #define COLOR_LIGHTCYAN 0xE0FFFFFF
    #define COLOR_LIGHTGOLDENRODYELLOW 0xFAFAD2FF
    #define COLOR_LIGHTGRAY 0xD3D3D3FF
    #define COLOR_LIGHTGREEN 0x90EE90FF
    #define COLOR_LIGHTPINK 0xFFB6C1FF
    #define COLOR_LIGHTSALMON 0xFFA07AFF
    #define COLOR_LIGHTSEAGREEN 0x20B2AAFF
    #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
    #define COLOR_LIGHTSLATEGRAY 0x778899FF
    #define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
    #define COLOR_LIGHTYELLOW 0xFFFFE0FF
    #define YELLOW 0xFFFFE0FF
    #define COLOR_LIME 0x00FF00FF
    #define COLOR_LIMEGREEN 0x32CD32FF
    #define COLOR_LINEN 0xFAF0E6FF
    #define COLOR_MAGENTA 0xFF00FFFF
    #define COLOR_MAROON 0x800000FF
    #define COLOR_MEDIUMAQUAMARINE 0x66CDAAFF
    #define COLOR_MEDIUMBLUE 0x0000CDFF
    #define COLOR_MEDIUMORCHID 0xBA55D3FF
    #define COLOR_MEDIUMPURPLE 0x9370DBFF
    #define COLOR_MEDIUMSEAGREEN 0x3CB371FF
    #define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
    #define COLOR_MEDIUMSPRINGGREEN 0x00FA9AFF
    #define COLOR_MEDIUMTURQUOISE 0x48D1CCFF
    #define COLOR_MEDIUMVIOLETRED 0xC71585FF
    #define COLOR_MENU 0xF0F0F0FF
    #define COLOR_MENUBAR 0xF0F0F0FF
    #define COLOR_MENUHIGHLIGHT 0x3399FFFF
    #define COLOR_MENUTEXT 0x000000FF
    #define COLOR_MIDNIGHTBLUE 0x191970FF
    #define COLOR_MINTCREAM 0xF5FFFAFF
    #define COLOR_MISTYROSE 0xFFE4E1FF
    #define COLOR_MOCCASIN 0xFFE4B5FF
    #define COLOR_NAVAJOWHITE 0xFFDEADFF
    #define COLOR_NAVY 0x000080FF
    #define COLOR_OLDLACE 0xFDF5E6FF
    #define COLOR_OLIVE 0x808000FF
    #define COLOR_OLIVEDRAB 0x6B8E23FF
    #define COLOR_ORANGE 0xFFA500FF
    #define ORANGE 0xFFA500FF
    #define COLOR_ORANGERED 0xFF4500FF
    #define COLOR_ORCHID 0xDA70D6FF
    #define COLOR_PALEGOLDENROD 0xEEE8AAFF
    #define COLOR_PALEGREEN 0x98FB98FF
    #define COLOR_PALETURQUOISE 0xAFEEEEFF
    #define COLOR_PALEVIOLETRED 0xDB7093FF
    #define COLOR_PAPAYAWHIP 0xFFEFD5FF
    #define COLOR_PEACHPUFF 0xFFDAB9FF
    #define COLOR_PERU 0xCD853FFF
    #define COLOR_PINK 0xFFC0CBFF
    #define COLOR_PLUM 0xDDA0DDFF
    #define COLOR_POWDERBLUE 0xB0E0E6FF
    #define COLOR_PURPLE 0x800080FF
    #define COLOR_RED 0xFF0000FF
    #define COLOR_ROSYBROWN 0xBC8F8FFF
    #define COLOR_ROYALBLUE 0x4169E1FF
    #define COLOR_SADDLEBROWN 0x8B4513FF
    #define COLOR_SALMON 0xFA8072FF
    #define COLOR_SANDYBROWN 0xF4A460FF
    #define COLOR_SCROLLBAR 0xC8C8C8FF
    #define COLOR_SEAGREEN 0x2E8B57FF
    #define COLOR_SEASHELL 0xFFF5EEFF
    #define COLOR_SIENNA 0xA0522DFF
    #define COLOR_SILVER 0xC0C0C0FF
    #define COLOR_SKYBLUE 0x87CEEBFF
    #define COLOR_SLATEBLUE 0x6A5ACDFF
    #define COLOR_SLATEGRAY 0x708090FF
    #define COLOR_SNOW 0xFFFAFAFF
    #define COLOR_SPRINGGREEN 0x00FF7FFF
    #define COLOR_STEELBLUE 0x4682B4FF
    #define COLOR_TAN 0xD2B48CFF
    #define COLOR_TEAL 0x008080FF
    #define COLOR_THISTLE 0xD8BFD8FF
    #define COLOR_TOMATO 0xFF6347FF
    #define COLOR_TRANSPARENT 0xFFFFFF00
    #define COLOR_TURQUOISE 0x40E0D0FF
    #define COLOR_VIOLET 0xEE82EEFF
    #define COLOR_WHEAT 0xF5DEB3FF
    #define COLOR_WHITE 0xFFFFFFFF
    #define COLOR_WHITESMOKE 0xF5F5F5FF
    #define COLOR_WINDOW 0xFFFFFFFF
    #define COLOR_WINDOWFRAME 0x646464FF
    #define COLOR_WINDOWTEXT 0x000000FF
    #define COLOR_YELLOW 0xFFFF00FF
    #define COLOR_YELLOWGREEN 0x9ACD32FF
    #define STEALTH_ORANGE 0xFF880000
    #define STEALTH_OLIVE 0x66660000
    #define STEALTH_GREEN 0x33DD1100
    #define STEALTH_PINK 0xFF22EE00
    #define STEALTH_BLUE 0x0077BB00



    #define DIALOG_ATTACH_INDEX             13500
    #define DIALOG_ATTACH_INDEX_SELECTION   DIALOG_ATTACH_INDEX+1
    #define DIALOG_ATTACH_EDITREPLACE       DIALOG_ATTACH_INDEX+2
    #define DIALOG_ATTACH_MODEL_SELECTION   DIALOG_ATTACH_INDEX+3
    #define DIALOG_ATTACH_BONE_SELECTION    DIALOG_ATTACH_INDEX+4

enum AttachmentEnum
{
    attachmodel,
    attachname[24]
}

new AttachmentObjects[][AttachmentEnum] = {
{18632, "FishingRod"},
{18633, "GTASAWrench1"},
{18634, "GTASACrowbar1"},
{18635, "GTASAHammer1"},
{18636, "PoliceCap1"},
{18637, "PoliceShield1"},
{18638, "HardHat1"},
{18639, "BlackHat1"},
{18640, "Hair1"},
{18975, "Hair2"},
{19136, "Hair4"},
{19274, "Hair5"},
{18641, "Flashlight1"},
{18642, "Taser1"},
{18643, "LaserPointer1"},
{19080, "LaserPointer2"},
{19081, "LaserPointer3"},
{19082, "LaserPointer4"},
{19083, "LaserPointer5"},
{19084, "LaserPointer6"},
{18644, "Screwdriver1"},
{18645, "MotorcycleHelmet1"},
{18865, "MobilePhone1"},
{18866, "MobilePhone2"},
{18867, "MobilePhone3"},
{18868, "MobilePhone4"},
{18869, "MobilePhone5"},
{18870, "MobilePhone6"},
{18871, "MobilePhone7"},
{18872, "MobilePhone8"},
{18873, "MobilePhone9"},
{18874, "MobilePhone10"},
{18875, "Pager1"},
{18890, "Rake1"},
{18891, "Bandana1"},
{18892, "Bandana2"},
{18893, "Bandana3"},
{18894, "Bandana4"},
{18895, "Bandana5"},
{18896, "Bandana6"},
{18897, "Bandana7"},
{18898, "Bandana8"},
{18899, "Bandana9"},
{18900, "Bandana10"},
{18901, "Bandana11"},
{18902, "Bandana12"},
{18903, "Bandana13"},
{18904, "Bandana14"},
{18905, "Bandana15"},
{18906, "Bandana16"},
{18907, "Bandana17"},
{18908, "Bandana18"},
{18909, "Bandana19"},
{18910, "Bandana20"},
{18911, "Mask1"},
{18912, "Mask2"},
{18913, "Mask3"},
{18914, "Mask4"},
{18915, "Mask5"},
{18916, "Mask6"},
{18917, "Mask7"},
{18918, "Mask8"},
{18919, "Mask9"},
{18920, "Mask10"},
{18921, "Beret1"},
{18922, "Beret2"},
{18923, "Beret3"},
{18924, "Beret4"},
{18925, "Beret5"},
{18926, "Hat1"},
{18927, "Hat2"},
{18928, "Hat3"},
{18929, "Hat4"},
{18930, "Hat5"},
{18931, "Hat6"},
{18932, "Hat7"},
{18933, "Hat8"},
{18934, "Hat9"},
{18935, "Hat10"},
{18936, "Helmet1"},
{18937, "Helmet2"},
{18938, "Helmet3"},
{18939, "CapBack1"},
{18940, "CapBack2"},
{18941, "CapBack3"},
{18942, "CapBack4"},
{18943, "CapBack5"},
{18944, "HatBoater1"},
{18945, "HatBoater2"},
{18946, "HatBoater3"},
{18947, "HatBowler1"},
{18948, "HatBowler2"},
{18949, "HatBowler3"},
{18950, "HatBowler4"},
{18951, "HatBowler5"},
{18952, "BoxingHelmet1"},
{18953, "CapKnit1"},
{18954, "CapKnit2"},
{18955, "CapOverEye1"},
{18956, "CapOverEye2"},
{18957, "CapOverEye3"},
{18958, "CapOverEye4"},
{18959, "CapOverEye5"},
{18960, "CapRimUp1"},
{18961, "CapTrucker1"},
{18962, "CowboyHat2"},
{18963, "CJElvisHead"},
{18964, "SkullyCap1"},
{18965, "SkullyCap2"},
{18966, "SkullyCap3"},
{18967, "HatMan1"},
{18968, "HatMan2"},
{18969, "HatMan3"},
{18970, "HatTiger1"},
{18971, "HatCool1"},
{18972, "HatCool2"},
{18973, "HatCool3"},
{18974, "MaskZorro1"},
{18976, "MotorcycleHelmet2"},
{18977, "MotorcycleHelmet3"},
{18978, "MotorcycleHelmet4"},
{18979, "MotorcycleHelmet5"},
{19006, "GlassesType1"},
{19007, "GlassesType2"},
{19008, "GlassesType3"},
{19009, "GlassesType4"},
{19010, "GlassesType5"},
{19011, "GlassesType6"},
{19012, "GlassesType7"},
{19013, "GlassesType8"},
{19014, "GlassesType9"},
{19015, "GlassesType10"},
{19016, "GlassesType11"},
{19017, "GlassesType12"},
{19018, "GlassesType13"},
{19019, "GlassesType14"},
{19020, "GlassesType15"},
{19021, "GlassesType16"},
{19022, "GlassesType17"},
{19023, "GlassesType18"},
{19024, "GlassesType19"},
{19025, "GlassesType20"},
{19026, "GlassesType21"},
{19027, "GlassesType22"},
{19028, "GlassesType23"},
{19029, "GlassesType24"},
{19030, "GlassesType25"},
{19031, "GlassesType26"},
{19032, "GlassesType27"},
{19033, "GlassesType28"},
{19034, "GlassesType29"},
{19035, "GlassesType30"},
{19036, "HockeyMask1"},
{19037, "HockeyMask2"},
{19038, "HockeyMask3"},
{19039, "WatchType1"},
{19040, "WatchType2"},
{19041, "WatchType3"},
{19042, "WatchType4"},
{19043, "WatchType5"},
{19044, "WatchType6"},
{19045, "WatchType7"},
{19046, "WatchType8"},
{19047, "WatchType9"},
{19048, "WatchType10"},
{19049, "WatchType11"},
{19050, "WatchType12"},
{19051, "WatchType13"},
{19052, "WatchType14"},
{19053, "WatchType15"},
{19085, "EyePatch1"},
{19086, "ChainsawDildo1"},
{19090, "PomPomBlue"},
{19091, "PomPomRed"},
{19092, "PomPomGreen"},
{19093, "HardHat2"},
{19094, "BurgerShotHat1"},
{19095, "CowboyHat1"},
{19096, "CowboyHat3"},
{19097, "CowboyHat4"},
{19098, "CowboyHat5"},
{19099, "PoliceCap2"},
{19100, "PoliceCap3"},
{19101, "ArmyHelmet1"},
{19102, "ArmyHelmet2"},
{19103, "ArmyHelmet3"},
{19104, "ArmyHelmet4"},
{19105, "ArmyHelmet5"},
{19106, "ArmyHelmet6"},
{19107, "ArmyHelmet7"},
{19108, "ArmyHelmet8"},
{19109, "ArmyHelmet9"},
{19110, "ArmyHelmet10"},
{19111, "ArmyHelmet11"},
{19112, "ArmyHelmet12"},
{19113, "SillyHelmet1"},
{19114, "SillyHelmet2"},
{19115, "SillyHelmet3"},
{19116, "PlainHelmet1"},
{19117, "PlainHelmet2"},
{19118, "PlainHelmet3"},
{19119, "PlainHelmet4"},
{19120, "PlainHelmet5"},
{19137, "CluckinBellHat1"},
{19138, "PoliceGlasses1"},
{19139, "PoliceGlasses2"},
{19140, "PoliceGlasses3"},
{19141, "SWATHelmet1"},
{19142, "SWATArmour1"},
{19160, "HardHat3"},
{19161, "PoliceHat1"},
{19162, "PoliceHat2"},
{19163, "GimpMask1"},
{19317, "bassguitar01"},
{19318, "flyingv01"},
{19319, "warlock01"},
{19330, "fire_hat01"},
{19331, "fire_hat02"},
{19346, "hotdog01"},
{19347, "badge01"},
{19348, "cane01"},
{19349, "monocle01"},
{19350, "moustache01"},
{19351, "moustache02"},
{19352, "tophat01"},
{19487, "tophat02"},
{19488, "HatBowler6"},
{19513, "whitephone"},
{19515, "GreySwatArm"}
};

new AttachmentBones[][24] = {
{"Spine"},
{"Head"},
{"Left upper arm"},
{"Right upper arm"},
{"Left hand"},
{"Right hand"},
{"Left thigh"},
{"Right thigh"},
{"Left foot"},
{"Right foot"},
{"Right calf"},
{"Left calf"},
{"Left forearm"},
{"Right forearm"},
{"Left clavicle"},
{"Right clavicle"},
{"Neck"},
{"Jaw"}
};



        new USED_AD[MAX_PLAYERS];
	new ON_DRUGS[MAX_PLAYERS];
	new challenge[MAX_PLAYERS];
	new buyad[MAX_PLAYERS];

    new AD_TIMER_ID;
    new DRUG_TIMER_RESPONSE1;

    new armour_ls;
    new armour_drylake;
    new swanoff_drylake;
    new Health_drylake;
    new armour_sfa;


    #define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

    new total_vehicles_from_files=0;
    new PlayerText:Textdraw0;
    new PlayerText:Textdraw1;
    new PlayerText:Textdraw2;
    new PlayerText:Textdraw3;
    new PlayerText:Textdraw4;
    new PlayerText:Textdraw5;
    new KillStreak[MAX_PLAYERS];
    enum gPInfo
    {
        Logged,
        Regged,
        Level,
        IsSpecing,
        Float:X,
        Float:Y,
        Float:Z,
        Float:Ang
    }


    new PInfo[MAX_PLAYERS][gPInfo];

    main()
    {
            print("\n----------------------------------");
            print("1v1 /Dm by Anak Loaded. Version 4.2.0 Checked!");
            print("----------------------------------\n");
    }



    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == armour_ls)
    {
        SetPlayerArmour(playerid, 100);
    }
    else if(pickupid == armour_drylake)
    {
        SetPlayerArmour(playerid, 100);
    }
    else if(pickupid == swanoff_drylake)
    {
        GivePlayerWeapon(playerid, 26, 50000);
    }
    else if(pickupid == Health_drylake)
    {
        SetPlayerHealth(playerid, 100);
    }
    else if(pickupid == armour_sfa)
    {
        SetPlayerArmour(playerid, 100);
    }
    return 1;
    }


    public OnGameModeInit()
    {

    //dmap_GameModeInit();

	// SPECIAL
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");

   	// LAS VENTURAS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");

    // SAN FIERRO
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");

    // LOS SANTOS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");

    // OTHER AREAS
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
    total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");

    printf("Total vehicles from files: %d",total_vehicles_from_files);




    //AddStaticVehicleEx(522,-1191.9000244,-976.9000244,137.6999969,268.0000000,132,4,15); //NRG-500
    CreateObject(972,-1005.0000000,-923.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
    CreateObject(972,-1005.0000000,-948.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
    CreateObject(972,-1005.0000000,-973.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (3)
    CreateObject(972,-1005.0000000,-997.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (4)
    CreateObject(972,-1005.0999756,-1022.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (5)
    CreateObject(972,-1005.0000000,-1047.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (6)
    CreateObject(972,-1005.0999756,-1056.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (7)
    CreateObject(972,-1016.2000122,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (8)
    CreateObject(972,-1041.0000000,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (9)
    CreateObject(972,-1065.6999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (10)
    CreateObject(972,-1090.6999512,-1062.8000488,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (11)
    CreateObject(972,-1115.5000000,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (12)
    CreateObject(972,-1140.4000244,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (13)
    CreateObject(972,-1165.1999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (14)
    CreateObject(972,-1189.1999512,-1063.0999756,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (15)
    CreateObject(972,-1195.6999512,-1052.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(tunnelentrance) (16)
    CreateObject(972,-1195.6999512,-1027.1999512,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (17)
    CreateObject(972,-1195.6999512,-1002.4000244,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (18)
    CreateObject(972,-1195.8000488,-977.7999878,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (19)
    CreateObject(972,-1195.8000488,-953.0999756,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (20)
    CreateObject(972,-1187.5000000,-933.4000244,128.1999969,0.0000000,0.0000000,141.9945068); //object(tunnelentrance) (21)
    CreateObject(972,-1169.6999512,-918.9000244,128.1999969,0.0000000,0.0000000,119.9927979); //object(tunnelentrance) (22)
    CreateObject(972,-1148.0000000,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (23)
    CreateObject(972,-1123.0999756,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (24)
    CreateObject(972,-1098.3000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (25)
    CreateObject(972,-1073.5999756,-913.7999878,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (26)
    CreateObject(972,-1048.8000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (27)
    CreateObject(972,-1023.9000244,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (28)
    CreateObject(972,-1004.5000000,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (29)
    CreateObject(11095,-1108.5999756,-995.7000122,133.3999939,0.0000000,0.0000000,0.0000000); //object(stadbridge_sfs) (1)
    CreateObject(11095,-1040.5000000,-945.5999756,133.1999969,0.0000000,0.0000000,50.0000000); //object(stadbridge_sfs) (2)
    CreateObject(790,-1179.3000488,-943.7999878,127.5000000,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (1)
    CreateObject(790,-1113.3000488,-1012.4000244,127.0000000,0.0000000,0.0000000,171.3824463); //object(sm_fir_tallgroup) (2)
    CreateObject(790,-1050.9000244,-945.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (3)
    CreateObject(791,-1052.5999756,-974.2999878,127.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
    CreateObject(791,-1160.8000488,-1007.9000244,123.5000000,352.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
    CreateObject(790,-1165.6999512,-1053.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (4)
    CreateObject(790,-1143.0999756,-1035.0999756,128.1999969,0.0000000,0.0000000,141.3812256); //object(sm_fir_tallgroup) (5)
    CreateObject(790,-1088.5999756,-931.2000122,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (6)
    CreateObject(790,-1029.0000000,-1054.5999756,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (7)
    CreateObject(790,-1040.6999512,-1051.0000000,128.1999969,0.0000000,0.0000000,121.3775635); //object(sm_fir_tallgroup) (8)
    CreateObject(17324,-1076.9000244,-1037.6999512,128.0000000,0.0000000,0.0000000,142.0000000); //object(cw_combbarn) (1)
    CreateObject(3279,-1151.5999756,-999.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
    CreateObject(3279,-1049.0999756,-968.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
    CreateObject(3279,-1039.5999756,-1041.3000488,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
    CreateObject(727,-1011.7999878,-951.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (1)
    CreateObject(727,-1019.9000244,-917.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (2)
    CreateObject(727,-1019.0999756,-946.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (3)
    CreateObject(727,-1008.4000244,-919.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (4)
    CreateObject(727,-1028.4000244,-936.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (5)
    CreateObject(727,-1019.9000244,-927.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (6)
    CreateObject(727,-1009.0000000,-938.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (7)
    CreateObject(727,-1049.4000244,-922.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (8)
    CreateObject(727,-1037.0000000,-929.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (9)
    CreateObject(727,-1035.9000244,-917.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (10)
    CreateObject(727,-1177.5999756,-921.2000122,132.5000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (11)
    CreateObject(727,-1150.1999512,-920.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (12)
    CreateObject(727,-1168.6999512,-925.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (13)
    CreateObject(727,-1134.8000488,-930.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (14)
    CreateObject(727,-1115.3000488,-927.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (15)
    CreateObject(727,-1131.5000000,-919.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (16)
    CreateObject(727,-1122.0000000,-934.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (17)
    CreateObject(727,-1100.5999756,-915.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (18)
    CreateObject(727,-1103.4000244,-943.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (19)
    CreateObject(727,-1071.9000244,-947.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (20)
    CreateObject(727,-1103.0000000,-928.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (21)
    CreateObject(727,-1160.5999756,-932.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (22)
    CreateObject(727,-1137.0999756,-942.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (23)
    CreateObject(727,-1150.3000488,-931.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (24)
    CreateObject(727,-1125.1999512,-944.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (25)
    CreateObject(727,-1172.5000000,-940.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (26)
    CreateObject(727,-1160.6999512,-939.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (27)
    CreateObject(727,-1183.0999756,-946.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (28)
    CreateObject(727,-1191.0999756,-953.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (29)
    CreateObject(790,-1103.3000488,-1053.3000488,128.1999969,0.0000000,0.0000000,121.3812256); //object(sm_fir_tallgroup) (9)
    CreateObject(790,-1059.8000488,-1048.9000244,128.1999969,0.0000000,0.0000000,121.3769531); //object(sm_fir_tallgroup) (10)
    CreateObject(3268,-1189.0999756,-977.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(mil_hangar1_) (1)
    CreateObject(790,-1189.3000488,-1028.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (11)
    CreateObject(790,-1126.4000244,-933.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (12)
    CreateObject(790,-1057.9000244,-1014.0000000,128.8999939,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (13)
    CreateObject(790,-1159.1999512,-960.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (14)
    CreateObject(5262,-1193.5000000,-987.4000244,131.0000000,0.0000000,0.0000000,270.0000000); //object(las2dkwar04) (1)
    CreateObject(5269,-1186.4000244,-966.2000122,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (1)
    CreateObject(5269,-1197.8000488,-978.5000000,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (2)
    CreateObject(7040,-1086.6999512,-935.9000244,131.6000061,0.0000000,0.0000000,0.0000000); //object(vgnplcehldbox01) (1)
    CreateObject(3374,-1105.0000000,-977.5999756,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (1)
    CreateObject(3374,-1105.5000000,-982.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (2)
    CreateObject(10814,-1086.3000488,-989.2000122,132.3000031,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
    CreateObject(13489,-1021.9000244,-1023.5000000,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (1)
    CreateObject(13489,-1021.2999878,-1012.7999878,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (2)
    CreateObject(727,-1038.5000000,-1031.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (30)
    CreateObject(727,-1018.0999756,-1030.6999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (31)
    CreateObject(727,-1035.1999512,-1018.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (32)
    CreateObject(727,-1025.5999756,-985.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (33)
    CreateObject(727,-1009.9000244,-1013.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (34)
    CreateObject(727,-1028.5000000,-999.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (35)
    CreateObject(790,-1143.5000000,-982.7999878,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (15)
    CreateObject(790,-1085.8000488,-965.2000122,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (16)
    CreateObject(790,-1052.5000000,-1038.0999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (17)
    CreateObject(790,-1128.3000488,-999.5999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (18)
    CreateObject(790,-1118.0999756,-1053.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (19)
    CreateObject(16599,-1146.5000000,-1052.4000244,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (1)
    CreateObject(16599,-1140.8000488,-1052.0999756,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (2)
    CreateObject(8493,-1176.4000244,-1027.5999756,142.1000061,0.0000000,0.0000000,336.0000000); //object(pirtshp01_lvs) (1)
    CreateObject(972,-1195.6999512,-1052.0000000,135.3999939,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (30)
    CreateObject(972,-1189.0999756,-1063.0999756,135.5000000,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (31)
    CreateObject(11440,-1130.5999756,-1016.9000244,127.5999985,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
    CreateObject(11440,-1075.5999756,-973.4000244,127.6999969,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
    CreateObject(11440,-1137.0000000,-956.9000244,127.6999969,0.0000000,0.0000000,40.0000000); //object(des_pueblo1) (3)
    CreateObject(11457,-1011.4000244,-993.2999878,127.8000031,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
    CreateObject(972,-1005.2000122,-1004.0000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (32)
    CreateObject(11459,-1150.1999512,-1035.9000244,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (1)
    CreateObject(11459,-1049.5999756,-1048.6999512,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (2)
    CreateObject(18256,-1092.9000244,-988.5999756,132.8999939,0.0000000,0.0000000,4.7039795); //object(w7bark01) (1)
    CreateObject(11544,-1107.6999512,-992.0999756,139.0000000,0.0000000,0.0000000,0.0000000); //object(des_ntfrescape2) (1)
    CreateObject(5269,-1184.0000000,-978.4000244,130.5000000,0.0000000,0.0000000,268.0000000); //object(las2dkwar05) (3)
    CreateObject(727,-1171.0999756,-963.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (36)
    CreateObject(727,-1164.3000488,-983.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (37)
    CreateObject(727,-1158.0000000,-969.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (38)
    CreateObject(17007,-1042.4000244,-1013.9000244,128.0000000,0.0000000,0.0000000,0.0000000); //object(wt6supps01) (1)
    CreateObject(17067,-1123.8000488,-1039.0000000,128.0000000,0.0000000,0.0000000,98.0000000); //object(cw2_logcabins) (1)
    CreateObject(3374,-1100.5999756,-980.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (3)
    CreateObject(3374,-1102.5000000,-980.7000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (4)
    CreateObject(3374,-1118.9000244,-929.9000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (5)
    CreateObject(3374,-1112.4000244,-931.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (6)
    CreateObject(3374,-1112.5000000,-931.2000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (7)
    CreateObject(3374,-1166.3000488,-993.2000122,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (8)
    CreateObject(3374,-1162.5999756,-990.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (9)
    CreateObject(3374,-1018.5999756,-1047.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (10)
    CreateObject(3374,-1018.7000122,-1043.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (11)
    CreateObject(3374,-1018.7999878,-1044.9000244,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (12)
    CreateObject(3374,-1164.5000000,-1029.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (13)
    CreateObject(3374,-1160.5000000,-1029.6999512,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (14)
    CreateObject(3374,-1162.4000244,-1029.8000488,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (15)


			armour_ls = CreatePickup(1242, 3, 1545.7163,-1631.7328,13.3828, -1);
            armour_drylake = CreatePickup(1242, 3, 16.6743,1409.8851,10.9030, -1);
            swanoff_drylake = CreatePickup(350, 3, 16.6743,1409.8851,10.9030, -1);
            Health_drylake = CreatePickup(1240, 3, 30.1322,1410.2271,11.1528, -1);
            armour_sfa = CreatePickup(1242, 3, -1250.7837,66.1808,14.1484, -1);

            SetGameModeText("Death Match (4.2.0)");
            AddPlayerClass(1,-78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(3, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(192, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(15, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(17, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(20, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(24, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(25, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(27,  -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(28, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(45, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(61, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(70, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(99, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(112, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(123, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(149, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(161, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(164, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(163, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(167, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(264, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(275, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(277, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(285, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(294, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);
            AddPlayerClass(298, -78.3052,1385.9991,9.8040,281.6389,0,0,0,0,0,0);

            return 1;
    }

    public OnGameModeExit()
    {
            //dmap_GameModeExit();
            return 1;
    }

    public OnPlayerRequestClass(playerid, classid)
    {


                            SetPlayerPos(playerid,-78.3052,1385.9991,9.8040);
                            SetPlayerCameraPos(playerid, -74.7202, 1387.1851, 10.4307);
                            SetPlayerCameraLookAt(playerid, -75.6765, 1386.8779, 10.4806);
                            SetPlayerFacingAngle( playerid, 281.6389);
                            SetPlayerInterior(playerid, 0);

                            switch(classid)
                            {
                            case 0: GameTextForPlayer(playerid, "~y~pothead", 3000, 6);
                            case 1: GameTextForPlayer(playerid, "~y~Gay!", 3000, 6);
                            case 2: GameTextForPlayer(playerid, "~r~Anak", 3000, 6);
                            case 3: GameTextForPlayer(playerid, "~y~Dat boss~n~~y~extra!", 3000, 6);
                            case 4: GameTextForPlayer(playerid, "~y~Business man", 3000, 6);
                            case 5: GameTextForPlayer(playerid, "~y~Rich guy", 3000, 6);
                            case 6: GameTextForPlayer(playerid, "~y~Guard", 3000, 6);
                            case 7: GameTextForPlayer(playerid, "~y~Noob gaurd", 3000, 6);
                            case 8: GameTextForPlayer(playerid, "~y~worker", 3000, 6);
                            case 9: GameTextForPlayer(playerid, "~y~Mad guy", 3000, 6);
                            case 10: GameTextForPlayer(playerid, "~y~Beach beauty", 3000, 6);
                            case 11: GameTextForPlayer(playerid, "~r~Banned ~y~Pilot", 3000, 6);
                            case 12: GameTextForPlayer(playerid, "~r~Mad ~y~scientist", 3000, 6);
                            case 13: GameTextForPlayer(playerid, "~y~gay skater", 3000, 6);
                            case 14: GameTextForPlayer(playerid, "~y~Russian Mafia", 3000, 6);
                            case 15: GameTextForPlayer(playerid, "~y~Made in china", 3000, 6);
                            case 16: GameTextForPlayer(playerid, "~g~Big Smoke", 3000, 6);
                            case 17: GameTextForPlayer(playerid, "~r~Mad ~y~Farmer", 3000, 6);
                            case 18: GameTextForPlayer(playerid, "~b~Security", 3000, 6);
                            case 19: GameTextForPlayer(playerid, "~b~Security", 3000, 6);
                            case 20: GameTextForPlayer(playerid, "~y~Cluckin' bell", 3000, 6);
                            case 21: GameTextForPlayer(playerid, "~r~Clown!", 3000, 6);
                            case 22: GameTextForPlayer(playerid, "~r~Medic", 3000, 6);
                            case 23: GameTextForPlayer(playerid, "~r~Medic", 3000, 6);
                            case 24: GameTextForPlayer(playerid, "~b~s.w.a.t", 3000, 6);
                            case 25: GameTextForPlayer(playerid, "~y~Admin's choice", 3000, 6);
                            case 26: GameTextForPlayer(playerid, "~y~Cat", 3000, 6);

                            }
							return 1;
    }

    public OnPlayerConnect(playerid)
    {

SetPlayerColor(playerid, COLOR_GREY);
Textdraw0 = CreatePlayerTextDraw(playerid,323.000000, 122.000000, "Welcome to ~r~1v1 server");
PlayerTextDrawAlignment(playerid,Textdraw0, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
PlayerTextDrawFont(playerid,Textdraw0, 3);
PlayerTextDrawLetterSize(playerid,Textdraw0, 0.789999, 2.700000);
PlayerTextDrawColor(playerid,Textdraw0, -1);
PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
PlayerTextDrawUseBox(playerid,Textdraw0, 1);
PlayerTextDrawBoxColor(playerid,Textdraw0, 255);
PlayerTextDrawTextSize(playerid,Textdraw0, 556.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);

Textdraw1 = CreatePlayerTextDraw(playerid,523.000000, 136.000000, "~y~the original");
PlayerTextDrawAlignment(playerid,Textdraw1, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
PlayerTextDrawFont(playerid,Textdraw1, 1);
PlayerTextDrawLetterSize(playerid,Textdraw1, 0.349999, 0.899999);
PlayerTextDrawColor(playerid,Textdraw1, -1);
PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);

Textdraw2 = CreatePlayerTextDraw(playerid,323.000000, 151.000000, "~w~Scripter: ~y~Anak");
PlayerTextDrawAlignment(playerid,Textdraw2, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw2, 255);
PlayerTextDrawFont(playerid,Textdraw2, 2);
PlayerTextDrawLetterSize(playerid,Textdraw2, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw2, -1);
PlayerTextDrawSetOutline(playerid,Textdraw2, 0);
PlayerTextDrawSetProportional(playerid,Textdraw2, 1);
PlayerTextDrawSetShadow(playerid,Textdraw2, 1);
PlayerTextDrawUseBox(playerid,Textdraw2, 1);
PlayerTextDrawBoxColor(playerid,Textdraw2, 255);
PlayerTextDrawTextSize(playerid,Textdraw2, 0.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw2, 0);

Textdraw3 = CreatePlayerTextDraw(playerid,323.000000, 165.000000, "~y~please play fair.~n~~w~this Gm is remade ~n~~y~for more info~n~~y~visit:~n~~p~www.1v1dm.tk");
PlayerTextDrawAlignment(playerid,Textdraw3, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255);
PlayerTextDrawFont(playerid,Textdraw3, 1);
PlayerTextDrawLetterSize(playerid,Textdraw3, 0.559998, 2.299999);
PlayerTextDrawColor(playerid,Textdraw3, -1);
PlayerTextDrawSetOutline(playerid,Textdraw3, 0);
PlayerTextDrawSetProportional(playerid,Textdraw3, 1);
PlayerTextDrawSetShadow(playerid,Textdraw3, 1);
PlayerTextDrawUseBox(playerid,Textdraw3, 1);
PlayerTextDrawBoxColor(playerid,Textdraw3, 255);
PlayerTextDrawTextSize(playerid,Textdraw3, 0.000000, 476.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw3, 0);

Textdraw4 = CreatePlayerTextDraw(playerid,150.000000, 437.000000, "~w~the only ~r~1v1 /dm ~w~server 0.3x");
PlayerTextDrawAlignment(playerid,Textdraw4, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255);
PlayerTextDrawFont(playerid,Textdraw4, 1);
PlayerTextDrawLetterSize(playerid,Textdraw4, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw4, -1);
PlayerTextDrawSetOutline(playerid,Textdraw4, 0);
PlayerTextDrawSetProportional(playerid,Textdraw4, 1);
PlayerTextDrawSetShadow(playerid,Textdraw4, 1);
PlayerTextDrawUseBox(playerid,Textdraw4, 1);
PlayerTextDrawBoxColor(playerid,Textdraw4, 255);
PlayerTextDrawTextSize(playerid,Textdraw4, 0.000000, 1045.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw4, 0);

Textdraw5 = CreatePlayerTextDraw(playerid,511.000000, 10.000000, "~y~www.1v1dm.tk");
PlayerTextDrawBackgroundColor(playerid,Textdraw5, 255);
PlayerTextDrawFont(playerid,Textdraw5, 1);
PlayerTextDrawLetterSize(playerid,Textdraw5, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw5, -1);
PlayerTextDrawSetOutline(playerid,Textdraw5, 0);
PlayerTextDrawSetProportional(playerid,Textdraw5, 1);
PlayerTextDrawSetShadow(playerid,Textdraw5, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw5, 0);


/*PlayerTextDrawShow(playerid,Textdraw0);
PlayerTextDrawShow(playerid,Textdraw1);
PlayerTextDrawShow(playerid,Textdraw2);
PlayerTextDrawShow(playerid,Textdraw3);
PlayerTextDrawShow(playerid,Textdraw4);
PlayerTextDrawShow(playerid,Textdraw5);*/


            SetTimerEx("WELCOME_TD", 4*1000, false, "i", playerid);

            //TextDrawShowForPlayer(playerid,Textdraw0);
            KillStreak[playerid] = 0;
            buyad[playerid] =0;
            //noTotForest[playerid] = 0;
            new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];

			GetPlayerName(playerid, pname, sizeof(pname));
            format(string, sizeof(string), "%s has joined The Server.", pname);
            //SendClientMessage(playerid, COLOR_WHITE, "Welcome to {0087FF}The Only | 1v1 | DM Server {FFFFFF}- {FFBE00}Version 4.1.4");
            //SendClientMessage(playerid, COLOR_WHITE, "Type {FFBE00}/rules /help /cmds{FFFFFF} For Game Info. Don't forgot to visit our website.");
            //SendClientMessage(playerid, COLOR_WHITE, "This Account is not Registered. Type {FFBE00}/register {FFFFFF}to Save Your Stats.");
            //SendClientMessage(playerid, COLOR_RED, "IMPORTANT! {FFFFFF}You have 3 minutes to Register. Otherwise you will be kicked.");
            //SendClientMessage(playerid, COLOR_WHITE, "Welcome to {0087FF}The Only | 1v1 | DM Server {FFFFFF}- {FFBE00}Version 4.1.4");
            SendClientMessageToAll(COLOR_GREY, string);
            PInfo[playerid][Logged] = 0;
            PInfo[playerid][Regged] = 0;
            PInfo[playerid][Level] = 0;
            new n[MAX_PLAYER_NAME], file[256];
            GetPlayerName(playerid,n,sizeof(n));
            format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
            if(dini_Exists(file)) // Works.
        	{
            //SendClientMessage(playerid,LIGHTBLUE,"You are registered, Please /login!");
            PInfo[playerid][Regged] = 1;
            PInfo[playerid][Logged] = 0;
            TogglePlayerControllable(playerid,0);
            return 1;
            }
            if(!dini_Exists(file)) // Works.
            {
            //SendClientMessage(playerid,LIGHTBLUE,"You are not registered, Please /register!");
            PInfo[playerid][Regged] = 0;
            PInfo[playerid][Logged] = 0;
            TogglePlayerControllable(playerid,0);
            return 1;
            }
            return 1;
    }

    public OnPlayerDisconnect(playerid, reason)
    {
        KillStreak[playerid] = 0;
        new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        switch(reason)
        {
        case 0: format(string, sizeof(string), "%s has left the server. (Time Out)", pname);
        case 1: format(string, sizeof(string), "%s has left the server. (/q)", pname);
        case 2: format(string, sizeof(string), "%s has left the server. (Kicked!)", pname);
        }
        SendClientMessageToAll(COLOR_GREY, string);
        new n[MAX_PLAYER_NAME], file[256];
        GetPlayerName(playerid,n,sizeof(n));
        format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
        PInfo[playerid][Logged] = 0;




        //
        if(dini_Exists(file))
        {
            dini_IntSet(file,"Logged",0);
            return 1; // Same here.
        }
        return 1;
     }

new Float:RandomSpawns[][] =
{
    {1249.7258, -2047.9263, 59.9209, 90.2055}, // Randomspawn
    {1241.2084, -2057.6521, 60.0190, 94.9352}, // Randomspawn
    {1241.0105, -2052.6873, 59.9975, 2.8144}, // Randomspawn
    {718.4906, -1477.3024, 5.4688, 357.9947}, // Randomspawn
    {722.3772, -1477.2856, 5.4688, 272.3814} // Randomspawn
};
    public OnPlayerSpawn(playerid)
    {

    USED_AD[playerid] =0;
    SetPlayerColor(playerid, COLOR_WHITE);
    challenge[playerid] =0;
    KillTimer(AD_TIMER_ID);



    if(GetPlayerScore(playerid) < 1)
    {
    SetPlayerScore(playerid, 10);
    new string[256], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    SendClientMessageToAll(COLOR_PINK,"*[BOT]Anak: {FFFFFF}Enjoy! :)");
    format(string, sizeof(string), "%[REWARD] [BOT]Anak have given 10 score as a reward to Player '%s' for being new member.", pname);
    SendClientMessageToAll(COLOR_PINK, string);

    }

    /*SetPlayerPos(playerid, 1580.3962,-1636.7898,13.5579);
    SetPlayerFacingAngle( playerid, 83.3784);*/
    new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    SetPlayerInterior(playerid, 0);
    SetPlayerColor(playerid, COLOR_WHITE);

   /* if(GetPlayerMoney(playerid) < 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Your money is $0, you have been given $50000.");
    GivePlayerMoney(playerid, 50000);
	}*/


    GivePlayerWeapon(playerid, 9, 1);
    GivePlayerWeapon(playerid, 24, 6000);
    GivePlayerWeapon(playerid, 26, 6000);
    GivePlayerWeapon(playerid, 28, 6000);
    GivePlayerWeapon(playerid, 31, 6000);
    GivePlayerWeapon(playerid, 34, 6000);


    //GameTextForPlayer(playerid, "~w~/skin and /saveskin", 4000, 3);

    if(PInfo[playerid][IsSpecing] == 1) // If the player is still spectating
            {
            PInfo[playerid][IsSpecing] = 0; // Player is no longer spectating
            SetPlayerPos(playerid, PInfo[playerid][X], PInfo[playerid][Y], PInfo[playerid][Z]); // Setting the player to the old x y z
            SetPlayerFacingAngle(playerid, PInfo[playerid][Ang]); // Setting the player to the correct facing angle...
            ResetPlayerWeapons(playerid);
            GivePlayerWeapon(playerid, 28, 200);
            }

    return 1;
            }
    public OnPlayerDeath(playerid, killerid, reason)
    {







    SetPlayerColor(playerid, COLOR_GREY);
    if(challenge[playerid] == 1)
		  {
           new string[256], pname[MAX_PLAYER_NAME];
           GetPlayerName(playerid, pname, sizeof(pname));
           format(string, sizeof(string), "[CHALLENGE] %s has got killed in a challenge", pname);
           SendClientMessageToAll(COLOR_PINK, string);
		   challenge[playerid] =0;
		  }


    //GameTextForPlayer(playerid, "~r~owned ~w~try again!!", 5000, 3);
    SendDeathMessage(killerid, playerid, reason);
    if(GetPlayerWeapon(killerid) == 38)
	{
	SendClientMessage(playerid, COLOR_ORANGE,"Unfair Kill!");
	SendClientMessage(playerid, COLOR_PINK,"Unfair Death!");
	GameTextForPlayer(playerid,"~r~unfair death",4000,3);
	}
	else
	{
    if(IsPlayerConnected(killerid) &&  killerid != INVALID_PLAYER_ID )
    {
                    if(GetPlayerWantedLevel(killerid) < 6)
                    {
                    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
                    }
                    KillStreak[killerid] ++;
                    GivePlayerMoney(killerid, 500);
    }
    SetPlayerWantedLevel(playerid, 0);
    KillStreak[playerid] = 0;
    SetPlayerScore(killerid,GetPlayerScore(killerid)+5);
    new str[ 256 ], KillerName[MAX_PLAYER_NAME]; //here, you're defining a string and the killername
    GetPlayerName(killerid, KillerName, sizeof(KillerName)); //receive the information of the killer's name
    switch(KillStreak[killerid])
    {
        case 2: format(str, sizeof(str), "[KILLINGSPREE] ~g~%s has performed a ~y~double kill!", KillerName);
        case 3: format(str, sizeof(str), "[KILLINGSPREE] ~y~Triple Kill for ~b~%s!", KillerName);
        case 4: format(str, sizeof(str), "[KILLINGSPREE] ~p~Fourth Kill for ~r~%s!", KillerName);
            case 5: format(str, sizeof(str), "[KILLINGSPREE] ~r~%s is dominating with ~p~five kills!", KillerName);
            case 6: format(str, sizeof(str), "[KILLINGSPREE] ~w~%s is epic !! Imagine that !! ~y~six kills!", KillerName);
            case 7: format(str, sizeof(str), "[KILLINGSPREE] ~r~Epic luck for %s with ~w~seven kills!", KillerName);
            case 8: format(str, sizeof(str), "[KILLINGSPREE] ~p~%s is Amazing Killer with ~y~eight kills!", KillerName);
            case 9: format(str, sizeof(str), "[KILLINGSPREE] ~g~%s is Profesional !! ~b~nine kills!", KillerName);
            case 10: format(str, sizeof(str), "[KILLINGSPREE] ~b~%s is annihilating ! ~g~ten kills!", KillerName);
            }
    GameTextForAll(str,4000,4);
    new string[128];
    GivePlayerMoney(killerid, 10000);
    SetPlayerColor(killerid, COLOR_MAROON);


    format(string, sizeof(string), "You Received $10000 For Your Bonus Kill. You Have Now $%d", GetPlayerMoney(killerid));
    SendClientMessage(killerid, COLOR_YELLOW, string);

   	new string_2[128], wepname[32], killername[24], playername[24];
    GetPlayerName(playerid, playername, sizeof(playername));
    GetPlayerName(killerid, killername, sizeof(killername));
    GetWeaponName(reason, wepname, sizeof(wepname));
    SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
    SetPlayerWantedLevel(playerid, 0);

    format(string_2, sizeof(string_2), "%s (%d) Died. Killed By %s (%d) - %s", playername, playerid , killername, killerid, wepname);
    SendClientMessageToAll(COLOR_MAROON, string_2);
    }
	}

    public OnVehicleSpawn(vehicleid)
    {
            return 1;
    }




    forward AD_TIMER(playerid);
    forward DRUG_TIMER(playerid);
    forward DRUG_TIMER_RESPONSE(playerid);


    public OnVehicleDeath(vehicleid, killerid)
    {
            return 1;
    }

    public OnPlayerText(playerid, text[])
    {
            return 1;
    }






    public OnPlayerCommandText(playerid, cmdtext[])
    {


    if(!strcmp(cmdtext, "/clothes", true))
    {
        new string[128];
        for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
        {
            if(IsPlayerAttachedObjectSlotUsed(playerid, x)) format(string, sizeof(string), "%s%d (Used)\n", string, x);
            else format(string, sizeof(string), "%s%d\n", string, x);
        }
        ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, \
        "{FF0000}Clothes", string, "Select", "Cancel");
        return 1;
    }


    return SendClientMessage(playerid, COLOR_RED, "Invalid Command - Type /cmds to see a list of available commands.");
    }

/*forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_RED, "Command not found. Please check /cmds.");
return 1;
}*/
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
            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 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 AD_TIMER(playerid)
{
    SendClientMessage(playerid, COLOR_GREY, "You can use /ad now.");
    USED_AD[playerid] =0;
    KillTimer(AD_TIMER_ID);
    return 1;
}


public DRUG_TIMER_RESPONSE(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid,health);
    DRUG_TIMER_RESPONSE1 = SetTimerEx("DRUG_TIMER_RESPONSE", 2000, false, "i", playerid);
    if (health < 95.0)
    {
    SetPlayerHealth(playerid, health+3);
    }
    return 1;
}


public DRUG_TIMER(playerid)
{
    KillTimer(DRUG_TIMER_RESPONSE1);
    ON_DRUGS[playerid] =0;
    GameTextForPlayer(playerid, "Your drugs are worn off", 3000, 3);
    return 1;
}

forward WELCOME_TD(playerid);

public WELCOME_TD(playerid)
{
    PlayerTextDrawDestroy(playerid, Textdraw0);
    PlayerTextDrawDestroy(playerid, Textdraw1);
    PlayerTextDrawDestroy(playerid, Textdraw2);
    PlayerTextDrawDestroy(playerid, Textdraw3);


    return 1;
}





public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_ATTACH_INDEX_SELECTION:
        {
            if(response)
            {
                if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
                {
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_EDITREPLACE, DIALOG_STYLE_MSGBOX, \
                    "{FF0000}Attachment Modification", "Do you wish to edit the attachment in that slot, or delete it?", "Edit", "Delete");
                }
                else
                {
                    new string[4000+1];
                    for(new x;x<sizeof(AttachmentObjects);x++)
                    {
                        format(string, sizeof(string), "%s%s\n", string, AttachmentObjects[x][attachname]);
                    }
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_MODEL_SELECTION, DIALOG_STYLE_LIST, \
                    "{FF0000}Attachment Modification - Model Selection", string, "Select", "Cancel");
                }
                SetPVarInt(playerid, "AttachmentIndexSel", listitem);
            }
            return 1;
        }
        case DIALOG_ATTACH_EDITREPLACE:
        {
            if(response) EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
            else RemovePlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
            DeletePVar(playerid, "AttachmentIndexSel");
            return 1;
        }
        case DIALOG_ATTACH_MODEL_SELECTION:
        {
            if(response)
            {
                if(GetPVarInt(playerid, "AttachmentUsed") == 1) EditAttachedObject(playerid, listitem);
                else
                {
                    SetPVarInt(playerid, "AttachmentModelSel", AttachmentObjects[listitem][attachmodel]);
                    new string[256+1];
                    for(new x;x<sizeof(AttachmentBones);x++)
                    {
                        format(string, sizeof(string), "%s%s\n", string, AttachmentBones[x]);
                    }
                    ShowPlayerDialog(playerid, DIALOG_ATTACH_BONE_SELECTION, DIALOG_STYLE_LIST, \
                    "{FF0000}Attachment Modification - Bone Selection", string, "Select", "Cancel");
                }
            }
            else DeletePVar(playerid, "AttachmentIndexSel");
            return 1;
        }
        case DIALOG_ATTACH_BONE_SELECTION:
        {
            if(response)
            {
                SetPlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"), GetPVarInt(playerid, "AttachmentModelSel"), listitem+1);
                EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
                SendClientMessage(playerid, 0xFFFFFFFF, "Hint: Use {FFFF00}~k~~PED_SPRINT~{FFFFFF} to look around.");
            }
            DeletePVar(playerid, "AttachmentIndexSel");
            DeletePVar(playerid, "AttachmentModelSel");
            return 1;
        }
    }
    return 0;
}

public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
                                   Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
                                   Float:fRotX, Float:fRotY, Float:fRotZ,
                                   Float:fScaleX, Float:fScaleY, Float:fScaleZ )
{
    new debug_string[256+1];
	format(debug_string,256,"SetPlayerAttachedObject(playerid,%d,%d,%d,%f,%f,%f,%f,%f,%f,%f,%f,%f)",
        index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);

	print(debug_string);

    SetPlayerAttachedObject(playerid,index,modelid,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ);
    SendClientMessage(playerid, 0xFFFFFFFF, "You finished editing an attached object");

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)