Help with TEAM Ranks..
#1

Well basically the title says it all, I don't know how to add team ranks to a team pretty much

If anyone could help me and post a simple code and where to put it, I'd be hugely great-full, thank you


SCRIPT
Код:
#include <a_samp>
#include <YSI\y_ini>
#include <YSI\y_classes>
#include <streamer>
#include <zcmd>
#include <sscanf2>


#define COLOR_INACTIVE     	0xC8BEBEFF

#define SERVER_VERSION "1.0.5"

#define TEAM_GROVE_STREET 			0
#define TEAM_JEFFERSON_BALLAS 		1
#define TEAM_KILOTRAY_BALLAS 		2
#define TEAM_TEMPLE_FAMILIES        3
#define TEAM_LSPD                   4
#define TEAM_BLUNT                  5
#define TEAM_GUNDEALERS             6

#define DIALOG_REGISTER             999
#define DIALOG_LOGIN     			998
#define DIALOG_RULES    			997
#define DIALOG_ANTIDMZONEWEAPON  	996
#define DIALOG_DMZONE    			995
#define DIALOG_BLUNTWEAPONS   		994
#define DIALOG_LSPDMENU1   			993
#define DIALOG_LSPDMENU2   			992
#define DIALOG_LSPDVEHICLES   		991
#define DIALOG_LSPDEQUIP            990

#define GUN_9MM                     22
#define GUN_GLOCK                   24
#define GUN_SHOTGUN                 25
#define GUN_AK                      30
#define GUN_UZI                     31
#define GUN_TEC9                    32
#define GUN_KNIFE                   4


//Text Draws
new Text: ServerNameTextDraw;


//colors
#define COLOR_BLUE                  0x0080FFAA
#define COLOR_RED                   0xF52C2CAA
#define COLOR_GREEN                 0x21D150AA
#define COLOR_GOLD                  0xFFF954AA
#define COLOR_WHITE                 0xFFFFFFAA
#define COLOR_ORANGE                0xFFA200AA
#define MINIA_COLOR                 0x00A6FFAA
#define COLOR_GREY                  0xD1B0B0AA

#define PATH "/Users/%s.ini"

#define INI_Exists(%0)  fexist(%0)


enum PlayerData
{
    Password,
	IP[25],
    Money,
    AdminLevel,
    Kills,
    Deaths,
    Weapon1,
	Weapon1ammo,
	Weapon2,
	Weapon2ammo,
	Weapon3,
	Weapon3ammo,
	Weapon4,
	Weapon4ammo,
	Weapon5,
	Weapon5ammo,
	Weapon6,
	Weapon6ammo,
	Registered,
	LoggedIn
}
new pData[MAX_PLAYERS][PlayerData];

new ItemsGiven[MAX_PLAYERS];
static gTeam[MAX_PLAYERS];


main()
{
	print("\n----------------------------------");
	printf(" Streetz of the East RP %s", SERVER_VERSION);
	print("----------------------------------\n");
}



public OnGameModeInit()
{
    if(!INI_Exists("Users/"))
	{
	    print("\n\n > WARNING: Folder Missing From Scriptfiles\n");
	    print("  Create Folder \"Users\" in Scriptfiles\n\n");
		return 1;
	}

	new string[50];
	format(string,sizeof(string),"Streetz of the East RP %s", SERVER_VERSION);
    SetGameModeText(string);
    ShowNameTags(1);
	DisableInteriorEnterExits();
	SetNameTagDrawDistance(20.00);
	LimitGlobalChatRadius(50.00);
	
	//Textdraw Defines
	TextDrawCreate(1.000000,433.000000,"Streetz of the East - Roleplay");
	TextDrawAlignment(ServerNameTextDraw, 0);
	TextDrawBackgroundColor(ServerNameTextDraw, 0x000000ff);
	TextDrawFont(ServerNameTextDraw, 2);
	TextDrawLetterSize(ServerNameTextDraw, 0.499999,1.100000);
	TextDrawColor(ServerNameTextDraw, 0xffffffff);
	TextDrawSetOutline(ServerNameTextDraw, 1);
	TextDrawSetProportional(ServerNameTextDraw, 1);
	TextDrawSetShadow(ServerNameTextDraw, 1);
	
	//Labels - LSPD
    Create3DTextLabel("/eroomexit \nExits the LSPD Equipment Room", 0xF5D7DFFF, 316.5381,-169.8794,999.6010, 10.0, 6, 0);
    Create3DTextLabel("/pdup \nElevates you to the Floor One in the LSPD Department", 0xF5D7DFFF, 1524.4852,-1677.9323,6.2188, 10.0, 0, 0);
    Create3DTextLabel("/pddown \nElevates you towards the the Ground Floor", 0xF5D7DFFF, 276.0987,122.1456,1004.6172, 10, 0);
    Create3DTextLabel("/eroomenter \n LSPD Equipment Room", 0xF5D7DFFF, 1568.4553,-1689.9713,6.2188, 10.0, 0, 0);
    Create3DTextLabel("/pdenter", 0xF5D7DFFF, 1554.9720,-1675.5599,16.1953, 10.0, 0, 0);
    Create3DTextLabel("/pdexit", 0xF5D7DFFF, 246.5278,107.6377,1003.2188, 10.0, 0, 0);
	Create3DTextLabel("/equip", 0xF5D7DFFF, 312.4713,-166.1388,999.6010, 10.0, 6, 0);

    //GROVE
    Class_Add(107,2375.7463,-1645.6609,13.5308,0); // Fam 0

    //Jefferson Ballas
   	Class_Add(103,2240.6077,-1159.7698,1029.7969,91.2946); // Jefferson Ballas - Spawn Pos 1

    //KTB SPAWN
    Class_Add(104,1983.9275,-1286.4430,35.7188,185.2425); // KTB Spawn Pos 2

    //TDF
    Class_Add(105,822.9223,-1103.2015,25.7982,88.5101); //3
    Class_Add(106,822.9223,-1103.2015,25.7982,88.5101);// 4
    Class_Add(107,822.9223,-1103.2015,25.7982,88.5101);// 5

    //LSPD
    Class_Add(265,1527.0460,-1677.8129,5.8906,271.3791); // LSPD Spawn Postion //6
    Class_Add(280,1527.0460,-1677.8129,5.8906,271.3791); // LSPD Spawn Postion // 7
    Class_Add(281,1527.0460,-1677.8129,5.8906,271.3791); // LSPD Spawn Postion // 8
    
    //Blunt
    Class_Add(21,2290.1372,-1793.6415,13.5469,267.9635); // Blunt's spawn pos //9
    
    //GunDealers
    Class_Add(176,2201.3149,-2223.2322,15.1711,226.3032,0,0,0,0,0,0); // GD
    Class_Add(28,2201.3149,-2223.2322,15.1711,226.3032,0,0,0,0,0,0); // GD

    //mappings
    CreateDynamicObject(14607,2553.61000000,-1682.29000000,1035.13000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14614,2553.82000000,-1682.29000000,1035.12000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14563,2553.81000000,-1682.28000000,1035.12000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14561,2546.33000000,-1682.35000000,1033.61000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1029.08000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1030.43000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1031.75000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1032.98000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1034.31000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1035.42000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1036.76000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1027.74000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1026.80000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1029.08000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1027.74000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1026.80000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1030.43000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1031.75000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1032.98000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1034.31000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1035.42000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1036.76000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1030.43000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1029.08000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1027.74000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1026.80000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1031.75000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1032.98000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1034.31000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1035.42000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1036.76000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(8483,2532.57000000,-1703.72000000,1032.06000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1029.13000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1027.78000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1026.51000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1030.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1031.69000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1032.92000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1034.04000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1035.27000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1036.50000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1030.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1031.69000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1032.92000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1034.04000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1035.27000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1036.50000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1029.13000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1027.78000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1026.51000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1030.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1029.13000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1027.78000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1031.69000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1032.92000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1034.04000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1035.27000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14537,2575.51000000,-1682.32000000,1030.75000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19129,2533.31000000,-1682.41000000,1026.61000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14463,2496.05000000,-1680.38000000,1031.51000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9819,2507.88000000,-1681.08000000,1029.31000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2506.11000000,-1685.52000000,1029.25000000,270.00000000,90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2507.72000000,-1676.55000000,1029.09000000,270.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2506.11000000,-1685.52000000,1028.36000000,0.00000000,-90.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2507.65000000,-1676.56000000,1029.09000000,90.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2511.00000000,-1680.95000000,1029.07000000,90.00000000,0.00000000,360.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2511.00000000,-1680.95000000,1029.08000000,-90.00000000,0.00000000,360.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14820,2510.94000000,-1682.43000000,1029.67000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14820,2510.94000000,-1679.45000000,1029.67000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1958,2510.89000000,-1680.99000000,1029.60000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(16092,2516.89000000,-1682.07000000,1026.57000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2583.41000000,-1691.95000000,1028.53000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2582.12000000,-1695.75000000,1028.53000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2578.87000000,-1694.25000000,1028.53000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2582.13000000,-1690.02000000,1028.53000000,0.00000000,0.00000000,338.86000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2578.88000000,-1690.74000000,1028.53000000,0.00000000,0.00000000,41.02000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1827,2581.06000000,-1692.87000000,1028.51000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2586.10000000,-1697.10000000,1031.99000000,2.00000000,0.00000000,224.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2586.08000000,-1667.39000000,1031.99000000,2.00000000,0.00000000,310.55000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2566.18000000,-1697.11000000,1031.99000000,2.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2566.18000000,-1667.50000000,1031.99000000,2.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1688.73000000,1031.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1688.73000000,1030.14000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1688.73000000,1028.95000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.90000000,-1675.36000000,1031.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1675.36000000,1030.14000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1675.36000000,1028.95000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14463,2569.73000000,-1708.13000000,1031.61000000,0.00000000,0.00000000,57.52000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2568.30000000,-1691.51000000,1028.53000000,0.00000000,0.00000000,41.02000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2572.24000000,-1690.75000000,1028.53000000,0.00000000,0.00000000,310.92000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2573.31000000,-1694.98000000,1028.53000000,0.00000000,0.00000000,227.66000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2568.77000000,-1695.85000000,1028.53000000,0.00000000,0.00000000,133.54000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14463,2585.18000000,-1657.02000000,1031.61000000,0.00000000,0.00000000,228.09000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2579.74000000,-1673.99000000,1028.53000000,0.00000000,0.00000000,127.45000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2585.09000000,-1672.39000000,1028.53000000,0.00000000,0.00000000,226.13000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2580.78000000,-1668.41000000,1028.53000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1827,2570.10000000,-1670.96000000,1028.51000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2572.17000000,-1672.20000000,1028.53000000,0.00000000,0.00000000,227.66000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2568.80000000,-1673.01000000,1028.53000000,0.00000000,0.00000000,136.80000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2571.48000000,-1668.46000000,1028.53000000,0.00000000,0.00000000,317.70000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2567.91000000,-1669.99000000,1028.53000000,0.00000000,0.00000000,45.06000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(16092,2551.46000000,-1682.06000000,1026.57000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2535.51000000,-1696.28000000,1033.38000000,30.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2531.55000000,-1696.73000000,1033.38000000,30.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2582.47000000,-1671.21000000,1035.85000000,0.00000000,231.00000000,227.33000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18654,2580.61000000,-1671.24000000,1035.85000000,0.00000000,233.00000000,335.56000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2571.17000000,-1693.54000000,1035.31000000,0.00000000,236.00000000,179.27000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18654,2570.69000000,-1692.92000000,1035.49000000,0.00000000,230.00000000,278.94000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19151,2569.39000000,-1696.56000000,1034.08000000,0.00000000,0.00000000,339.82000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2571.82000000,-1696.90000000,1034.14000000,0.00000000,0.00000000,26.82000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19155,2579.74000000,-1668.60000000,1034.41000000,-22.00000000,4.00000000,194.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19156,2583.27000000,-1668.20000000,1034.36000000,-18.00000000,0.00000000,154.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(8483,2532.57000000,-1662.23000000,1032.06000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2780,2533.44000000,-1699.17000000,1027.71000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2780,2531.38000000,-1664.80000000,1027.71000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18102,2519.41000000,-1677.96000000,1036.31000000,-30.00000000,0.00000000,90.21000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19150,2518.02000000,-1685.97000000,1035.11000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19150,2517.83000000,-1677.92000000,1035.11000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2517.70000000,-1686.82000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18648,2517.73000000,-1682.31000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18102,2548.76000000,-1687.34000000,1036.31000000,-30.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2547.89000000,-1679.05000000,1036.33000000,0.00000000,245.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2548.03000000,-1687.22000000,1036.22000000,0.00000000,245.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2533.56000000,-1669.24000000,1033.38000000,30.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2529.62000000,-1669.72000000,1033.38000000,30.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.71000000,-1676.08000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.20000000,-1676.08000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.71000000,-1674.57000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.20000000,-1674.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.71000000,-1688.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.70000000,-1689.58000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.18000000,-1689.57000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.18000000,-1689.57000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.20000000,-1688.08000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2517.72000000,-1677.39000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2552.28000000,-1686.74000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18648,2552.28000000,-1681.91000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2552.29000000,-1677.43000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.61000000,-1689.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.62000000,-1688.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.12000000,-1688.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.13000000,-1689.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.63000000,-1676.10000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.62000000,-1674.58000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.12000000,-1674.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.14000000,-1676.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1557,2601.75000000,-1683.81000000,1031.00000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1557,2601.74000000,-1680.77000000,1031.00000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18856,2541.12000000,-1695.71000000,1032.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18856,2526.11000000,-1695.71000000,1032.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2543.22000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2539.04000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2539.06000000,-1693.54000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2543.24000000,-1693.56000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2528.15000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2524.09000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2528.16000000,-1693.58000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2524.10000000,-1693.60000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18856,2541.13000000,-1669.15000000,1032.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2543.22000000,-1671.18000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2539.04000000,-1671.16000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2543.22000000,-1671.38000000,1034.11000000,16.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2539.05000000,-1671.36000000,1034.11000000,16.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14595,2613.51000000,-1105.98000000,-23.40000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2605.82000000,-1090.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2605.82000000,-1086.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2605.82000000,-1082.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2608.82000000,-1082.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2608.82000000,-1086.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2608.82000000,-1090.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2321,2601.68000000,-1086.54000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2321,2601.68000000,-1086.54000000,-26.86000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1671,2600.63000000,-1087.05000000,-26.87000000,0.00000000,0.00000000,60.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.80000000,-1091.62000000,-26.87000000,0.00000000,0.00000000,260.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.79000000,-1090.47000000,-26.87000000,0.00000000,0.00000000,264.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.83000000,-1091.54000000,-26.87000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.82000000,-1090.39000000,-26.87000000,0.00000000,0.00000000,273.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.94000000,-1087.53000000,-26.86000000,0.00000000,0.00000000,261.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.94000000,-1086.41000000,-26.86000000,0.00000000,0.00000000,273.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.98000000,-1083.53000000,-26.87000000,0.00000000,0.00000000,265.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.90000000,-1082.28000000,-26.87000000,0.00000000,0.00000000,283.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.92000000,-1082.38000000,-26.87000000,0.00000000,0.00000000,277.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.96000000,-1083.50000000,-26.87000000,0.00000000,0.00000000,269.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.91000000,-1087.65000000,-26.87000000,0.00000000,0.00000000,255.97000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.96000000,-1086.40000000,-26.86000000,0.00000000,0.00000000,279.97000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3077,2597.93000000,-1086.35000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3026,2610.38000000,-1086.44000000,-26.83000000,0.00000000,272.00000000,94.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1742,2614.75000000,-1085.64000000,-27.33000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1744,2604.04000000,-1092.54000000,-25.89000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2145,2597.65000000,-1089.80000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2145,2597.63000000,-1089.09000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2161,2597.39000000,-1091.49000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2162,2597.92000000,-1080.41000000,-27.36000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2163,2614.20000000,-1082.63000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2167,2614.20000000,-1084.57000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2167,2614.19000000,-1081.57000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2187,2615.18000000,-1088.09000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2191,2599.88000000,-1080.86000000,-27.33000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2737,2606.71000000,-1092.33000000,-25.27000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2164,2597.43000000,-1083.42000000,-27.36000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1999,2615.37000000,-1088.14000000,-27.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2187,2615.23000000,-1090.15000000,-27.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1671,2614.56000000,-1088.81000000,-26.90000000,0.00000000,0.00000000,60.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2601.53000000,-1087.18000000,-26.36000000,0.00000000,0.00000000,280.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.08000000,-1090.32000000,-26.52000000,0.00000000,0.00000000,280.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.06000000,-1091.52000000,-26.52000000,0.00000000,0.00000000,260.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.09000000,-1091.53000000,-26.52000000,0.00000000,0.00000000,264.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.09000000,-1090.44000000,-26.52000000,0.00000000,0.00000000,274.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.08000000,-1087.48000000,-26.52000000,0.00000000,0.00000000,93.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.00000000,-1086.38000000,-26.52000000,0.00000000,0.00000000,253.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2605.99000000,-1086.50000000,-26.52000000,0.00000000,0.00000000,293.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.03000000,-1083.49000000,-26.52000000,0.00000000,0.00000000,263.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.00000000,-1082.36000000,-26.52000000,0.00000000,0.00000000,103.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.01000000,-1083.52000000,-26.52000000,0.00000000,0.00000000,93.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2605.59000000,-1080.61000000,-26.70000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2606.72000000,-1080.58000000,-26.70000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2607.78000000,-1080.58000000,-26.70000000,0.00000000,0.00000000,359.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2615.63000000,-1090.40000000,-26.70000000,0.00000000,0.00000000,89.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2615.61000000,-1091.51000000,-26.70000000,0.00000000,0.00000000,269.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2601.90000000,-1092.12000000,-26.70000000,0.00000000,0.00000000,179.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2186,2600.71000000,-1091.89000000,-27.36000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(6959,2612.04000000,-1089.11000000,-27.33000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1535,2614.25000000,-1092.65000000,-27.36000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19172,2609.85000000,-1092.39000000,-25.00000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19174,2607.03000000,-1080.38000000,-25.00000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19166,2614.22000000,-1083.04000000,-25.45000000,90.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1082.30000000,-24.64000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1083.80000000,-24.64000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1083.80000000,-26.24000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1082.30000000,-26.24000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2930, 2232.7619628906, -1156.3321533203, 31.433731079102, 0, 0, 90);
	CreateDynamicObject(10831, 1883.9830322266, -1863.3870849609, 17.500335693359, 0, 0, 180);
	CreateDynamicObject(3037, 1886.7242431641, -1849.5784912109, 14.771245002747, 0, 0, 90);
	CreateDynamicObject(3037, 1883.9946289063, -1849.7019042969, 18.721185684204, 0, 0, 90);
	CreateDynamicObject(2502, 270.91174316406, 116.48319244385, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(2502, 270.91094970703, 117.75637054443, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(2502, 270.92053222656, 119.03476715088, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(2502, 270.93383789063, 120.32833862305, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(355, 270.99588012695, 116.93751525879, 1005.1434326172, 0, 6.5, 264);
	CreateDynamicObject(356, 270.93026733398, 118.19915771484, 1005.068359375, 0, 0, 280);
	CreateDynamicObject(353, 270.86660766602, 119.16947937012, 1005.068359375, 0, 0, 274);
	CreateDynamicObject(348, 270.86434936523, 120.1237487793, 1005.1434326172, 0, 0, 268);
	CreateDynamicObject(1279, 270.90872192383, 117.36851501465, 1004.6998291016, 0, 0, 88);
	CreateDynamicObject(1279, 271.06796264648, 119.45548248291, 1004.6998291016, 0, 0, 87.994995117188);
	CreateDynamicObject(2949, 275.69552612305, 121.37168884277, 1003.633605957, 0, 0, 180);
	CreateDynamicObject(366, 275.94955444336, 118.65814971924, 1004.8333129883, 0, 36, 88);
	CreateDynamicObject(3036, 239.67816162109, 120.02388763428, 1006.3355712891, 0, 0, 0);
	CreateDynamicObject(3036, 244.36128234863, 120.00930023193, 1006.3355712891, 0, 0, 0);
	CreateDynamicObject(3036, 248.3034362793, 119.98500823975, 1006.3355712891, 0, 0, 0);
	CreateDynamicObject(2190, 250.26599121094, 122.57698059082, 1003.0684204102, 0, 2, 186);
	CreateDynamicObject(367, 252.09519958496, 118.49488067627, 1002.46875, 0, 0, 0);
	CreateDynamicObject(2190, 245.04873657227, 122.63041687012, 1003.0684204102, 0, 1.99951171875, 185.99853515625);
	CreateDynamicObject(1999, 247.25245666504, 122.96807098389, 1002.21875, 0, 0, 180);
	CreateDynamicObject(2609, 232.55227661133, 127.08039093018, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2609, 233.0518951416, 127.0572052002, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2609, 233.55010986328, 127.01513671875, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2609, 234.04815673828, 126.97314453125, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2606, 233.29969787598, 127.08039093018, 1003.9165649414, 0, 0, 0);

    //Vehicles
    AddStaticVehicle(481,2371.9229,-1634.1638,12.9802,180.3790,86,0); // Bike 1
    AddStaticVehicle(559,2297.7393,-1754.3354,13.1182,90.4362,120,65); // My house vehicle
	AddStaticVehicle(522,2303.9258,-1754.5068,13.1204,91.3057,110,112); // Blunt's NPJ outside his house
	AddStaticVehicle(481,2295.6729,-1754.7506,13.0636,94.1804,86,0); // My house bmx
    AddStaticVehicle(481,2374.2383,-1633.7467,12.9833,179.0111,86,0); // Bike 2
    AddStaticVehicle(481,2377.2588,-1633.4475,12.9820,180.1245,86,0); // Bike 3
    AddStaticVehicle(481,2379.3660,-1633.3582,12.9818,178.7856,86,0); // Bike 4
    AddStaticVehicle(566,2227.7656,-1162.9019,25.5456,270.3075,112,93); // Jefferson Ballas - Tahoma spawn1
    AddStaticVehicle(566,2228.6995,-1166.3872,25.5397,269.6280,112,93); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2228.4255,-1170.0044,25.5233,269.6380,112,93); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2228.2002,-1173.5763,25.5128,269.3760,112,93); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2217.4609,-1166.2075,25.5070,91.0149,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2217.1426,-1157.4551,25.5065,90.6832,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2206.0886,-1157.5243,25.5161,90.3675,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2205.7903,-1161.0359,25.5127,89.7004,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2205.7136,-1173.2231,25.5053,271.5527,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(481,2210.7625,-1144.1477,25.3193,265.2361,186,79); // Jefferson Ballas - Bikes
    AddStaticVehicle(481,2210.3445,-1142.7505,25.3240,263.4869,186,79); // Jefferson Ballas - Bikes
    AddStaticVehicle(481,2210.1401,-1140.9392,25.3272,263.0420,186,79); // Jefferson Ballas - Bikes
    AddStaticVehicle(596,1529.0367,-1684.0232,5.6101,90.2795,0,1); // LSPD, Cruiser 1
    AddStaticVehicle(596,1529.3722,-1687.9187,5.6110,89.3842,0,1); // LSPD, Cruiser 2
    AddStaticVehicle(596,1544.9542,-1684.5508,5.6123,269.2281,0,1); // LSPD, Cruiser 3
    AddStaticVehicle(596,1545.0380,-1680.2743,5.6138,269.5319,0,1); // LSPD, Cruiser 4
    AddStaticVehicle(596,1545.0320,-1676.1202,5.6086,271.0058,0,1); // LSPD, Cruiser 5
    AddStaticVehicle(490,1544.5098,-1662.9607,6.0192,269.3992,0,0); // LSPD, Rancher 1
    AddStaticVehicle(490,1544.8907,-1659.0326,6.0192,270.2172,0,0); // LSPD, Rancher 2
    AddStaticVehicle(490,1544.6188,-1654.8923,6.0187,270.0463,0,0); // LSPD, Rancher 3
    AddStaticVehicle(601,1530.5724,-1646.1047,5.6494,0.6943,102,42); // LSPD, SWAT VAN 1
    AddStaticVehicle(601,1538.5717,-1645.4164,5.6494,359.4243,102,42); // LSPD, SWAT VAN 2
    AddStaticVehicle(523,1558.8451,-1712.6416,5.4572,359.2299,111,0); // LSPD Bike - 1
    AddStaticVehicle(523,1564.8617,-1711.0588,5.4576,2.4206,111,0); // LSPD Bike - 2
    AddStaticVehicle(523,1570.2678,-1712.3718,5.4640,358.7958,111,0); // LSPD Bike - 3
    AddStaticVehicle(523,1574.3527,-1713.2228,5.4609,1.4374,111,0); // LSPD Bike - 4
	
    //Labels
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerColor(playerid, COLOR_INACTIVE);
	switch(classid)
	{
		case 0:
		{
		    gTeam[playerid] = TEAM_GROVE_STREET;
		    GameTextForPlayer(playerid, "~g~Grove Street Families", 5000, 5);
			SetPlayerPos(playerid, 2375.7463,-1645.9944,13.5322);
			SetPlayerCameraPos(playerid, 2375.9658,-1647.8722,13.5405);
			SetPlayerCameraLookAt(playerid, 2375.7463,-1645.9944,13.5322);
			SetPlayerFacingAngle(playerid, 180.000);
			ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		//----------------------------------------------------------------------
		case 1:
		{
		    gTeam[playerid] = TEAM_JEFFERSON_BALLAS;
		    GameTextForPlayer(playerid, "~p~Jefferson Ballas", 5000, 5);
			SetPlayerPos(playerid, 2240.6077,-1159.7698,1029.7969);
			SetPlayerCameraPos(playerid, 2235.6484,-1159.6964,1029.7969);
			SetPlayerCameraLookAt(playerid, 2240.6077,-1159.7698,1029.7969);
			SetPlayerFacingAngle(playerid, 91.2946);
			SetPlayerInterior(playerid, 15);
			SetPlayerVirtualWorld(playerid, 74);
			ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
		}
	    //----------------------------------------------------------------------
		case 2:
		{
		    gTeam[playerid] = TEAM_KILOTRAY_BALLAS;
		    GameTextForPlayer(playerid, "~p~Kilo Trey Ballas", 5000, 5);
			SetPlayerPos(playerid, 1983.9275,-1286.4430,35.7188);
			SetPlayerCameraPos(playerid, 1984.2852,-1288.3123,35.7188);
			SetPlayerCameraLookAt(playerid, 1983.9275,-1286.4430,35.7188);
			SetPlayerFacingAngle(playerid, 91.2946);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		//----------------------------------------------------------------------
		case 3:
		{
		    gTeam[playerid] = TEAM_TEMPLE_FAMILIES;
		    GameTextForPlayer(playerid, "~g~Temple Drive Families", 5000, 5);
			SetPlayerPos(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerCameraPos(playerid, 831.3555,-1103.0902,24.2969);
			SetPlayerCameraLookAt(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerFacingAngle(playerid, 88.5101);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 4:
		{
		    gTeam[playerid] = TEAM_TEMPLE_FAMILIES;
		    GameTextForPlayer(playerid, "~g~Temple Drive Families", 5000, 5);
			SetPlayerPos(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerCameraPos(playerid, 831.3555,-1103.0902,24.2969);
			SetPlayerCameraLookAt(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerFacingAngle(playerid, 88.5101);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 5:
		{
		    gTeam[playerid] = TEAM_TEMPLE_FAMILIES;
		    GameTextForPlayer(playerid, "~g~Temple Drive Families", 5000, 5);
			SetPlayerPos(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerCameraPos(playerid, 831.3555,-1103.0902,24.2969);
			SetPlayerCameraLookAt(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerFacingAngle(playerid, 88.5101);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		//----------------------------------------------------------------------
		case 6:
		{
		    gTeam[playerid] = TEAM_LSPD;
		    GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
			SetPlayerPos(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerCameraPos(playerid, 1529.1135,-1677.7134,5.8906);
			SetPlayerCameraLookAt(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerFacingAngle(playerid, 271.3791);
			ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);

		}
		case 7:
		{
		    gTeam[playerid] = TEAM_LSPD;
		    GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
			SetPlayerPos(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerCameraPos(playerid, 1529.1135,-1677.7134,5.8906);
			SetPlayerCameraLookAt(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerFacingAngle(playerid, 271.3791);
			ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);

		}
		case 8:
		{
		    gTeam[playerid] = TEAM_LSPD;
		    GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
			SetPlayerPos(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerCameraPos(playerid, 1529.1135,-1677.7134,5.8906);
			SetPlayerCameraLookAt(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerFacingAngle(playerid, 271.3791);
			ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);

		}
		//----------------------------------------------------------------------
		case 9:
		{
			gTeam[playerid] = TEAM_BLUNT;
		    GameTextForPlayer(playerid, "~>~~g~Blunt ]ONLY] ~<~", 10000, 5);
			SetPlayerPos(playerid, 2290.1372,-1793.6415,13.5469);
			SetPlayerCameraPos(playerid, 2292.0276,-1793.4440,13.5469);
			SetPlayerCameraLookAt(playerid, 2290.1372,-1793.6415,13.5469);
			SetPlayerFacingAngle(playerid, 267.9635);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
			ApplyAnimation(playerid,"SHOP","smoke_RYD",4.0,0,1,1,1,1);
		}
		
		case 10:
		{
			gTeam[playerid] = TEAM_GUNDEALERS;
		    GameTextForPlayer(playerid, "Gun Dealers", 10000, 5);
			SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerCameraPos(playerid, 2203.4250,-2225.4280,13.5469);
			SetPlayerCameraLookAt(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerFacingAngle(playerid, 226.3032);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 11:
		{
			gTeam[playerid] = TEAM_GUNDEALERS;
		    GameTextForPlayer(playerid, "Gun Dealers", 10000, 5);
			SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerCameraPos(playerid, 2203.2896,-2225.2507,13.5469);
			SetPlayerCameraLookAt(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerFacingAngle(playerid, 226.3032);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 12:
		{
			gTeam[playerid] = TEAM_GUNDEALERS;
		    GameTextForPlayer(playerid, "Gun Dealers", 10000, 5);
			SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerCameraPos(playerid, 2203.2896,-2225.2507,13.5469);
			SetPlayerCameraLookAt(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerFacingAngle(playerid, 226.3032);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
    }
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    if(gTeam[playerid] == TEAM_BLUNT)
    {
    	if(strcmp(pName(playerid), "Blunt", true) == 0)
		{
		    return 1;
		}
		else
		{
			return 0;
		}
	}

    if(!pData[playerid][LoggedIn])
    {
        if(!pData[playerid][Registered])
        {
            return 0;
        }
        if(pData[playerid][Registered] == 1 && pData[playerid][LoggedIn] == 0)
        {
            return 0;
        }
    }
	return 1;
}

public OnPlayerConnect(playerid)
{
	pData[playerid][Password] = 0;
    pData[playerid][IP] = 0;
    pData[playerid][Money] = 0;
    pData[playerid][AdminLevel] = 0;
    pData[playerid][Kills] = 0;
    pData[playerid][Deaths] = 0;
    pData[playerid][Registered] = 0;
    pData[playerid][LoggedIn] = 0;
	pData[playerid][Weapon1] = 0; pData[playerid][Weapon1ammo] = 0;
	pData[playerid][Weapon2] = 0; pData[playerid][Weapon2ammo] = 0;
	pData[playerid][Weapon3] = 0; pData[playerid][Weapon3ammo] = 0;
	pData[playerid][Weapon4] = 0; pData[playerid][Weapon4ammo] = 0;
	pData[playerid][Weapon5] = 0; pData[playerid][Weapon5ammo] = 0;
	pData[playerid][Weapon6] = 0; pData[playerid][Weapon6ammo] = 0;
	
	ItemsGiven[playerid] = 0;
	
	Class_DenySelection(playerid);
	if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowLoginDialog(playerid, 3);
        pData[playerid][Registered] = 1;
    }
    else
    {
        ShowLoginDialog(playerid, 1);
    }
	new string[128];
	format(string,sizeof(string),"Welcome to East Side Guerilla - Team Deathmatch %s", SERVER_VERSION);
    SendClientMessage(playerid, 0x979C43FF, string);
	SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Script Last Updated, 15th September 2011, 12:15am");
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    if(pData[playerid][LoggedIn] == 1)
    {
		new INI:File = INI_Open(UserPath(playerid));
    	INI_SetTag(File,"data");
    	INI_WriteInt(File,"AdminLevel",pData[playerid][AdminLevel]);
    	INI_WriteInt(File,"Money",GetPlayerMoney(playerid));
    	INI_WriteInt(File,"Kills",GetPlayerScore(playerid));
    	INI_WriteInt(File,"Deaths",pData[playerid][Deaths]);
    	new weap1, ammo1, weap2, ammo2, weap3, ammo3, weap4, ammo4, weap5, ammo5, weap6, ammo6;
		GetPlayerWeaponData(playerid,2,weap1,ammo1);// hand gun
		INI_WriteInt(File,"weap1",weap1);
		INI_WriteInt(File,"weap1ammo",ammo1);
		GetPlayerWeaponData(playerid,3,weap2,ammo2);//shotgun
		INI_WriteInt(File,"weap2",weap2);
		INI_WriteInt(File,"weap2ammo",ammo2);
		GetPlayerWeaponData(playerid,4,weap3,ammo3);// SMG
		INI_WriteInt(File,"weap3",weap3);
		INI_WriteInt(File,"weap3ammo",ammo3);
		GetPlayerWeaponData(playerid,5,weap4,ammo4);// AK47 / M4
		INI_WriteInt(File,"weap4",weap4);
		INI_WriteInt(File,"weap4ammo",ammo4);
		GetPlayerWeaponData(playerid,6,weap5,ammo5);// rifle
		INI_WriteInt(File,"weap5",weap5);
		INI_WriteInt(File,"weap5ammo",ammo5);
		GetPlayerWeaponData(playerid,7,weap6,ammo6);// rocket launcher
		INI_WriteInt(File,"weap6",weap3);
		INI_WriteInt(File,"weap6ammo",ammo3);
    	INI_Close(File);
	}
	return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerSkin(playerid, GetPlayerSkin(playerid));
    SetPlayerToTeamColor(playerid);

	if(ItemsGiven[playerid] == 0)
	{
		GivePlayerWeapon(playerid, pData[playerid][Weapon1], pData[playerid][Weapon1ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon2], pData[playerid][Weapon2ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon3], pData[playerid][Weapon3ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon4], pData[playerid][Weapon4ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon5], pData[playerid][Weapon5ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon6], pData[playerid][Weapon6ammo]);
		ItemsGiven[playerid] = 1;
	}
	//TEAM Spawns
	if(gTeam[playerid] == TEAM_KILOTRAY_BALLAS)
	{
		SetPlayerPos(playerid, 1982.6847,-1246.3368,24.1779);
	}
	
	if(gTeam[playerid] == TEAM_GUNDEALERS)
	{
	    SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
	}


	return 1;
}


SetPlayerToTeamColor(playerid)
{
    switch(gTeam[playerid])
    {
        case TEAM_GROVE_STREET:		    	 SetPlayerColor(playerid, 0x2D964DFF);
        case TEAM_JEFFERSON_BALLAS:   		 SetPlayerColor(playerid, 0xB222D6FF);
       	case TEAM_KILOTRAY_BALLAS:  		 SetPlayerColor(playerid, 0xF21D21FF);
       	case TEAM_LSPD:   					 SetPlayerColor(playerid, 0xF5D7DFFF);
       	case TEAM_BLUNT:   					 SetPlayerColor(playerid, 0xF5D7DFFF);
       	case TEAM_GUNDEALERS:                SetPlayerColor(playerid, COLOR_ORANGE);
	}
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID)
    {
        SendDeathMessage(INVALID_PLAYER_ID, playerid, reason);
    }
    else
    {
    	SendDeathMessage(killerid, playerid, reason);
    	SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
    	pData[playerid][Deaths]++;
    }
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

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

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


COMMAND:rules(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Server Rules", "Do not Deathmatch in Anti-DM Zones, You can only use Melee's \nDo not C-Bug, Or use any other bug to enhance your performance \nDo NOT Spawn Kill \nMore Coming Soon!", "Agree", "Disagree");
	return 1;
}


COMMAND:help(playerid, params[])
{
	SendClientMessage(playerid, 0x9CDADBFF, "[GENERAL]: /me, /rules, /do ");
 	SendClientMessage(playerid, 0x4E9654FF, "[Administration]: /admins - shows a list of admins online");
  	SendClientMessage(playerid, 0x9CDADBFF, "[Animation]: /animations");
   	return 1;
}
    
COMMAND:kill(playerid, params[])
{
	SetPlayerHealth(playerid, 0.0);
	return 1;
}


COMMAND:me(playerid, params[])
{
	if(params[3]) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /me [action]");
 	new str[128];
  	GetPlayerName(playerid, str, sizeof(str));
   	format(str, sizeof(str), "* %s %s", str, params[4]);
	new Float:pPos[3];
	GetPlayerPos(playerid,pPos[0],pPos[1], pPos[2]);
	IsPlayerNextToPlayer(5,pPos[0],pPos[1], pPos[2],str,0x619CEDFF);
 	return 1;
}

COMMAND:do(playerid, params[])
{
	if(params[3])return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /do [action]");
 	new str[128];
  	GetPlayerName(playerid, str, sizeof(str));
   	format(str, sizeof(str), "* %s (( %s ))", str, params[4]);
   	new Float:pPos[3];
	GetPlayerPos(playerid,pPos[0],pPos[1], pPos[2]);
	IsPlayerNextToPlayer(5,pPos[0],pPos[1], pPos[2],str,0x619CEDFF);
 	return 1;
}
    
COMMAND:l(playerid, params[])
{
	if(params[3])return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /l [Message]");
 	new str[128];
  	GetPlayerName(playerid, str, sizeof(str));
   	format(str, sizeof(str),"%s: %s",str , params[4]);
   	new Float:pPos[3];
	GetPlayerPos(playerid,pPos[0],pPos[1], pPos[2]);
	IsPlayerNextToPlayer(5,pPos[0],pPos[1], pPos[2],str,0x619CEDFF);
 	return 1;
}


COMMAND:lockallcars(playerid, params[])
{
	if(IsPlayerAdmin(playerid))
	{
		Lockmycars(playerid);
		GameTextForPlayer(playerid, "~r~All the cars have been locked by an Admin!", 5000, 2);
		return 1;
	}
	return 1;
}
	
COMMAND:unlockallcars(playerid, params[])
{
	if(IsPlayerAdmin(playerid))
	{
		Unlockmycars(playerid);
		GameTextForPlayer(playerid, "~b~All the cars have been unlocked by an Admin!", 5000, 2);
		return 1;
	}
	return 1;
}

COMMAND:eroomenter(playerid, params[])
{
	if(gTeam[playerid] == TEAM_LSPD)
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 1568.7085,-1689.9731,6.2188))
	{
     	SetPlayerPos(playerid, 316.4204,-169.8626,999.6010);
     	SetPlayerInterior(playerid, 6);
     	SetPlayerVirtualWorld(playerid, 0);
	}
	else SendClientMessage(playerid, COLOR_RED, "You do not have access to this command!");
	return 1;
}

COMMAND:eroomexit(playerid, params[])
{
	if(gTeam[playerid] == TEAM_LSPD)
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 316.4204,-169.8626,999.6010))
	{
     	SetPlayerPos(playerid, 1568.7085,-1689.9731,6.2188);
      	SetPlayerInterior(playerid, 0);
       	SetPlayerVirtualWorld(playerid, 0);
	}
	else SendClientMessage(playerid, COLOR_RED, "You do not have access to this command!");
	return 1;
}
	
COMMAND:jbenter(playerid, params[])
{

	if(IsPlayerInRangeOfPoint(playerid, 2.0, 2232.7620,-1159.7970,25.8906))
	{
		SetPlayerPos(playerid, 2216.3401,-1150.5100,1025.7969);
		SetPlayerInterior(playerid, 15);
		SetPlayerVirtualWorld(playerid, 74);
	}
	return 1;
}
	
COMMAND:jbexit(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 2216.3401,-1150.5100,1025.7969))
	{
		SetPlayerPos(playerid, 2232.7620,-1159.7970,25.8906);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:pdexit(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.5278,107.6377,1003.2188))
	{
		SetPlayerPos(playerid, 1554.9720,-1675.5599,16.1953);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:equip(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.4713,-166.1388,999.6010))
	{
		ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");//Something here
	}
	return 1;
}

COMMAND:pdenter(playerid, params[])
{

	if(IsPlayerInRangeOfPoint(playerid, 2.0, 1554.9720,-1675.5599,16.1953))
	{
		SetPlayerPos(playerid, 246.5278,107.6377,1003.2188);
		SetPlayerInterior(playerid, 10);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:pddown(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 276.3915,122.2752,1004.6172))
	{
		SetPlayerPos(playerid, 1524.4832,-1677.8899,6.2188);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:pdup(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 1524.4832,-1677.8899,6.2188))
	{
		SetPlayerPos(playerid, 276.3915,122.2752,1004.6172);
		SetPlayerInterior(playerid, 10);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

	
COMMAND:bluntweps(playerid, params[])
{
	if(strcmp(pName(playerid), "[GD]Blunt", true) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_BLUNTWEAPONS, DIALOG_STYLE_LIST,"Blunt's Weapon System", "Glock \nAK-47 \nM4 Carbine \nSniper Rifle \nMP5 \nShotgun", "Select", "Exit");// do the command actions
	}
	else
	{
		return SendClientMessage( playerid, -1, "You are not Blunt!");
	}
	return true;
}
    
	


public OnVehicleStreamIn(vehicleid, forplayerid)
{
    SetVehicleParamsForPlayer(1, forplayerid, 0, 0);
	SetVehicleParamsForPlayer(2, forplayerid, 0, 0);
	SetVehicleParamsForPlayer(3, forplayerid, 0, 0);
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    SetVehicleParamsForPlayer(1, forplayerid, 0, 1);
	SetVehicleParamsForPlayer(2, forplayerid, 0, 1);
	SetVehicleParamsForPlayer(3, forplayerid, 0, 1);
	return 1;
}

stock IsPlayerNextToPlayer(Float:range, Float:rx, Float:ry, Float:rz, const Message[],color)
{
	for(new i; i < MAX_PLAYERS; i++)
	{
	    if(IsPlayerConnected(i))
	    {
			if(IsPlayerInRangeOfPoint(i,range, rx, ry, rz ))
			{
			    SendClientMessage(i, color, Message);
			    return 1;
			}
	    }
	}
	return 0;
}

stock Lockmycars(playerid)
{
	SetVehicleParamsForPlayer(1, playerid, 0, 1);
	SetVehicleParamsForPlayer(2, playerid, 0, 1);
	SetVehicleParamsForPlayer(3, playerid, 0, 1);
}

stock Unlockmycars(playerid)
{
	SetVehicleParamsForPlayer(1, playerid, 0, 0);
	SetVehicleParamsForPlayer(2, playerid, 0, 0);
	SetVehicleParamsForPlayer(3, playerid, 0, 0);
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
		case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
     	 	    {
                if(strlen(inputtext))
				{
					new INI:File = INI_Open(UserPath(playerid));
					INI_SetTag(File,"data");
					INI_WriteInt(File,"Password",udb_hash(inputtext));
					INI_WriteString(File,"IP",pIP(playerid));
					INI_WriteInt(File,"AdminLevel",0);
					INI_WriteInt(File,"Money",0);
					INI_WriteInt(File,"Kills",0);
					INI_WriteInt(File,"Deaths",0);
					INI_WriteInt(File,"weap1",0); INI_WriteInt(File,"weap1ammo",0);
					INI_WriteInt(File,"weap2",0); INI_WriteInt(File,"weap2ammo",0);
					INI_WriteInt(File,"weap3",0); INI_WriteInt(File,"weap3ammo",0);
					INI_WriteInt(File,"weap4",0); INI_WriteInt(File,"weap4ammo",0);
					INI_WriteInt(File,"weap5",0); INI_WriteInt(File,"weap5ammo",0);
					INI_WriteInt(File,"weap6",0); INI_WriteInt(File,"weap6ammo",0);
					INI_Close(File);
					SendClientMessage(playerid, -1, "You have been registered on this server!");
					pData[playerid][Registered] = 1;
        			pData[playerid][LoggedIn] = 1;
        			Class_ReturnToSelection(playerid);
				}
				else
				{
					ShowLoginDialog(playerid, 2);
				}
            }
        }
        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
           	if( response )
            {
                if(udb_hash(inputtext) == pData[playerid][Password])
                {
                    new INI:File = INI_Open(UserPath(playerid));
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, pData[playerid][Money]);
					SetPlayerScore(playerid, pData[playerid][Kills]);
   	                SendClientMessage(playerid, -1, "You have been logged in!");
                    INI_WriteString(File,"IP",pIP(playerid));
        			pData[playerid][LoggedIn] = 1;
        			Class_ReturnToSelection(playerid);
                }
                else
                {
                    ShowLoginDialog(playerid, 4);
                }
            }
        }
		case DIALOG_RULES:
		{
			if(response)
			{
				SendClientMessage(playerid, 0xFFFF00FF, "Thank you for agreeing with the rules.");
			}
			else
			{
				SendClientMessage(playerid, 0xFFFF00FF, "disagreeing with the rules results in a kick.");
				Kick(playerid);
			}
		}
		
		case DIALOG_BLUNTWEAPONS: // Weapon System Dialog - BLUNT WEAPONS
		{
			if(response == 0) return SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You exited the Weapon Menu!");
			switch(listitem)
			{
				case 0:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a Glock Bat!");
					GivePlayerWeapon(playerid, 24, 500);
				}
				case 1:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a AK-47");
					GivePlayerWeapon(playerid, 30, 500);
				}
				case 2:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a M4 Carbine");
					GivePlayerWeapon(playerid, 31, 500);
				}
				case 3:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a Sniper Rifle");
					GivePlayerWeapon(playerid, 34, 500);
				}
				case 4:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a MP5");
					GivePlayerWeapon(playerid, 29, 500);
				}
				case 5:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a Shotgun");
					GivePlayerWeapon(playerid, 25, 500);
				}
			}
		}
		case DIALOG_LSPDMENU1: // LSPD System
		{
			if(response == 0) return SendClientMessage(playerid, 0x0059FFFF, "[INFO]: You exited the LSPD Menu");
			switch(listitem)
			{
				case 0:
				{
					SendClientMessageToAll(0x0059FFFF, "Government: Dear Citizens of Los Santos, A LSPD Officer is now Currently ON Duty");
					SetPlayerColor(playerid, 0x0059FFFF);
				}
				case 1:
				{
					SendClientMessage(playerid, 0x0059FFFF, "You have been set to OFF Duty, In the LSPD Service");
					SetPlayerColor(playerid, 0xFFFFFFFF);
				}
				case 2:
				{
					ShowPlayerDialog(playerid, DIALOG_LSPDMENU2, DIALOG_STYLE_LIST, "LSPD Equipment", "Cadet Equipment \nOfficer Equipment \nS.W.A.T Equipment", "Select", "Exit");
				}
				case 3:
				{
					ShowPlayerDialog(playerid, DIALOG_LSPDVEHICLES, DIALOG_STYLE_LIST, "LSPD Vehicles", "Cruiser \nS.W.A.T Tank \nRancher", "Select", "Exit");
				}
			}
		}
		case DIALOG_LSPDMENU2: // LSPD Equipment
		{
			if(response == 0) return SendClientMessage(playerid, 0x0059FFFF, "[INFO]: You exited the LSPD Equipment Menu");
			switch(listitem)
			{
				case 0:
				{
					SetPlayerSkin(playerid, 71);
					GivePlayerWeapon(playerid, 3, 100);
					GivePlayerWeapon(playerid, 41, 500);
					GivePlayerWeapon(playerid, 24, 150);
					SendClientMessage(playerid, 0xFFFFFFFF, "LSPD: You have chosen the Cadet Equipment, Find a Officer and Patrol with him!");
				}
				case 1:
				{
					SetPlayerSkin(playerid, 280);
					GivePlayerWeapon(playerid, 3, 100);
					GivePlayerWeapon(playerid, 41, 500);
					GivePlayerWeapon(playerid, 24, 150);
					GivePlayerWeapon(playerid, 25, 300);
					GivePlayerWeapon(playerid, 29, 1000);
					SendClientMessage(playerid, 0xFFFFFFFF, "LSPD: You have chosen the Police Officer Equipment, Grab a Cruiser and Bring Crime to justice!");
				}
				case 2:
				{
					SetPlayerSkin(playerid, 285);
					GivePlayerWeapon(playerid, 31, 100);
					GivePlayerWeapon(playerid, 29, 500);
					GivePlayerWeapon(playerid, 25, 150);
					GivePlayerWeapon(playerid, 17, 300);
					SendClientMessage(playerid, 0xFFFFFFFF, "LSPD: You have chosen the SWAT Team Equipment!");
				}
			}
		}
		case DIALOG_LSPDVEHICLES: // LSPD VEHICLES
		{
			if(response == 0) return SendClientMessage(playerid, 0x0059FFFF, "[INFO]: You exited the LSPD Vehicle Menu");
			switch(listitem)
			{
				case 0:
				{
					AddStaticVehicle(596,1560.1179,-1694.4215,5.6157,359.4467,0,1); // Trust Vehicle - Cruiser
					SendClientMessage(playerid,0xFFFFFFFF, "LSPD: You have spawned a LSPD Cruiser!");
				}
				case 1:
				{
					AddStaticVehicle(599,1560.1179,-1694.4215,5.6157,359.4467,0,1); // Trust Vehicle - Cruiser
					SendClientMessage(playerid,0xFFFFFFFF, "LSPD: You have spawned a LSPD Cruiser!");
				}
				case 2:
				{
					AddStaticVehicle(601,1560.1179,-1694.4215,5.6157,359.4467,0,1); // Trust Vehicle - Cruiser
					SendClientMessage(playerid,0xFFFFFFFF, "LSPD: You have spawned a LSPD Cruiser!");
				}
			}
		}
		case DIALOG_LSPDEQUIP: // LSPD VEHICLES
		{
			if(response == 0) return SendClientMessage(playerid, COLOR_GREY, "LSPD: You have exited the LSPD Equipment Menu");
			switch(listitem)
			{
				case 0:
				{
				    SetPlayerArmour(playerid, 100);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 1:
				{
				    SetPlayerHealth(playerid, 100);
                    ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 2:
				{
				    GivePlayerWeapon(playerid, 3, 1);
                    ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 3:
				{
				    GivePlayerWeapon(playerid, 41, 250);
                    ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 4:
				{
					GivePlayerWeapon(playerid, 24, 250);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 5:
				{
					GivePlayerWeapon(playerid, 25, 100);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 6:
				{
					GivePlayerWeapon(playerid, 31, 500);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 7:
				{
					GivePlayerWeapon(playerid, 29, 500);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 8:
				{
					GivePlayerWeapon(playerid, 17, 5);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
			}
		}
 }
	return 1;
}

stock ShowLoginDialog(playerid, frame)
{
	new titlestring[64];
	new string[256];
	
	switch(frame)
	{
		case 1:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Register - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nType your password below to register a new account:", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,titlestring,string,"Register","Exit");
		}
		case 2:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Register - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nType your password below to register a new account:\n\nYou have entered an invalid password.", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,titlestring,string,"Register","Exit");
		}
		case 3:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Login - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nThis name is registered type your password below to login:", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,titlestring,string,"Login","Exit");
		}
		case 4:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Login - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nThis name is registered type your password below to login:\n\nYou have entered an incorrect password.", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,titlestring,string,"Login","Exit");
		}
	}
}

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",pData[playerid][Password]);
    INI_String("IP",pData[playerid][IP], 25);
    INI_Int("Money",pData[playerid][Money]);
    INI_Int("Kills",pData[playerid][Kills]);
    INI_Int("Deaths",pData[playerid][Deaths]);
    INI_Int("weap1",pData[playerid][Weapon1]); INI_Int("weap1ammo",pData[playerid][Weapon1ammo]);
	INI_Int("weap2",pData[playerid][Weapon2]); INI_Int("weap2ammo",pData[playerid][Weapon2ammo]);
	INI_Int("weap3",pData[playerid][Weapon3]); INI_Int("weap3ammo",pData[playerid][Weapon3ammo]);
	INI_Int("weap4",pData[playerid][Weapon4]); INI_Int("weap4ammo",pData[playerid][Weapon4ammo]);
	INI_Int("weap5",pData[playerid][Weapon5]); INI_Int("weap5ammo",pData[playerid][Weapon5ammo]);
	INI_Int("weap6",pData[playerid][Weapon6]); INI_Int("weap6ammo",pData[playerid][Weapon6ammo]);
    return 1;
}

stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}

stock udb_hash(buf[])
{
    new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
       s1 = (s1 + buf[n]) % 65521;
       s2 = (s2 + s1)     % 65521;
    }
    return (s2 << 16) + s1;
}

stock pName(playerid)
{
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
  return name;
}

stock pIP(playerid)
{
	new ip[16];
	GetPlayerIp(playerid,ip,16);
	return ip;
}
Reply
#2

Quote:
Originally Posted by Blunt
Посмотреть сообщение
Well basically the title says it all, I don't know how to add team ranks to a team pretty much

If anyone could help me and post a simple code and where to put it, I'd be hugely great-full, thank you


SCRIPT
Код:
#include <a_samp>
#include <YSI\y_ini>
#include <YSI\y_classes>
#include <streamer>
#include <zcmd>
#include <sscanf2>
Scammer.

#define COLOR_INACTIVE     	0xC8BEBEFF

#define SERVER_VERSION "1.0.5"

#define TEAM_GROVE_STREET 			0
#define TEAM_JEFFERSON_BALLAS 		1
#define TEAM_KILOTRAY_BALLAS 		2
#define TEAM_TEMPLE_FAMILIES        3
#define TEAM_LSPD                   4
#define TEAM_BLUNT                  5
#define TEAM_GUNDEALERS             6

#define DIALOG_REGISTER             999
#define DIALOG_LOGIN     			998
#define DIALOG_RULES    			997
#define DIALOG_ANTIDMZONEWEAPON  	996
#define DIALOG_DMZONE    			995
#define DIALOG_BLUNTWEAPONS   		994
#define DIALOG_LSPDMENU1   			993
#define DIALOG_LSPDMENU2   			992
#define DIALOG_LSPDVEHICLES   		991
#define DIALOG_LSPDEQUIP            990

#define GUN_9MM                     22
#define GUN_GLOCK                   24
#define GUN_SHOTGUN                 25
#define GUN_AK                      30
#define GUN_UZI                     31
#define GUN_TEC9                    32
#define GUN_KNIFE                   4


//Text Draws
new Text: ServerNameTextDraw;


//colors
#define COLOR_BLUE                  0x0080FFAA
#define COLOR_RED                   0xF52C2CAA
#define COLOR_GREEN                 0x21D150AA
#define COLOR_GOLD                  0xFFF954AA
#define COLOR_WHITE                 0xFFFFFFAA
#define COLOR_ORANGE                0xFFA200AA
#define MINIA_COLOR                 0x00A6FFAA
#define COLOR_GREY                  0xD1B0B0AA

#define PATH "/Users/%s.ini"

#define INI_Exists(%0)  fexist(%0)


enum PlayerData
{
    Password,
	IP[25],
    Money,
    AdminLevel,
    Kills,
    Deaths,
    Weapon1,
	Weapon1ammo,
	Weapon2,
	Weapon2ammo,
	Weapon3,
	Weapon3ammo,
	Weapon4,
	Weapon4ammo,
	Weapon5,
	Weapon5ammo,
	Weapon6,
	Weapon6ammo,
	Registered,
	LoggedIn
}
new pData[MAX_PLAYERS][PlayerData];

new ItemsGiven[MAX_PLAYERS];
static gTeam[MAX_PLAYERS];


main()
{
	print("\n----------------------------------");
	printf(" Streetz of the East RP %s", SERVER_VERSION);
	print("----------------------------------\n");
}



public OnGameModeInit()
{
    if(!INI_Exists("Users/"))
	{
	    print("\n\n > WARNING: Folder Missing From Scriptfiles\n");
	    print("  Create Folder \"Users\" in Scriptfiles\n\n");
		return 1;
	}

	new string[50];
	format(string,sizeof(string),"Streetz of the East RP %s", SERVER_VERSION);
    SetGameModeText(string);
    ShowNameTags(1);
	DisableInteriorEnterExits();
	SetNameTagDrawDistance(20.00);
	LimitGlobalChatRadius(50.00);
	
	//Textdraw Defines
	TextDrawCreate(1.000000,433.000000,"Streetz of the East - Roleplay");
	TextDrawAlignment(ServerNameTextDraw, 0);
	TextDrawBackgroundColor(ServerNameTextDraw, 0x000000ff);
	TextDrawFont(ServerNameTextDraw, 2);
	TextDrawLetterSize(ServerNameTextDraw, 0.499999,1.100000);
	TextDrawColor(ServerNameTextDraw, 0xffffffff);
	TextDrawSetOutline(ServerNameTextDraw, 1);
	TextDrawSetProportional(ServerNameTextDraw, 1);
	TextDrawSetShadow(ServerNameTextDraw, 1);
	
	//Labels - LSPD
    Create3DTextLabel("/eroomexit \nExits the LSPD Equipment Room", 0xF5D7DFFF, 316.5381,-169.8794,999.6010, 10.0, 6, 0);
    Create3DTextLabel("/pdup \nElevates you to the Floor One in the LSPD Department", 0xF5D7DFFF, 1524.4852,-1677.9323,6.2188, 10.0, 0, 0);
    Create3DTextLabel("/pddown \nElevates you towards the the Ground Floor", 0xF5D7DFFF, 276.0987,122.1456,1004.6172, 10, 0);
    Create3DTextLabel("/eroomenter \n LSPD Equipment Room", 0xF5D7DFFF, 1568.4553,-1689.9713,6.2188, 10.0, 0, 0);
    Create3DTextLabel("/pdenter", 0xF5D7DFFF, 1554.9720,-1675.5599,16.1953, 10.0, 0, 0);
    Create3DTextLabel("/pdexit", 0xF5D7DFFF, 246.5278,107.6377,1003.2188, 10.0, 0, 0);
	Create3DTextLabel("/equip", 0xF5D7DFFF, 312.4713,-166.1388,999.6010, 10.0, 6, 0);

    //GROVE
    Class_Add(107,2375.7463,-1645.6609,13.5308,0); // Fam 0

    //Jefferson Ballas
   	Class_Add(103,2240.6077,-1159.7698,1029.7969,91.2946); // Jefferson Ballas - Spawn Pos 1

    //KTB SPAWN
    Class_Add(104,1983.9275,-1286.4430,35.7188,185.2425); // KTB Spawn Pos 2

    //TDF
    Class_Add(105,822.9223,-1103.2015,25.7982,88.5101); //3
    Class_Add(106,822.9223,-1103.2015,25.7982,88.5101);// 4
    Class_Add(107,822.9223,-1103.2015,25.7982,88.5101);// 5

    //LSPD
    Class_Add(265,1527.0460,-1677.8129,5.8906,271.3791); // LSPD Spawn Postion //6
    Class_Add(280,1527.0460,-1677.8129,5.8906,271.3791); // LSPD Spawn Postion // 7
    Class_Add(281,1527.0460,-1677.8129,5.8906,271.3791); // LSPD Spawn Postion // 8
    
    //Blunt
    Class_Add(21,2290.1372,-1793.6415,13.5469,267.9635); // Blunt's spawn pos //9
    
    //GunDealers
    Class_Add(176,2201.3149,-2223.2322,15.1711,226.3032,0,0,0,0,0,0); // GD
    Class_Add(28,2201.3149,-2223.2322,15.1711,226.3032,0,0,0,0,0,0); // GD

    //mappings
    CreateDynamicObject(14607,2553.61000000,-1682.29000000,1035.13000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14614,2553.82000000,-1682.29000000,1035.12000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14563,2553.81000000,-1682.28000000,1035.12000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14561,2546.33000000,-1682.35000000,1033.61000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1029.08000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1030.43000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1031.75000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1032.98000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1034.31000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1035.42000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1036.76000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1027.74000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.93000000,-1697.07000000,1026.80000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1029.08000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1027.74000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1026.80000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1030.43000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1031.75000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1032.98000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1034.31000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1035.42000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.94000000,-1697.07000000,1036.76000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1030.43000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1029.08000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1027.74000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1026.80000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1031.75000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1032.98000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1034.31000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1035.42000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.97000000,-1697.07000000,1036.76000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(8483,2532.57000000,-1703.72000000,1032.06000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1029.13000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1027.78000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1026.51000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1030.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1031.69000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1032.92000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1034.04000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1035.27000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2551.94000000,-1667.42000000,1036.50000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1030.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1031.69000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1032.92000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1034.04000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1035.27000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1036.50000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1029.13000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1027.78000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2525.83000000,-1667.42000000,1026.51000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1030.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1029.13000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1027.78000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1031.69000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1032.92000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1034.04000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9339,2499.74000000,-1667.42000000,1035.27000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14537,2575.51000000,-1682.32000000,1030.75000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19129,2533.31000000,-1682.41000000,1026.61000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14463,2496.05000000,-1680.38000000,1031.51000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(9819,2507.88000000,-1681.08000000,1029.31000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2506.11000000,-1685.52000000,1029.25000000,270.00000000,90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2507.72000000,-1676.55000000,1029.09000000,270.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2506.11000000,-1685.52000000,1028.36000000,0.00000000,-90.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2507.65000000,-1676.56000000,1029.09000000,90.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2511.00000000,-1680.95000000,1029.07000000,90.00000000,0.00000000,360.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3388,2511.00000000,-1680.95000000,1029.08000000,-90.00000000,0.00000000,360.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14820,2510.94000000,-1682.43000000,1029.67000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14820,2510.94000000,-1679.45000000,1029.67000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1958,2510.89000000,-1680.99000000,1029.60000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(16092,2516.89000000,-1682.07000000,1026.57000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2583.41000000,-1691.95000000,1028.53000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2582.12000000,-1695.75000000,1028.53000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2578.87000000,-1694.25000000,1028.53000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2582.13000000,-1690.02000000,1028.53000000,0.00000000,0.00000000,338.86000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2578.88000000,-1690.74000000,1028.53000000,0.00000000,0.00000000,41.02000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1827,2581.06000000,-1692.87000000,1028.51000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2586.10000000,-1697.10000000,1031.99000000,2.00000000,0.00000000,224.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2586.08000000,-1667.39000000,1031.99000000,2.00000000,0.00000000,310.55000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2566.18000000,-1697.11000000,1031.99000000,2.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2566.18000000,-1667.50000000,1031.99000000,2.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1688.73000000,1031.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1688.73000000,1030.14000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1688.73000000,1028.95000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.90000000,-1675.36000000,1031.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1675.36000000,1030.14000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2232,2517.89000000,-1675.36000000,1028.95000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14463,2569.73000000,-1708.13000000,1031.61000000,0.00000000,0.00000000,57.52000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2568.30000000,-1691.51000000,1028.53000000,0.00000000,0.00000000,41.02000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2572.24000000,-1690.75000000,1028.53000000,0.00000000,0.00000000,310.92000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2573.31000000,-1694.98000000,1028.53000000,0.00000000,0.00000000,227.66000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2568.77000000,-1695.85000000,1028.53000000,0.00000000,0.00000000,133.54000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14463,2585.18000000,-1657.02000000,1031.61000000,0.00000000,0.00000000,228.09000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2579.74000000,-1673.99000000,1028.53000000,0.00000000,0.00000000,127.45000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2585.09000000,-1672.39000000,1028.53000000,0.00000000,0.00000000,226.13000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2580.78000000,-1668.41000000,1028.53000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1827,2570.10000000,-1670.96000000,1028.51000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2572.17000000,-1672.20000000,1028.53000000,0.00000000,0.00000000,227.66000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2568.80000000,-1673.01000000,1028.53000000,0.00000000,0.00000000,136.80000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1724,2571.48000000,-1668.46000000,1028.53000000,0.00000000,0.00000000,317.70000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1723,2567.91000000,-1669.99000000,1028.53000000,0.00000000,0.00000000,45.06000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(16092,2551.46000000,-1682.06000000,1026.57000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2535.51000000,-1696.28000000,1033.38000000,30.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2531.55000000,-1696.73000000,1033.38000000,30.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2582.47000000,-1671.21000000,1035.85000000,0.00000000,231.00000000,227.33000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18654,2580.61000000,-1671.24000000,1035.85000000,0.00000000,233.00000000,335.56000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2571.17000000,-1693.54000000,1035.31000000,0.00000000,236.00000000,179.27000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18654,2570.69000000,-1692.92000000,1035.49000000,0.00000000,230.00000000,278.94000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19151,2569.39000000,-1696.56000000,1034.08000000,0.00000000,0.00000000,339.82000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2571.82000000,-1696.90000000,1034.14000000,0.00000000,0.00000000,26.82000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19155,2579.74000000,-1668.60000000,1034.41000000,-22.00000000,4.00000000,194.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19156,2583.27000000,-1668.20000000,1034.36000000,-18.00000000,0.00000000,154.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(8483,2532.57000000,-1662.23000000,1032.06000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2780,2533.44000000,-1699.17000000,1027.71000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2780,2531.38000000,-1664.80000000,1027.71000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18102,2519.41000000,-1677.96000000,1036.31000000,-30.00000000,0.00000000,90.21000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19150,2518.02000000,-1685.97000000,1035.11000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19150,2517.83000000,-1677.92000000,1035.11000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2517.70000000,-1686.82000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18648,2517.73000000,-1682.31000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18102,2548.76000000,-1687.34000000,1036.31000000,-30.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2547.89000000,-1679.05000000,1036.33000000,0.00000000,245.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18653,2548.03000000,-1687.22000000,1036.22000000,0.00000000,245.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2533.56000000,-1669.24000000,1033.38000000,30.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19144,2529.62000000,-1669.72000000,1033.38000000,30.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.71000000,-1676.08000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.20000000,-1676.08000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.71000000,-1674.57000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.20000000,-1674.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.71000000,-1688.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2550.70000000,-1689.58000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.18000000,-1689.57000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.18000000,-1689.57000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2552.20000000,-1688.08000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2517.72000000,-1677.39000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2552.28000000,-1686.74000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18648,2552.28000000,-1681.91000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18647,2552.29000000,-1677.43000000,1033.32000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.61000000,-1689.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.62000000,-1688.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.12000000,-1688.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.13000000,-1689.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.63000000,-1676.10000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2517.62000000,-1674.58000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.12000000,-1674.59000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19126,2516.14000000,-1676.09000000,1027.10000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1557,2601.75000000,-1683.81000000,1031.00000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1557,2601.74000000,-1680.77000000,1031.00000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18856,2541.12000000,-1695.71000000,1032.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18856,2526.11000000,-1695.71000000,1032.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2543.22000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2539.04000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2539.06000000,-1693.54000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2543.24000000,-1693.56000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2528.15000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2524.09000000,-1693.78000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2528.16000000,-1693.58000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2524.10000000,-1693.60000000,1034.11000000,16.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(18856,2541.13000000,-1669.15000000,1032.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2543.22000000,-1671.18000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3498,2539.04000000,-1671.16000000,1038.09000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2543.22000000,-1671.38000000,1034.11000000,16.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19152,2539.05000000,-1671.36000000,1034.11000000,16.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(14595,2613.51000000,-1105.98000000,-23.40000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2605.82000000,-1090.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2605.82000000,-1086.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2605.82000000,-1082.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2608.82000000,-1082.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2608.82000000,-1086.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2637,2608.82000000,-1090.96000000,-26.93000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2321,2601.68000000,-1086.54000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2321,2601.68000000,-1086.54000000,-26.86000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1671,2600.63000000,-1087.05000000,-26.87000000,0.00000000,0.00000000,60.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.80000000,-1091.62000000,-26.87000000,0.00000000,0.00000000,260.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.79000000,-1090.47000000,-26.87000000,0.00000000,0.00000000,264.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.83000000,-1091.54000000,-26.87000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.82000000,-1090.39000000,-26.87000000,0.00000000,0.00000000,273.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.94000000,-1087.53000000,-26.86000000,0.00000000,0.00000000,261.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.94000000,-1086.41000000,-26.86000000,0.00000000,0.00000000,273.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.98000000,-1083.53000000,-26.87000000,0.00000000,0.00000000,265.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2609.90000000,-1082.28000000,-26.87000000,0.00000000,0.00000000,283.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.92000000,-1082.38000000,-26.87000000,0.00000000,0.00000000,277.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.96000000,-1083.50000000,-26.87000000,0.00000000,0.00000000,269.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.91000000,-1087.65000000,-26.87000000,0.00000000,0.00000000,255.97000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1663,2606.96000000,-1086.40000000,-26.86000000,0.00000000,0.00000000,279.97000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3077,2597.93000000,-1086.35000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(3026,2610.38000000,-1086.44000000,-26.83000000,0.00000000,272.00000000,94.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1742,2614.75000000,-1085.64000000,-27.33000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1744,2604.04000000,-1092.54000000,-25.89000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2145,2597.65000000,-1089.80000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2145,2597.63000000,-1089.09000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2161,2597.39000000,-1091.49000000,-27.33000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2162,2597.92000000,-1080.41000000,-27.36000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2163,2614.20000000,-1082.63000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2167,2614.20000000,-1084.57000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2167,2614.19000000,-1081.57000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2187,2615.18000000,-1088.09000000,-27.33000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2191,2599.88000000,-1080.86000000,-27.33000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2737,2606.71000000,-1092.33000000,-25.27000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2164,2597.43000000,-1083.42000000,-27.36000000,0.00000000,0.00000000,90.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1999,2615.37000000,-1088.14000000,-27.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2187,2615.23000000,-1090.15000000,-27.36000000,0.00000000,0.00000000,270.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1671,2614.56000000,-1088.81000000,-26.90000000,0.00000000,0.00000000,60.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2601.53000000,-1087.18000000,-26.36000000,0.00000000,0.00000000,280.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.08000000,-1090.32000000,-26.52000000,0.00000000,0.00000000,280.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.06000000,-1091.52000000,-26.52000000,0.00000000,0.00000000,260.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.09000000,-1091.53000000,-26.52000000,0.00000000,0.00000000,264.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.09000000,-1090.44000000,-26.52000000,0.00000000,0.00000000,274.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.08000000,-1087.48000000,-26.52000000,0.00000000,0.00000000,93.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.00000000,-1086.38000000,-26.52000000,0.00000000,0.00000000,253.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2605.99000000,-1086.50000000,-26.52000000,0.00000000,0.00000000,293.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.03000000,-1083.49000000,-26.52000000,0.00000000,0.00000000,263.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2606.00000000,-1082.36000000,-26.52000000,0.00000000,0.00000000,103.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2894,2609.01000000,-1083.52000000,-26.52000000,0.00000000,0.00000000,93.98000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2605.59000000,-1080.61000000,-26.70000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2606.72000000,-1080.58000000,-26.70000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2607.78000000,-1080.58000000,-26.70000000,0.00000000,0.00000000,359.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2615.63000000,-1090.40000000,-26.70000000,0.00000000,0.00000000,89.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2615.61000000,-1091.51000000,-26.70000000,0.00000000,0.00000000,269.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1738,2601.90000000,-1092.12000000,-26.70000000,0.00000000,0.00000000,179.99000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2186,2600.71000000,-1091.89000000,-27.36000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(6959,2612.04000000,-1089.11000000,-27.33000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(1535,2614.25000000,-1092.65000000,-27.36000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19172,2609.85000000,-1092.39000000,-25.00000000,0.00000000,0.00000000,180.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19174,2607.03000000,-1080.38000000,-25.00000000,0.00000000,0.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19166,2614.22000000,-1083.04000000,-25.45000000,90.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1082.30000000,-24.64000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1083.80000000,-24.64000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1083.80000000,-26.24000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(19179,2614.21000000,-1082.30000000,-26.24000000,0.00000000,-90.00000000,0.00000000, 0, 0, -1, 200.0); //
    CreateDynamicObject(2930, 2232.7619628906, -1156.3321533203, 31.433731079102, 0, 0, 90);
	CreateDynamicObject(10831, 1883.9830322266, -1863.3870849609, 17.500335693359, 0, 0, 180);
	CreateDynamicObject(3037, 1886.7242431641, -1849.5784912109, 14.771245002747, 0, 0, 90);
	CreateDynamicObject(3037, 1883.9946289063, -1849.7019042969, 18.721185684204, 0, 0, 90);
	CreateDynamicObject(2502, 270.91174316406, 116.48319244385, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(2502, 270.91094970703, 117.75637054443, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(2502, 270.92053222656, 119.03476715088, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(2502, 270.93383789063, 120.32833862305, 1003.6171875, 0, 0, 90);
	CreateDynamicObject(355, 270.99588012695, 116.93751525879, 1005.1434326172, 0, 6.5, 264);
	CreateDynamicObject(356, 270.93026733398, 118.19915771484, 1005.068359375, 0, 0, 280);
	CreateDynamicObject(353, 270.86660766602, 119.16947937012, 1005.068359375, 0, 0, 274);
	CreateDynamicObject(348, 270.86434936523, 120.1237487793, 1005.1434326172, 0, 0, 268);
	CreateDynamicObject(1279, 270.90872192383, 117.36851501465, 1004.6998291016, 0, 0, 88);
	CreateDynamicObject(1279, 271.06796264648, 119.45548248291, 1004.6998291016, 0, 0, 87.994995117188);
	CreateDynamicObject(2949, 275.69552612305, 121.37168884277, 1003.633605957, 0, 0, 180);
	CreateDynamicObject(366, 275.94955444336, 118.65814971924, 1004.8333129883, 0, 36, 88);
	CreateDynamicObject(3036, 239.67816162109, 120.02388763428, 1006.3355712891, 0, 0, 0);
	CreateDynamicObject(3036, 244.36128234863, 120.00930023193, 1006.3355712891, 0, 0, 0);
	CreateDynamicObject(3036, 248.3034362793, 119.98500823975, 1006.3355712891, 0, 0, 0);
	CreateDynamicObject(2190, 250.26599121094, 122.57698059082, 1003.0684204102, 0, 2, 186);
	CreateDynamicObject(367, 252.09519958496, 118.49488067627, 1002.46875, 0, 0, 0);
	CreateDynamicObject(2190, 245.04873657227, 122.63041687012, 1003.0684204102, 0, 1.99951171875, 185.99853515625);
	CreateDynamicObject(1999, 247.25245666504, 122.96807098389, 1002.21875, 0, 0, 180);
	CreateDynamicObject(2609, 232.55227661133, 127.08039093018, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2609, 233.0518951416, 127.0572052002, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2609, 233.55010986328, 127.01513671875, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2609, 234.04815673828, 126.97314453125, 1002.9504394531, 0, 0, 0);
	CreateDynamicObject(2606, 233.29969787598, 127.08039093018, 1003.9165649414, 0, 0, 0);

    //Vehicles
    AddStaticVehicle(481,2371.9229,-1634.1638,12.9802,180.3790,86,0); // Bike 1
    AddStaticVehicle(559,2297.7393,-1754.3354,13.1182,90.4362,120,65); // My house vehicle
	AddStaticVehicle(522,2303.9258,-1754.5068,13.1204,91.3057,110,112); // Blunt's NPJ outside his house
	AddStaticVehicle(481,2295.6729,-1754.7506,13.0636,94.1804,86,0); // My house bmx
    AddStaticVehicle(481,2374.2383,-1633.7467,12.9833,179.0111,86,0); // Bike 2
    AddStaticVehicle(481,2377.2588,-1633.4475,12.9820,180.1245,86,0); // Bike 3
    AddStaticVehicle(481,2379.3660,-1633.3582,12.9818,178.7856,86,0); // Bike 4
    AddStaticVehicle(566,2227.7656,-1162.9019,25.5456,270.3075,112,93); // Jefferson Ballas - Tahoma spawn1
    AddStaticVehicle(566,2228.6995,-1166.3872,25.5397,269.6280,112,93); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2228.4255,-1170.0044,25.5233,269.6380,112,93); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2228.2002,-1173.5763,25.5128,269.3760,112,93); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2217.4609,-1166.2075,25.5070,91.0149,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2217.1426,-1157.4551,25.5065,90.6832,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2206.0886,-1157.5243,25.5161,90.3675,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2205.7903,-1161.0359,25.5127,89.7004,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(566,2205.7136,-1173.2231,25.5053,271.5527,0,0); // Jefferson Ballas - Tahoma spawn
    AddStaticVehicle(481,2210.7625,-1144.1477,25.3193,265.2361,186,79); // Jefferson Ballas - Bikes
    AddStaticVehicle(481,2210.3445,-1142.7505,25.3240,263.4869,186,79); // Jefferson Ballas - Bikes
    AddStaticVehicle(481,2210.1401,-1140.9392,25.3272,263.0420,186,79); // Jefferson Ballas - Bikes
    AddStaticVehicle(596,1529.0367,-1684.0232,5.6101,90.2795,0,1); // LSPD, Cruiser 1
    AddStaticVehicle(596,1529.3722,-1687.9187,5.6110,89.3842,0,1); // LSPD, Cruiser 2
    AddStaticVehicle(596,1544.9542,-1684.5508,5.6123,269.2281,0,1); // LSPD, Cruiser 3
    AddStaticVehicle(596,1545.0380,-1680.2743,5.6138,269.5319,0,1); // LSPD, Cruiser 4
    AddStaticVehicle(596,1545.0320,-1676.1202,5.6086,271.0058,0,1); // LSPD, Cruiser 5
    AddStaticVehicle(490,1544.5098,-1662.9607,6.0192,269.3992,0,0); // LSPD, Rancher 1
    AddStaticVehicle(490,1544.8907,-1659.0326,6.0192,270.2172,0,0); // LSPD, Rancher 2
    AddStaticVehicle(490,1544.6188,-1654.8923,6.0187,270.0463,0,0); // LSPD, Rancher 3
    AddStaticVehicle(601,1530.5724,-1646.1047,5.6494,0.6943,102,42); // LSPD, SWAT VAN 1
    AddStaticVehicle(601,1538.5717,-1645.4164,5.6494,359.4243,102,42); // LSPD, SWAT VAN 2
    AddStaticVehicle(523,1558.8451,-1712.6416,5.4572,359.2299,111,0); // LSPD Bike - 1
    AddStaticVehicle(523,1564.8617,-1711.0588,5.4576,2.4206,111,0); // LSPD Bike - 2
    AddStaticVehicle(523,1570.2678,-1712.3718,5.4640,358.7958,111,0); // LSPD Bike - 3
    AddStaticVehicle(523,1574.3527,-1713.2228,5.4609,1.4374,111,0); // LSPD Bike - 4
	
    //Labels
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerColor(playerid, COLOR_INACTIVE);
	switch(classid)
	{
		case 0:
		{
		    gTeam[playerid] = TEAM_GROVE_STREET;
		    GameTextForPlayer(playerid, "~g~Grove Street Families", 5000, 5);
			SetPlayerPos(playerid, 2375.7463,-1645.9944,13.5322);
			SetPlayerCameraPos(playerid, 2375.9658,-1647.8722,13.5405);
			SetPlayerCameraLookAt(playerid, 2375.7463,-1645.9944,13.5322);
			SetPlayerFacingAngle(playerid, 180.000);
			ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		//----------------------------------------------------------------------
		case 1:
		{
		    gTeam[playerid] = TEAM_JEFFERSON_BALLAS;
		    GameTextForPlayer(playerid, "~p~Jefferson Ballas", 5000, 5);
			SetPlayerPos(playerid, 2240.6077,-1159.7698,1029.7969);
			SetPlayerCameraPos(playerid, 2235.6484,-1159.6964,1029.7969);
			SetPlayerCameraLookAt(playerid, 2240.6077,-1159.7698,1029.7969);
			SetPlayerFacingAngle(playerid, 91.2946);
			SetPlayerInterior(playerid, 15);
			SetPlayerVirtualWorld(playerid, 74);
			ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
		}
	    //----------------------------------------------------------------------
		case 2:
		{
		    gTeam[playerid] = TEAM_KILOTRAY_BALLAS;
		    GameTextForPlayer(playerid, "~p~Kilo Trey Ballas", 5000, 5);
			SetPlayerPos(playerid, 1983.9275,-1286.4430,35.7188);
			SetPlayerCameraPos(playerid, 1984.2852,-1288.3123,35.7188);
			SetPlayerCameraLookAt(playerid, 1983.9275,-1286.4430,35.7188);
			SetPlayerFacingAngle(playerid, 91.2946);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		//----------------------------------------------------------------------
		case 3:
		{
		    gTeam[playerid] = TEAM_TEMPLE_FAMILIES;
		    GameTextForPlayer(playerid, "~g~Temple Drive Families", 5000, 5);
			SetPlayerPos(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerCameraPos(playerid, 831.3555,-1103.0902,24.2969);
			SetPlayerCameraLookAt(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerFacingAngle(playerid, 88.5101);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 4:
		{
		    gTeam[playerid] = TEAM_TEMPLE_FAMILIES;
		    GameTextForPlayer(playerid, "~g~Temple Drive Families", 5000, 5);
			SetPlayerPos(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerCameraPos(playerid, 831.3555,-1103.0902,24.2969);
			SetPlayerCameraLookAt(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerFacingAngle(playerid, 88.5101);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 5:
		{
		    gTeam[playerid] = TEAM_TEMPLE_FAMILIES;
		    GameTextForPlayer(playerid, "~g~Temple Drive Families", 5000, 5);
			SetPlayerPos(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerCameraPos(playerid, 831.3555,-1103.0902,24.2969);
			SetPlayerCameraLookAt(playerid, 822.9223,-1103.2015,25.7982);
			SetPlayerFacingAngle(playerid, 88.5101);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		//----------------------------------------------------------------------
		case 6:
		{
		    gTeam[playerid] = TEAM_LSPD;
		    GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
			SetPlayerPos(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerCameraPos(playerid, 1529.1135,-1677.7134,5.8906);
			SetPlayerCameraLookAt(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerFacingAngle(playerid, 271.3791);
			ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);

		}
		case 7:
		{
		    gTeam[playerid] = TEAM_LSPD;
		    GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
			SetPlayerPos(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerCameraPos(playerid, 1529.1135,-1677.7134,5.8906);
			SetPlayerCameraLookAt(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerFacingAngle(playerid, 271.3791);
			ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);

		}
		case 8:
		{
		    gTeam[playerid] = TEAM_LSPD;
		    GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
			SetPlayerPos(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerCameraPos(playerid, 1529.1135,-1677.7134,5.8906);
			SetPlayerCameraLookAt(playerid, 1527.0460,-1677.8129,5.8906);
			SetPlayerFacingAngle(playerid, 271.3791);
			ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);

		}
		//----------------------------------------------------------------------
		case 9:
		{
			gTeam[playerid] = TEAM_BLUNT;
		    GameTextForPlayer(playerid, "~>~~g~Blunt ]ONLY] ~<~", 10000, 5);
			SetPlayerPos(playerid, 2290.1372,-1793.6415,13.5469);
			SetPlayerCameraPos(playerid, 2292.0276,-1793.4440,13.5469);
			SetPlayerCameraLookAt(playerid, 2290.1372,-1793.6415,13.5469);
			SetPlayerFacingAngle(playerid, 267.9635);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
			ApplyAnimation(playerid,"SHOP","smoke_RYD",4.0,0,1,1,1,1);
		}
		
		case 10:
		{
			gTeam[playerid] = TEAM_GUNDEALERS;
		    GameTextForPlayer(playerid, "Gun Dealers", 10000, 5);
			SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerCameraPos(playerid, 2203.4250,-2225.4280,13.5469);
			SetPlayerCameraLookAt(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerFacingAngle(playerid, 226.3032);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 11:
		{
			gTeam[playerid] = TEAM_GUNDEALERS;
		    GameTextForPlayer(playerid, "Gun Dealers", 10000, 5);
			SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerCameraPos(playerid, 2203.2896,-2225.2507,13.5469);
			SetPlayerCameraLookAt(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerFacingAngle(playerid, 226.3032);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
		case 12:
		{
			gTeam[playerid] = TEAM_GUNDEALERS;
		    GameTextForPlayer(playerid, "Gun Dealers", 10000, 5);
			SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerCameraPos(playerid, 2203.2896,-2225.2507,13.5469);
			SetPlayerCameraLookAt(playerid, 2135.7639,-2276.0874,20.6719);
			SetPlayerFacingAngle(playerid, 226.3032);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerInterior(playerid, 0);
		}
    }
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    if(gTeam[playerid] == TEAM_BLUNT)
    {
    	if(strcmp(pName(playerid), "Blunt", true) == 0)
		{
		    return 1;
		}
		else
		{
			return 0;
		}
	}

    if(!pData[playerid][LoggedIn])
    {
        if(!pData[playerid][Registered])
        {
            return 0;
        }
        if(pData[playerid][Registered] == 1 && pData[playerid][LoggedIn] == 0)
        {
            return 0;
        }
    }
	return 1;
}

public OnPlayerConnect(playerid)
{
	pData[playerid][Password] = 0;
    pData[playerid][IP] = 0;
    pData[playerid][Money] = 0;
    pData[playerid][AdminLevel] = 0;
    pData[playerid][Kills] = 0;
    pData[playerid][Deaths] = 0;
    pData[playerid][Registered] = 0;
    pData[playerid][LoggedIn] = 0;
	pData[playerid][Weapon1] = 0; pData[playerid][Weapon1ammo] = 0;
	pData[playerid][Weapon2] = 0; pData[playerid][Weapon2ammo] = 0;
	pData[playerid][Weapon3] = 0; pData[playerid][Weapon3ammo] = 0;
	pData[playerid][Weapon4] = 0; pData[playerid][Weapon4ammo] = 0;
	pData[playerid][Weapon5] = 0; pData[playerid][Weapon5ammo] = 0;
	pData[playerid][Weapon6] = 0; pData[playerid][Weapon6ammo] = 0;
	
	ItemsGiven[playerid] = 0;
	
	Class_DenySelection(playerid);
	if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowLoginDialog(playerid, 3);
        pData[playerid][Registered] = 1;
    }
    else
    {
        ShowLoginDialog(playerid, 1);
    }
	new string[128];
	format(string,sizeof(string),"Welcome to East Side Guerilla - Team Deathmatch %s", SERVER_VERSION);
    SendClientMessage(playerid, 0x979C43FF, string);
	SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Script Last Updated, 15th September 2011, 12:15am");
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    if(pData[playerid][LoggedIn] == 1)
    {
		new INI:File = INI_Open(UserPath(playerid));
    	INI_SetTag(File,"data");
    	INI_WriteInt(File,"AdminLevel",pData[playerid][AdminLevel]);
    	INI_WriteInt(File,"Money",GetPlayerMoney(playerid));
    	INI_WriteInt(File,"Kills",GetPlayerScore(playerid));
    	INI_WriteInt(File,"Deaths",pData[playerid][Deaths]);
    	new weap1, ammo1, weap2, ammo2, weap3, ammo3, weap4, ammo4, weap5, ammo5, weap6, ammo6;
		GetPlayerWeaponData(playerid,2,weap1,ammo1);// hand gun
		INI_WriteInt(File,"weap1",weap1);
		INI_WriteInt(File,"weap1ammo",ammo1);
		GetPlayerWeaponData(playerid,3,weap2,ammo2);//shotgun
		INI_WriteInt(File,"weap2",weap2);
		INI_WriteInt(File,"weap2ammo",ammo2);
		GetPlayerWeaponData(playerid,4,weap3,ammo3);// SMG
		INI_WriteInt(File,"weap3",weap3);
		INI_WriteInt(File,"weap3ammo",ammo3);
		GetPlayerWeaponData(playerid,5,weap4,ammo4);// AK47 / M4
		INI_WriteInt(File,"weap4",weap4);
		INI_WriteInt(File,"weap4ammo",ammo4);
		GetPlayerWeaponData(playerid,6,weap5,ammo5);// rifle
		INI_WriteInt(File,"weap5",weap5);
		INI_WriteInt(File,"weap5ammo",ammo5);
		GetPlayerWeaponData(playerid,7,weap6,ammo6);// rocket launcher
		INI_WriteInt(File,"weap6",weap3);
		INI_WriteInt(File,"weap6ammo",ammo3);
    	INI_Close(File);
	}
	return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerSkin(playerid, GetPlayerSkin(playerid));
    SetPlayerToTeamColor(playerid);

	if(ItemsGiven[playerid] == 0)
	{
		GivePlayerWeapon(playerid, pData[playerid][Weapon1], pData[playerid][Weapon1ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon2], pData[playerid][Weapon2ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon3], pData[playerid][Weapon3ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon4], pData[playerid][Weapon4ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon5], pData[playerid][Weapon5ammo]);
		GivePlayerWeapon(playerid, pData[playerid][Weapon6], pData[playerid][Weapon6ammo]);
		ItemsGiven[playerid] = 1;
	}
	//TEAM Spawns
	if(gTeam[playerid] == TEAM_KILOTRAY_BALLAS)
	{
		SetPlayerPos(playerid, 1982.6847,-1246.3368,24.1779);
	}
	
	if(gTeam[playerid] == TEAM_GUNDEALERS)
	{
	    SetPlayerPos(playerid, 2135.7639,-2276.0874,20.6719);
	}


	return 1;
}


SetPlayerToTeamColor(playerid)
{
    switch(gTeam[playerid])
    {
        case TEAM_GROVE_STREET:		    	 SetPlayerColor(playerid, 0x2D964DFF);
        case TEAM_JEFFERSON_BALLAS:   		 SetPlayerColor(playerid, 0xB222D6FF);
       	case TEAM_KILOTRAY_BALLAS:  		 SetPlayerColor(playerid, 0xF21D21FF);
       	case TEAM_LSPD:   					 SetPlayerColor(playerid, 0xF5D7DFFF);
       	case TEAM_BLUNT:   					 SetPlayerColor(playerid, 0xF5D7DFFF);
       	case TEAM_GUNDEALERS:                SetPlayerColor(playerid, COLOR_ORANGE);
	}
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID)
    {
        SendDeathMessage(INVALID_PLAYER_ID, playerid, reason);
    }
    else
    {
    	SendDeathMessage(killerid, playerid, reason);
    	SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
    	pData[playerid][Deaths]++;
    }
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

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

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


COMMAND:rules(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Server Rules", "Do not Deathmatch in Anti-DM Zones, You can only use Melee's \nDo not C-Bug, Or use any other bug to enhance your performance \nDo NOT Spawn Kill \nMore Coming Soon!", "Agree", "Disagree");
	return 1;
}


COMMAND:help(playerid, params[])
{
	SendClientMessage(playerid, 0x9CDADBFF, "[GENERAL]: /me, /rules, /do ");
 	SendClientMessage(playerid, 0x4E9654FF, "[Administration]: /admins - shows a list of admins online");
  	SendClientMessage(playerid, 0x9CDADBFF, "[Animation]: /animations");
   	return 1;
}
    
COMMAND:kill(playerid, params[])
{
	SetPlayerHealth(playerid, 0.0);
	return 1;
}


COMMAND:me(playerid, params[])
{
	if(params[3]) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /me [action]");
 	new str[128];
  	GetPlayerName(playerid, str, sizeof(str));
   	format(str, sizeof(str), "* %s %s", str, params[4]);
	new Float:pPos[3];
	GetPlayerPos(playerid,pPos[0],pPos[1], pPos[2]);
	IsPlayerNextToPlayer(5,pPos[0],pPos[1], pPos[2],str,0x619CEDFF);
 	return 1;
}

COMMAND:do(playerid, params[])
{
	if(params[3])return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /do [action]");
 	new str[128];
  	GetPlayerName(playerid, str, sizeof(str));
   	format(str, sizeof(str), "* %s (( %s ))", str, params[4]);
   	new Float:pPos[3];
	GetPlayerPos(playerid,pPos[0],pPos[1], pPos[2]);
	IsPlayerNextToPlayer(5,pPos[0],pPos[1], pPos[2],str,0x619CEDFF);
 	return 1;
}
    
COMMAND:l(playerid, params[])
{
	if(params[3])return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /l [Message]");
 	new str[128];
  	GetPlayerName(playerid, str, sizeof(str));
   	format(str, sizeof(str),"%s: %s",str , params[4]);
   	new Float:pPos[3];
	GetPlayerPos(playerid,pPos[0],pPos[1], pPos[2]);
	IsPlayerNextToPlayer(5,pPos[0],pPos[1], pPos[2],str,0x619CEDFF);
 	return 1;
}


COMMAND:lockallcars(playerid, params[])
{
	if(IsPlayerAdmin(playerid))
	{
		Lockmycars(playerid);
		GameTextForPlayer(playerid, "~r~All the cars have been locked by an Admin!", 5000, 2);
		return 1;
	}
	return 1;
}
	
COMMAND:unlockallcars(playerid, params[])
{
	if(IsPlayerAdmin(playerid))
	{
		Unlockmycars(playerid);
		GameTextForPlayer(playerid, "~b~All the cars have been unlocked by an Admin!", 5000, 2);
		return 1;
	}
	return 1;
}

COMMAND:eroomenter(playerid, params[])
{
	if(gTeam[playerid] == TEAM_LSPD)
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 1568.7085,-1689.9731,6.2188))
	{
     	SetPlayerPos(playerid, 316.4204,-169.8626,999.6010);
     	SetPlayerInterior(playerid, 6);
     	SetPlayerVirtualWorld(playerid, 0);
	}
	else SendClientMessage(playerid, COLOR_RED, "You do not have access to this command!");
	return 1;
}

COMMAND:eroomexit(playerid, params[])
{
	if(gTeam[playerid] == TEAM_LSPD)
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 316.4204,-169.8626,999.6010))
	{
     	SetPlayerPos(playerid, 1568.7085,-1689.9731,6.2188);
      	SetPlayerInterior(playerid, 0);
       	SetPlayerVirtualWorld(playerid, 0);
	}
	else SendClientMessage(playerid, COLOR_RED, "You do not have access to this command!");
	return 1;
}
	
COMMAND:jbenter(playerid, params[])
{

	if(IsPlayerInRangeOfPoint(playerid, 2.0, 2232.7620,-1159.7970,25.8906))
	{
		SetPlayerPos(playerid, 2216.3401,-1150.5100,1025.7969);
		SetPlayerInterior(playerid, 15);
		SetPlayerVirtualWorld(playerid, 74);
	}
	return 1;
}
	
COMMAND:jbexit(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 2216.3401,-1150.5100,1025.7969))
	{
		SetPlayerPos(playerid, 2232.7620,-1159.7970,25.8906);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:pdexit(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.5278,107.6377,1003.2188))
	{
		SetPlayerPos(playerid, 1554.9720,-1675.5599,16.1953);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:equip(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 312.4713,-166.1388,999.6010))
	{
		ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");//Something here
	}
	return 1;
}

COMMAND:pdenter(playerid, params[])
{

	if(IsPlayerInRangeOfPoint(playerid, 2.0, 1554.9720,-1675.5599,16.1953))
	{
		SetPlayerPos(playerid, 246.5278,107.6377,1003.2188);
		SetPlayerInterior(playerid, 10);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:pddown(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 276.3915,122.2752,1004.6172))
	{
		SetPlayerPos(playerid, 1524.4832,-1677.8899,6.2188);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

COMMAND:pdup(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 1524.4832,-1677.8899,6.2188))
	{
		SetPlayerPos(playerid, 276.3915,122.2752,1004.6172);
		SetPlayerInterior(playerid, 10);
		SetPlayerVirtualWorld(playerid, 0);
	}
	return 1;
}

	
COMMAND:bluntweps(playerid, params[])
{
	if(strcmp(pName(playerid), "[GD]Blunt", true) == 0)
	{
		ShowPlayerDialog(playerid, DIALOG_BLUNTWEAPONS, DIALOG_STYLE_LIST,"Blunt's Weapon System", "Glock \nAK-47 \nM4 Carbine \nSniper Rifle \nMP5 \nShotgun", "Select", "Exit");// do the command actions
	}
	else
	{
		return SendClientMessage( playerid, -1, "You are not Blunt!");
	}
	return true;
}
    
	


public OnVehicleStreamIn(vehicleid, forplayerid)
{
    SetVehicleParamsForPlayer(1, forplayerid, 0, 0);
	SetVehicleParamsForPlayer(2, forplayerid, 0, 0);
	SetVehicleParamsForPlayer(3, forplayerid, 0, 0);
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    SetVehicleParamsForPlayer(1, forplayerid, 0, 1);
	SetVehicleParamsForPlayer(2, forplayerid, 0, 1);
	SetVehicleParamsForPlayer(3, forplayerid, 0, 1);
	return 1;
}

stock IsPlayerNextToPlayer(Float:range, Float:rx, Float:ry, Float:rz, const Message[],color)
{
	for(new i; i < MAX_PLAYERS; i++)
	{
	    if(IsPlayerConnected(i))
	    {
			if(IsPlayerInRangeOfPoint(i,range, rx, ry, rz ))
			{
			    SendClientMessage(i, color, Message);
			    return 1;
			}
	    }
	}
	return 0;
}

stock Lockmycars(playerid)
{
	SetVehicleParamsForPlayer(1, playerid, 0, 1);
	SetVehicleParamsForPlayer(2, playerid, 0, 1);
	SetVehicleParamsForPlayer(3, playerid, 0, 1);
}

stock Unlockmycars(playerid)
{
	SetVehicleParamsForPlayer(1, playerid, 0, 0);
	SetVehicleParamsForPlayer(2, playerid, 0, 0);
	SetVehicleParamsForPlayer(3, playerid, 0, 0);
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
		case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
     	 	    {
                if(strlen(inputtext))
				{
					new INI:File = INI_Open(UserPath(playerid));
					INI_SetTag(File,"data");
					INI_WriteInt(File,"Password",udb_hash(inputtext));
					INI_WriteString(File,"IP",pIP(playerid));
					INI_WriteInt(File,"AdminLevel",0);
					INI_WriteInt(File,"Money",0);
					INI_WriteInt(File,"Kills",0);
					INI_WriteInt(File,"Deaths",0);
					INI_WriteInt(File,"weap1",0); INI_WriteInt(File,"weap1ammo",0);
					INI_WriteInt(File,"weap2",0); INI_WriteInt(File,"weap2ammo",0);
					INI_WriteInt(File,"weap3",0); INI_WriteInt(File,"weap3ammo",0);
					INI_WriteInt(File,"weap4",0); INI_WriteInt(File,"weap4ammo",0);
					INI_WriteInt(File,"weap5",0); INI_WriteInt(File,"weap5ammo",0);
					INI_WriteInt(File,"weap6",0); INI_WriteInt(File,"weap6ammo",0);
					INI_Close(File);
					SendClientMessage(playerid, -1, "You have been registered on this server!");
					pData[playerid][Registered] = 1;
        			pData[playerid][LoggedIn] = 1;
        			Class_ReturnToSelection(playerid);
				}
				else
				{
					ShowLoginDialog(playerid, 2);
				}
            }
        }
        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
           	if( response )
            {
                if(udb_hash(inputtext) == pData[playerid][Password])
                {
                    new INI:File = INI_Open(UserPath(playerid));
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, pData[playerid][Money]);
					SetPlayerScore(playerid, pData[playerid][Kills]);
   	                SendClientMessage(playerid, -1, "You have been logged in!");
                    INI_WriteString(File,"IP",pIP(playerid));
        			pData[playerid][LoggedIn] = 1;
        			Class_ReturnToSelection(playerid);
                }
                else
                {
                    ShowLoginDialog(playerid, 4);
                }
            }
        }
		case DIALOG_RULES:
		{
			if(response)
			{
				SendClientMessage(playerid, 0xFFFF00FF, "Thank you for agreeing with the rules.");
			}
			else
			{
				SendClientMessage(playerid, 0xFFFF00FF, "disagreeing with the rules results in a kick.");
				Kick(playerid);
			}
		}
		
		case DIALOG_BLUNTWEAPONS: // Weapon System Dialog - BLUNT WEAPONS
		{
			if(response == 0) return SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You exited the Weapon Menu!");
			switch(listitem)
			{
				case 0:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a Glock Bat!");
					GivePlayerWeapon(playerid, 24, 500);
				}
				case 1:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a AK-47");
					GivePlayerWeapon(playerid, 30, 500);
				}
				case 2:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a M4 Carbine");
					GivePlayerWeapon(playerid, 31, 500);
				}
				case 3:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a Sniper Rifle");
					GivePlayerWeapon(playerid, 34, 500);
				}
				case 4:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a MP5");
					GivePlayerWeapon(playerid, 29, 500);
				}
				case 5:
				{
					SendClientMessage(playerid, 0x1BE067FF, "[INFO]: You have been given a Shotgun");
					GivePlayerWeapon(playerid, 25, 500);
				}
			}
		}
		case DIALOG_LSPDMENU1: // LSPD System
		{
			if(response == 0) return SendClientMessage(playerid, 0x0059FFFF, "[INFO]: You exited the LSPD Menu");
			switch(listitem)
			{
				case 0:
				{
					SendClientMessageToAll(0x0059FFFF, "Government: Dear Citizens of Los Santos, A LSPD Officer is now Currently ON Duty");
					SetPlayerColor(playerid, 0x0059FFFF);
				}
				case 1:
				{
					SendClientMessage(playerid, 0x0059FFFF, "You have been set to OFF Duty, In the LSPD Service");
					SetPlayerColor(playerid, 0xFFFFFFFF);
				}
				case 2:
				{
					ShowPlayerDialog(playerid, DIALOG_LSPDMENU2, DIALOG_STYLE_LIST, "LSPD Equipment", "Cadet Equipment \nOfficer Equipment \nS.W.A.T Equipment", "Select", "Exit");
				}
				case 3:
				{
					ShowPlayerDialog(playerid, DIALOG_LSPDVEHICLES, DIALOG_STYLE_LIST, "LSPD Vehicles", "Cruiser \nS.W.A.T Tank \nRancher", "Select", "Exit");
				}
			}
		}
		case DIALOG_LSPDMENU2: // LSPD Equipment
		{
			if(response == 0) return SendClientMessage(playerid, 0x0059FFFF, "[INFO]: You exited the LSPD Equipment Menu");
			switch(listitem)
			{
				case 0:
				{
					SetPlayerSkin(playerid, 71);
					GivePlayerWeapon(playerid, 3, 100);
					GivePlayerWeapon(playerid, 41, 500);
					GivePlayerWeapon(playerid, 24, 150);
					SendClientMessage(playerid, 0xFFFFFFFF, "LSPD: You have chosen the Cadet Equipment, Find a Officer and Patrol with him!");
				}
				case 1:
				{
					SetPlayerSkin(playerid, 280);
					GivePlayerWeapon(playerid, 3, 100);
					GivePlayerWeapon(playerid, 41, 500);
					GivePlayerWeapon(playerid, 24, 150);
					GivePlayerWeapon(playerid, 25, 300);
					GivePlayerWeapon(playerid, 29, 1000);
					SendClientMessage(playerid, 0xFFFFFFFF, "LSPD: You have chosen the Police Officer Equipment, Grab a Cruiser and Bring Crime to justice!");
				}
				case 2:
				{
					SetPlayerSkin(playerid, 285);
					GivePlayerWeapon(playerid, 31, 100);
					GivePlayerWeapon(playerid, 29, 500);
					GivePlayerWeapon(playerid, 25, 150);
					GivePlayerWeapon(playerid, 17, 300);
					SendClientMessage(playerid, 0xFFFFFFFF, "LSPD: You have chosen the SWAT Team Equipment!");
				}
			}
		}
		case DIALOG_LSPDVEHICLES: // LSPD VEHICLES
		{
			if(response == 0) return SendClientMessage(playerid, 0x0059FFFF, "[INFO]: You exited the LSPD Vehicle Menu");
			switch(listitem)
			{
				case 0:
				{
					AddStaticVehicle(596,1560.1179,-1694.4215,5.6157,359.4467,0,1); // Trust Vehicle - Cruiser
					SendClientMessage(playerid,0xFFFFFFFF, "LSPD: You have spawned a LSPD Cruiser!");
				}
				case 1:
				{
					AddStaticVehicle(599,1560.1179,-1694.4215,5.6157,359.4467,0,1); // Trust Vehicle - Cruiser
					SendClientMessage(playerid,0xFFFFFFFF, "LSPD: You have spawned a LSPD Cruiser!");
				}
				case 2:
				{
					AddStaticVehicle(601,1560.1179,-1694.4215,5.6157,359.4467,0,1); // Trust Vehicle - Cruiser
					SendClientMessage(playerid,0xFFFFFFFF, "LSPD: You have spawned a LSPD Cruiser!");
				}
			}
		}
		case DIALOG_LSPDEQUIP: // LSPD VEHICLES
		{
			if(response == 0) return SendClientMessage(playerid, COLOR_GREY, "LSPD: You have exited the LSPD Equipment Menu");
			switch(listitem)
			{
				case 0:
				{
				    SetPlayerArmour(playerid, 100);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 1:
				{
				    SetPlayerHealth(playerid, 100);
                    ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 2:
				{
				    GivePlayerWeapon(playerid, 3, 1);
                    ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 3:
				{
				    GivePlayerWeapon(playerid, 41, 250);
                    ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 4:
				{
					GivePlayerWeapon(playerid, 24, 250);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 5:
				{
					GivePlayerWeapon(playerid, 25, 100);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 6:
				{
					GivePlayerWeapon(playerid, 31, 500);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 7:
				{
					GivePlayerWeapon(playerid, 29, 500);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
				case 8:
				{
					GivePlayerWeapon(playerid, 17, 5);
					ShowPlayerDialog(playerid, DIALOG_LSPDEQUIP, DIALOG_STYLE_LIST, "Los Santos Police Department - Equipment", "Kevlar \nDonuts \nNightStick \nPepper-Spray \nDesert Eagle \nShotgun \nM4 \nMP5 \nTear Gas", "Select", "Exit");
				}
			}
		}
 }
	return 1;
}

stock ShowLoginDialog(playerid, frame)
{
	new titlestring[64];
	new string[256];
	
	switch(frame)
	{
		case 1:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Register - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nType your password below to register a new account:", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,titlestring,string,"Register","Exit");
		}
		case 2:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Register - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nType your password below to register a new account:\n\nYou have entered an invalid password.", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,titlestring,string,"Register","Exit");
		}
		case 3:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Login - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nThis name is registered type your password below to login:", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,titlestring,string,"Login","Exit");
		}
		case 4:
		{
			format(titlestring, sizeof(titlestring), "{004df8}Login - %s", pName(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to East Side Guerillas, %s.\n\nThis name is registered type your password below to login:\n\nYou have entered an incorrect password.", pName(playerid));
			ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,titlestring,string,"Login","Exit");
		}
	}
}

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",pData[playerid][Password]);
    INI_String("IP",pData[playerid][IP], 25);
    INI_Int("Money",pData[playerid][Money]);
    INI_Int("Kills",pData[playerid][Kills]);
    INI_Int("Deaths",pData[playerid][Deaths]);
    INI_Int("weap1",pData[playerid][Weapon1]); INI_Int("weap1ammo",pData[playerid][Weapon1ammo]);
	INI_Int("weap2",pData[playerid][Weapon2]); INI_Int("weap2ammo",pData[playerid][Weapon2ammo]);
	INI_Int("weap3",pData[playerid][Weapon3]); INI_Int("weap3ammo",pData[playerid][Weapon3ammo]);
	INI_Int("weap4",pData[playerid][Weapon4]); INI_Int("weap4ammo",pData[playerid][Weapon4ammo]);
	INI_Int("weap5",pData[playerid][Weapon5]); INI_Int("weap5ammo",pData[playerid][Weapon5ammo]);
	INI_Int("weap6",pData[playerid][Weapon6]); INI_Int("weap6ammo",pData[playerid][Weapon6ammo]);
    return 1;
}

stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}

stock udb_hash(buf[])
{
    new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
       s1 = (s1 + buf[n]) % 65521;
       s2 = (s2 + s1)     % 65521;
    }
    return (s2 << 16) + s1;
}

stock pName(playerid)
{
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
  return name;
}

stock pIP(playerid)
{
	new ip[16];
	GetPlayerIp(playerid,ip,16);
	return ip;
}
scammer,nuff said
Reply
#3

Quote:
Originally Posted by Issam
Посмотреть сообщение
scammer,nuff said
Scammer?..
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=187229
And do not use the [pawn] tag for huge scripts - use www.pastebin.com instead.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)