All pastes #991765 Raw Edit

Miscellany

public text v1 · immutable
#991765 ·published 2008-04-21 10:22 UTC
rendered paste body
public OnGameModeInit()
{
	SetTimer("ShowT",500,0);
    SetTimer("givecopcararmour", 500,1);
    SetTimer("IsPlayerFelon", 1000, 1);
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
	for(new c=0;c<CAR_AMOUNT;c++)
	{
		Gas[c] = GasMax;
	}
	LoadProperty();
	LoadBizz();
	LoadSBizz();
	LoadBoxer();
	LoadStuff();
	LoadIRC();
	LoadFamilies();
	LoadCK();
	LoadTurfs();
	LoadPapers();
	IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
	IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
	IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
	IRCInfo[9][iPlayers] = 0;
	News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
	format(string, sizeof(string), "Nothing");
	strmid(News[hAdd1], string, 0, strlen(string), 255);
	strmid(News[hAdd2], string, 0, strlen(string), 255);
	strmid(News[hAdd3], string, 0, strlen(string), 255);
	strmid(News[hAdd4], string, 0, strlen(string), 255);
	strmid(News[hAdd5], string, 0, strlen(string), 255);
	format(string1, sizeof(string1), "No-one");
	strmid(News[hContact1], string1, 0, strlen(string1), 255);
	strmid(News[hContact2], string1, 0, strlen(string1), 255);
	strmid(News[hContact3], string1, 0, strlen(string1), 255);
	strmid(News[hContact4], string1, 0, strlen(string1), 255);
	strmid(News[hContact5], string1, 0, strlen(string1), 255);
	PlayerHaul[78][pCapasity] = 100;
	PlayerHaul[79][pCapasity] = 100;
	PlayerHaul[80][pCapasity] = 50;
	PlayerHaul[81][pCapasity] = 50;
	SetGameModeText("The New GodFather beta");
	format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later.");
	format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
	format(motd, sizeof(motd), "Welcome To The New Godfather Roleplay.");
	gettime(ghour, gminute, gsecond);
	FixHour(ghour);
	ghour = shifthour;
	if(!realtime)
	{
		SetWorldTime(wtime);
	}
	SetPDistance(10);
	EnableTirePopping(1);
	EnableZoneNames(1);
	AllowInteriorWeapons(1);
	AllowAdminTeleport(1);
	UsePlayerPedAnims();
	// CreatedCars check
	for(new i = 0; i < sizeof(CreatedCars); i++)
	{
	    CreatedCars[i] = 0;
	}
	// Zones
	for(new i = 0; i < sizeof(TurfInfo); i++)
	{
	    Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
	}
	// Player Class's
	for(new i = 0; i <= sizeof(Peds)-1; i++)
	{
         //AddPlayerClass(Peds[i][0], 2.384830 ,33.103397, 1199.849976,270.000000,-1,-1,-1,-1,-1,-1);
		AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
	}
	pdgate = CreateObject(11327, 1587.664185, -1638.090576, 14.816549, 0.0000, 0.0000, 270.0000);
    CreateObject(997, 1544.664063, -1623.845581, 12.460497, 0.0000, 0.0000, 90.0000);
    CreateObject(997, 1544.666992, -1620.783203, 12.449389, 0.0000, 0.0000, 90.0000);
    CreateObject(997, 1543.197632, -1635.794434, 12.252118, 0.0000, 0.0000, 90.0000);
    CreateObject(968, 1544.685181, -1630.850342, 13.054567, 0.0000, 0.0000, 90.0000);
    CreateObject(1533, 1566.396606, -1667.327148, 27.389730, 0.0000, 0.0000, 180.0000);
    CreateObject(1533, 1564.902466, -1667.311646, 27.389730, 0.0000, 0.0000, 180.0000);
    CreateObject(2182, 1955.688477, -2185.366699, 12.509269, 0.0000, 0.0000, 180.0000);
    CreateObject(11631, 1952.216553, -2183.181396, 13.832381, 0.0000, 0.0000, 90.0000);
    CreateObject(16773, 1534.735229, -1451.535522, 16.159851, 0.0000, 0.0000, 0.0000);//NEW
    CreateObject(1569, 1509.426270, -1470.665405, 8.496538, 0.0000, 0.0000, 270.0000);
    CreateObject(1569, 1509.435913, -1473.652832, 8.493805, 0.0000, 0.0000, 90.0000);
    CreateObject(1569, 1532.282471, -1419.459351, 10.856434, 0.0000, 0.0000, 0.0000);
    CreateObject(1569, 1535.282959, -1419.434326, 10.847677, 0.0000, 0.0000, 180.0000);
    ////========================My House=================================================
    CreateObject(3262, 1101.289307, -628.024475, 107.629227, 0.0000, 0.0000, 191.2501);
    CreateObject(14608, 1094.480713, -683.697693, 114.269409, 0.0000, 0.0000, 315.0000);
    CreateObject(1481, 1109.093628, -678.061401, 113.965996, 0.0000, 0.0000, 180.0000);
    CreateObject(1646, 1104.565308, -671.653076, 113.063774, 0.0000, 0.0000, 270.0000);
    CreateObject(1645, 1104.540039, -673.577209, 113.058250, 0.0000, 0.0000, 270.0000);
    CreateObject(1646, 1104.613647, -675.750488, 113.071198, 0.0000, 0.0000, 270.0000);
    CreateObject(2100, 1113.143677, -672.134521, 113.051720, 0.0000, 0.0000, 270.0000);
    CreateObject(2229, 1113.093506, -671.356018, 113.014130, 0.0000, 0.0000, 292.5000);
    CreateObject(2229, 1112.906006, -673.943787, 113.144058, 0.0000, 0.0000, 247.5000);
    CreateObject(643, 1108.587524, -672.912476, 113.434189, 0.0000, 0.0000, 0.0000);
    CreateObject(1670, 1108.562866, -672.817505, 113.844719, 0.0000, 0.0000, 0.0000);
    //===============================Car Lic==========================================
    CreateObject(1569, 1014.875061, -1555.253174, 13.878472, 0.0000, 0.0000, 270.0000);
    CreateObject(1569, 1014.875061, -1558.233521, 13.876321, 0.0000, 0.0000, 90.0000);
    CreateObject(10281, 1016.910706, -1553.819336, 19.619831, 0.0000, 0.0000, 90.0000);
    CreateObject(630, 1015.426941, -1558.390015, 14.890874, 0.0000, 0.0000, 0.0000);
    CreateObject(630, 1015.557495, -1555.217041, 14.884534, 0.0000, 0.0000, 0.0000);
    //=============================Airport==========================================
    CreateObject(1572, 1697.596680, -2238.817139, -3.141491, 0.0000, 0.0000, 90.0000);
CreateObject(1572, 1696.209229, -2238.826904, -3.141460, 0.0000, 0.0000, 90.0000);
CreateObject(1572, 1694.759644, -2238.858887, -3.141359, 0.0000, 0.0000, 90.0000);
CreateObject(1572, 1693.391602, -2238.934082, -3.141119, 0.0000, 0.0000, 90.0000);
CreateObject(1572, 1676.369873, -2239.022705, -3.140834, 0.0000, 0.0000, 270.0000);
CreateObject(1572, 1677.867920, -2239.084717, -3.140637, 0.0000, 0.0000, 270.0000);
CreateObject(1572, 1679.257202, -2239.001953, -3.133090, 0.0000, 0.0000, 270.0000);
CreateObject(1572, 1680.705566, -2238.960449, -3.133221, 0.0000, 0.0000, 270.0000);
CreateObject(10757, 1453.602173, -2286.219971, 18.548471, 0.0000, 0.0000, 270.0000);
CreateObject(2773, 1686.966919, -2248.483398, -3.156397, 0.0000, 0.0000, 270.0000);
CreateObject(2773, 1677.623291, -2248.559326, -3.156152, 0.0000, 0.0000, 270.0000);
CreateObject(1444, 1672.054810, -2242.174316, -2.896540, 0.0000, 0.0000, 0.0000);
CreateObject(2773, 1720.053101, -2273.760742, -1.689569, 0.0000, 0.0000, 0.0000);
CreateObject(2773, 1719.997681, -2276.199707, -1.687825, 0.0000, 0.0000, 0.0000);
CreateObject(2773, 1719.965698, -2278.606445, -1.687566, 0.0000, 0.0000, 0.0000);
CreateObject(2773, 1719.992920, -2281.039551, -1.686265, 0.0000, 0.0000, 0.0000);
CreateObject(2773, 1718.620728, -2272.745117, -1.696011, 0.0000, 0.0000, 270.0000);
//================================SF AIRPORT=======================================

CreateObject(1444, -1419.220581, -296.065582, 13.953125, 0.0000, 0.0000, 315.0000);
CreateObject(2773, -1424.358276, -294.118927, 13.665666, 0.0000, 0.0000, 225.0000);
CreateObject(2773, -1428.234863, -290.859924, 13.665666, 0.0000, 0.0000, 45.0000);
CreateObject(2773, -1380.575928, -372.526917, 13.665666, 0.0000, 0.0000, 281.2500);
CreateObject(1572, -1419.467773, -289.168213, 13.719073, 0.0000, 0.0000, 45.0000);
CreateObject(1572, -1418.332031, -290.122009, 13.719073, 0.0000, 0.0000, 45.0000);
CreateObject(1572, -1417.232056, -291.168610, 13.719073, 0.0000, 0.0000, 45.0000);
CreateObject(1572, -1425.237793, -284.416595, 13.719073, 0.0000, 0.0000, 236.2500);
CreateObject(1572, -1426.545044, -283.431427, 13.719073, 0.0000, 0.0000, 236.2501);
CreateObject(1572, -1427.726196, -282.551208, 13.719073, 0.0000, 0.0000, 236.2501);
CreateObject(626, -1419.999756, -288.520752, 15.197033, 0.0000, 0.0000, 0.0000);
CreateObject(626, -1424.151367, -285.060577, 15.197034, 0.0000, 0.0000, 0.0000);
    // Car Spawns
    //========================TEXT==============
   	Textdraw0 = TextDrawCreate(497.000000,426.000000,"The New Godfather");
//Textdraw1 = TextDrawCreate(1.000000,1.000000," ");
TextDrawAlignment(Textdraw0,0);
//TextDrawAlignment(Textdraw1,3);
TextDrawBackgroundColor(Textdraw0,0x00ff0000);
//TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.400000,2.000000);
//TextDrawFont(Textdraw1,3);
//TextDrawLetterSize(Textdraw1,1.000000,1.000000);
TextDrawColor(Textdraw0,0x000000ff);
//TextDrawColor(Textdraw1,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
//TextDrawSetOutline(Textdraw1,1);
TextDrawSetProportional(Textdraw0,1);
//TextDrawSetProportional(Textdraw1,1);
//TextDrawSetShadow(Textdraw1,9);

//===================================LSPD MENU====================================================
LSPD = CreateMenu("Armoury", 1, 50.0, 180.0, 200.0, 200.0);

AddMenuItem(LSPD, 0, "Cadet Patrol");
AddMenuItem(LSPD, 0, "Officer Patrol");
AddMenuItem(LSPD, 0, "Detective Patrol");
AddMenuItem(LSPD, 0, "Motorcyclist Patrol");
AddMenuItem(LSPD, 0, "Standard SWAT");
AddMenuItem(LSPD, 0, "Medium SWAT");
AddMenuItem(LSPD, 0, "Heavy SWAT");
AddMenuItem(LSPD, 0, "Sharpshooter SWAT");
AddMenuItem(LSPD, 0, "Equip Armor+health");
AddMenuItem(LSPD, 0, "Ceremonial Uniform");
AddMenuItem(LSPD, 0, "Default");
//===============================FBI MENU================================================
//FBI = CreateMenu("FBI Armoury", 1, 50.0, 180.0, 200.0, 200.0);

//AddMenuItem(FBI, 0, "Internal Surveillance");
//AddMenuItem(FBI, 0, "Agent Surveillance");
//AddMenuItem(FBI, 0, "Surveillance Camera");
//AddMenuItem(FBI, 0, "Covert Surveillance");
//AddMenuItem(FBI, 0, "Standard Tactical");
//AddMenuItem(FBI, 0, "Medium tactical");
//AddMenuItem(FBI, 0, "Heavy tactical");
//AddMenuItem(FBI, 0, "Sharpshooter tactical");
//AddMenuItem(FBI, 0, "Equip Armor+health");
//AddMenuItem(FBI, 0, "Night Vision Googles");
//AddMenuItem(FBI, 0, "Thermal Googles");
//AddMenuItem(FBI, 0, "Default");
//=================================NEWS=========================================================
newspaper = CreateMenu("Newspaper", 1, 50.0, 180.0, 200.0, 200.0);

AddMenuItem(newspaper, 0, "Jobs");
AddMenuItem(newspaper, 0, "Licenses");
AddMenuItem(newspaper, 0, "Transport");
AddMenuItem(newspaper, 0, "Emergency");
AddMenuItem(newspaper, 0, "Factions");
AddMenuItem(newspaper, 0, "Gangs");
//======================================================================================
	for(new h = 0; h <=33 ; h++)
	{
		AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
		gCarLock[h+1] = 1;
	}//34
	AddStaticVehicleEx(601, 1545.962890, -1651.018554, 5.653031, 89.379165, -1, -1, 6000);
	AddStaticVehicleEx(601, 1545.684204, -1655.080200, 5.649509, 88.990058, -1, -1, 6000);
	AddStaticVehicleEx(528, 1545.145019, -1659.121093, 5.934303, 90.586624, -1, -1, 6000);
	AddStaticVehicleEx(528, 1545.187866, -1663.191650, 5.935156, 89.519760, -1, -1, 6000);
	AddStaticVehicleEx(497, 1564.993774, -1650.127563, 28.575252, 356.079254, -1, -1, 60000);
    AddStaticVehicleEx(497, 1568.166259, -1699.682250, 28.571847, 4.515851, -1, -1, 60000);
    AddStaticVehicleEx(596, 1595.646240, -1711.643554, 5.610957, 358.755065, 0, 1, 60000);
    AddStaticVehicleEx(596, 1591.418212, -1711.663085, 5.611541, 1.208421, 0, 1, 60000);
    AddStaticVehicleEx(596, 1587.559204, -1711.561645, 5.610657, 0.207142, -1, -1, 60000);
    AddStaticVehicleEx(596, 1583.410278, -1711.624877, 5.611075, 358.940460, -1, -1, 60000);
    AddStaticVehicleEx(596, 1578.436645, -1711.598754, 5.612349, 1.409530, -1, -1, 60000);
    AddStaticVehicleEx(596, 1574.283325, -1711.234985, 5.612422, 359.594116, -1, -1, 60000);
    AddStaticVehicleEx(596, 1570.324584, -1711.108032, 5.611895, 359.474548, -1, -1, 60000);
    AddStaticVehicleEx(596, 1545.627319, -1684.147949, 5.611526, 90.004989, 1, 1, 60000);
    AddStaticVehicleEx(596, 1545.933715, -1680.410156, 5.611416, 89.920852, 1, 1, 60000);
    AddStaticVehicleEx(599, 1565.459594, -1711.304809, 6.079418, 358.979553, -1, -1, 60000);
    AddStaticVehicleEx(599, 1558.601806, -1711.580444, 6.079953, 1.238522, -1, -1, 60000);
    AddStaticVehicleEx(490, 1544.863769, -1675.899658, 6.019239, 90.659072, -1, -1, 60000);
    AddStaticVehicleEx(490, 1545.561279, -1671.997924, 6.017828, 90.824234, -1, -1, 60000);
    AddStaticVehicleEx(490, 1545.023071, -1667.835205, 6.018048, 91.551963, -1, -1, 60000);
    AddStaticVehicleEx(427, 1530.481201, -1644.991821, 6.022502, 179.801773, -1, -1, 60000);
    AddStaticVehicleEx(427, 1538.588745, -1645.239135, 6.022404, 180.244842, -1, -1, 60000);
    AddStaticVehicleEx(523, 1583.092895, -1667.301147, 5.459611, 89.250747, -1, -1, 60000);
    AddStaticVehicleEx(523, 1583.198486, -1669.066894, 5.460612, 90.085006, -1, -1, 60000);
    AddStaticVehicleEx(523, 1583.021362, -1670.594848, 5.459751, 90.159149, -1, -1, 60000);
    AddStaticVehicleEx(523, 1583.334106, -1672.131347, 5.464129, 87.200317, -1, -1, 60000);
    AddStaticVehicleEx(523, 1583.190795, -1674.000244, 5.462954, 92.809043, -1, -1, 60000);
    AddStaticVehicleEx(523, 1583.238525, -1675.929321, 5.464248, 88.048370, -1, -1, 60000);
	AddStaticVehicleEx(596,-1381.9910,457.0832,6.9837,0.1452, 44, 86, 60000);/*Patriot cruiser*/
	//AddStaticVehicleEx(596,1558.392000,-1710.859000,5.466783,1.0, -1, -1, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(596,1569.639000,-1710.859000,5.466783,1.0, -1, -1, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(596,-2139.1995,-2393.7671,30.3452,140.7012, 0, 0, 60000);/*CopCruiser*/
	AddStaticVehicleEx(425,-1279.8262,493.3734,18.0309,219.1345, -1, -1, 60000);/*Hunter*/
	AddStaticVehicleEx(425,-1291.0063,492.3819,18.0305,223.8306, -1, -1, 60000);/*Hunter*/
	//AddStaticVehicleEx(596,1601.308000,-1621.916000,13.056540,90.0, -1, -1, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(596,1535.8275,-1678.0283,13.1680,359.9876, -1, -1, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(596,1561.860000,-1694.905000,6.139762,222.0,-1, -1, 60000);/*CopCruiser*/
	AddStaticVehicleEx(470,-1375.1555,457.5534,6.9837,359.8331,-1, -1, 60000);/*Patriot*/
	AddStaticVehicleEx(467,1067.1295,-295.5681,73.7826,179.6040, 90, -1, 60000);/*Hitman Oceanic*/
	AddStaticVehicleEx(467,1077.3829,-295.1148,73.7812,180.2754, 90, -1, 60000);/*Hitman Oceanic*/
	//AddStaticVehicleEx(596,614.8,-588.5,17.4,240.0, -1, -1, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(596,635.1,-561.5,16.5,180.0, -1, -1, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(596,-2177.5759,-2362.5042,30.4296,141.0939, 0, 0, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(490,1539.392000,-1646.262000,6.274928,180.0, -1, -1, 60000);/*FBI Rancher*/
	//AddStaticVehicleEx(490,1531.254000,-1647.431000,6.274976,200.0, -1, -1, 60000);/*FBI Rancher*/
	AddStaticVehicleEx(470,-1363.1493,457.1042,6.9836,359.6740, -1, -1, 60000);/*Patriot*/
	AddStaticVehicleEx(470,-1355.5931,456.7297,6.9836,0.0286, -1, -1, 60000);/*Patriot*/
	//AddStaticVehicleEx(596,1535.8459,-1668.7560,13.2653,359.7447,-1, -1, 60000);/*CopCruiser*/
	AddStaticVehicleEx(407,-2550.1443,610.7148,14.3281,90.6597, -1, -1, 60000);/*FireTruck*/
	//AddStaticVehicleEx(596,-2181.2766,-2375.6953,30.3405,231.7148, 0, 0, 60000);/*CopCruiser*/
	//AddStaticVehicleEx(596,1545.7845,-1684.4004,5.6342,271.1593, 89, 1, 60000);/*General Car*/
	//AddStaticVehicleEx(596,1530.1611,-1676.0326,5.4563,231.7766, 89, 1, 60000);/*General Car*/
	AddStaticVehicleEx(407,-2551.8792,587.1581,14.3281,90.4374,-1, -1, 60000);/*FireTruck*/
	//AddStaticVehicleEx(497, 1517.8,-1656.1,13.7,0.0, -1, -1, 60000);/*Police Maveric*/
	AddStaticVehicleEx(416,-2637.0630,617.3499,14.3281,90.1464, -1, -1, 60000);/*Ambulance*/
	AddStaticVehicleEx(416,-2661.4282,617.3460,14.3288,89.2072, -1, -1, 60000);/*Ambulance*/
	AddStaticVehicleEx(416,-2662.4568,595.3354,14.3281,273.2716, -1, -1, 60000);/*Ambulance*/
	AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 60000);//64/*Bus*/
	AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 60000);//65/*Bus*/
	AddStaticVehicleEx(430,-1443.4342,427.0862,-0.6994,268.8489,-1, -1, 60000);/*NG BOAT*/
	AddStaticVehicleEx(430,-1442.0721,390.6206,-0.4339,270.1023,-1, -1, 60000);/*NG BOAT*/
	AddStaticVehicleEx(467,1071.9189,-294.9166,73.7250,178.9444,90, -1, 60000);//68/*Hitman Oceanic*/
	AddStaticVehicleEx(405,-2082.3562,-117.3896,34.9299,177.0056,17, 17, 60000);//69 Driving School /*Sentinel*/
	AddStaticVehicleEx(405,-2072.5933,-117.4564,34.9383,178.0982,17, 17, 60000);//Driving School/*Sentinel*/
	AddStaticVehicleEx(405,-2062.4253,-117.6652,34.9347,180.8394,17, 17, 60000);//Driving School/*Sentinel*/
	AddStaticVehicleEx(434,551.7929,-1285.5260,16.9303,0.4147,-1, -1, 60000);//Rent car/*Hotknife*/
	AddStaticVehicleEx(568,536.9888,-1286.5275,16.9993,359.1704,-1, -1, 60000); //Rent car/*Bandito*/
	AddStaticVehicleEx(434,544.1793,-1286.1422,16.9492,7.3116,-1, -1, 60000);//Rent car/*Hotknife*/
	AddStaticVehicleEx(434,-1949.9493,258.1949,35.1922,70.7581,-1, -1, 60000); //Rent car/*Hotknife*/
	AddStaticVehicleEx(568,-1948.1650,264.8094,35.1930,72.6982,-1, -1, 60000); //Rent car/*Bandito*/
	AddStaticVehicleEx(434,-1947.0601,270.3815,35.1954,66.0783,-1, -1, 60000); //Rent car/*Hotknife*/
	AddStaticVehicleEx(456,2795.2,-2417.8,13.4,90.8,-1,-1,60000);//Component Truck/*Yankee*/
	AddStaticVehicleEx(456,2783.9,-2417.9,13.4,90.8,-1,-1,60000);//Component Truck/*Yankee*/
	AddStaticVehicleEx(440,2794.1,-2455.9,13.4,90.8,-1,-1,60000);//Component Truck/*Rumpo*/
	AddStaticVehicleEx(440,2782.9,-2455.6,13.4,90.8,-1,-1,60000);//Component Truck/*Rumpo*/
	AddStaticVehicleEx(420,-1986.4958,115.9394,27.3324,0.1277,-1, -1, 60000);//Taxi/*Taxi*/
	AddStaticVehicleEx(487,-2703.3201,624.0250,14.1766,180.2649, 1, 3, 60000);//Medic Chopper/*Maverick*/
	AddStaticVehicleEx(420,-1986.5049,129.1749,27.3299,359.6938,-1, -1, 60000);//Taxi/*Taxi*/
	AddStaticVehicleEx(420,-1986.4310,150.1195,27.3299,0.0329,-1, -1, 60000);//Taxi //CAR ID 85/*Taxi*/
	AddStaticVehicleEx(452,720.1,-1694.0,-0.4,179.4,-1,-1,60000);//Fishboat/*Speeder*/
	AddStaticVehicleEx(452,721.2,-1629.4,-0.4,180.9,-1,-1,60000);//Fishboat/*Speeder*/
	AddStaticVehicleEx(452,739.5,-1670.5,-0.6,177.5,-1,-1,60000);//Fishboat/*Speeder*/
	AddStaticVehicleEx(452,-1474.4949,693.0169,0.1996,0.0751,-1,-1,60000);//Fishboat SF/*Speeder*/
	AddStaticVehicleEx(452,-1720.0717,1439.6177,-0.4913,357.6789,-1,-1,60000);//Fishboat SF/*Speeder*/
	AddStaticVehicleEx(520,-1430.4078,508.1596,18.9400,269.6329,44,86,60000);//NG Plane id 91
	AddStaticVehicleEx(520,-1419.9038,493.5340,18.9350,269.6848,44,86,60000);//NG Plane id 92
	AddStaticVehicleEx(520,-1398.6207,507.7513,18.9328,269.8143,44,86,60000); //NG Plane id 93
	AddStaticVehicleEx(420,-1986.6089,163.8508,27.4837,359.5881,-1,-1,60000);//Taxi
	AddStaticVehicleEx(487,1088.1736,-294.8004,73.7886,134.9237, 0, 1, 60000); //Hitman Chopper
	AddStaticVehicleEx(488,-2044.1797,479.9963,35.1399,180.0648,-1,-1,60000); // newschopper
	AddStaticVehicleEx(582,-2022.6146,458.6767,35.1414,0.7133,-1,-1,60000); // newsvan
	AddStaticVehicleEx(582,-2031.3779,459.0133,35.1362,359.7429,-1,-1,60000); // newsvan
	AddStaticVehicleEx(593,382.5172,2536.9561,16.5338,179.7261,-1,-1,60000);//Flyschool
	AddStaticVehicleEx(513,348.3660,2536.9792,16.7418,178.8195,-1,-1,60000);//Flyschool
	AddStaticVehicleEx(487,365.4068,2537.0327,16.6645,181.9959,-1,-1,60000);//Flyschool
	AddStaticVehicleEx(593,-1429.2843,-505.8203,13.7824,205.7709,-1,-1,60000);//Airport SF
	AddStaticVehicleEx(593,-1462.4779,-524.2803,13.7832,204.8137,-1,-1,60000);//Airport SF
	AddStaticVehicleEx(593,1907.7614,-2624.4097,13.5416,53.1810,-1,-1,60000);//Airport LS
	AddStaticVehicleEx(593,1887.0736,-2627.6543,13.5394,52.6116,-1,-1,60000);//Airport LS
	AddStaticVehicleEx(513,-1354.3270,-466.5467,13.7827,162.0134,-1,-1,60000);//Airport SF
	AddStaticVehicleEx(513,-1390.3510,-482.7985,13.7883,250.3124,-1,-1,60000);//Airport SF
	AddStaticVehicleEx(513,1835.3215,-2624.1938,13.5405,56.0569,-1,-1,60000);//Airport LS
	AddStaticVehicleEx(513,1813.2893,-2625.6296,13.5394,53.2858,-1,-1,60000);//Airport LS
	AddStaticVehicleEx(571,2286.2141,-2354.5000,12.8306,225.8705,-1,-1,60000); // kart
	AddStaticVehicleEx(571,2279.9412,-2348.4141,12.8312,225.8585,-1,-1,60000); // kart
	AddStaticVehicleEx(571,2291.7932,-2345.5356,12.8305,227.3060,-1,-1,60000); // kart
	AddStaticVehicleEx(571,2287.5615,-2341.6433,12.8306,226.5350,-1,-1,60000); // kart
	AddStaticVehicleEx(571,2299.6785,-2338.3186,12.8307,224.3563,-1,-1,60000); // kart
	AddStaticVehicleEx(571,2295.3887,-2334.9448,12.8307,227.9102,-1,-1,60000); // kart
	AddStaticVehicleEx(598, 1436.594848, -890.199584, 50.426479, 359.160247, 0, 0, 6000);//House LV Cop car
    AddStaticVehicleEx(541, 1106.143066, -641.392150, 111.975936, 77.586677, 0, 0, 6000);//My Bullet
    AddStaticVehicleEx(522, 1104.501953, -643.487060, 112.449432, 74.049758, 0, 0, 6000);//My NRG
    AddStaticVehicleEx(428, 1511.409667, -1461.307006, 9.623536, 179.727020, 0, 0, 6000);//FBI
    AddStaticVehicleEx(428, 1514.964599, -1461.436157, 9.624715, 181.498519, 0, 0, 6000);//FBI
    AddStaticVehicleEx(490, 1518.892456, -1461.361083, 9.643052, 181.057800, 0, 0, 6000);//FBI
    AddStaticVehicleEx(490, 1522.417602, -1461.270751, 9.643395, 183.587509, 0, 0, 6000);//FBI
    AddStaticVehicleEx(490, 1525.963256, -1461.185180, 9.649362, 181.878479, 0, 0, 6000);//FBI
    AddStaticVehicleEx(413, 1512.970581, -1478.412353, 9.590561, 1.846763, 0, 0, 6000);//FBI
    AddStaticVehicleEx(413, 1516.436767, -1478.235595, 9.589500, 5.084206, 0, 0, 6000);//FBI
    AddStaticVehicleEx(507, 1520.280395, -1477.605102, 9.325717, 6.001332, 0, 0, 6000);//FBI
    AddStaticVehicleEx(521, 1522.890747, -1476.141113, 9.066556, 5.775275, 0, 0, 6000);//FBI
    AddStaticVehicleEx(596, 1458.817260, -901.513549, 54.529670, 358.657318, 1, -1, 6000);// Alex's Car
    AddStaticVehicleEx(409, 1242.458984, -807.049499, 83.940368, 180.249618, 0, 0, 6000);//MAdd dogs
    AddStaticVehicleEx(560, 1255.582885, -806.502624, 83.847869, 180.260955, 0, 0, 6000);//MAdd dogs
    AddStaticVehicleEx(560, 1251.131713, -806.447814, 83.845672, 179.829284, 0, 0, 6000);//MAdd dogs
    AddStaticVehicleEx(409, 1246.507324, -807.201538, 83.940643, 180.888717, 0, 0, 6000);//MAdd dogs
    AddStaticVehicleEx(487, 1291.713989, -788.917602, 96.632156, 4.754503, 0, 0, 6000);//MAdd dogs
    AddStaticVehicleEx(411, 283.157104, -1161.082031, 80.640129, 221.214813, 3, 3, 6000);//Richie
    AddStaticVehicleEx(596, 1516.735107, -689.738708, 94.471405, 91.432228, -1, -1, 6000);//Andrew's
    AddStaticVehicleEx(510, -1380.643066, -371.441436, 13.756609, 97.506050, 3,3, 6000);//SF AIRPORT
AddStaticVehicleEx(510, -1380.718383, -370.205169, 13.756785, 100.983222, 3,3, 6000);//SF AIRPORT
AddStaticVehicleEx(510, -1380.928344, -369.163482, 13.756693, 101.194892, 3,3, 6000);//SF AIRPORT
AddStaticVehicleEx(510, -1381.102661, -367.979888, 13.757062, 97.936981, 3,3, 6000);//SF AIRPORT
AddStaticVehicleEx(462, -1381.452636, -366.916992, 13.744552, 98.818161, 3,3, 6000);//SF AIRPORT
AddStaticVehicleEx(462, -1381.831176, -365.416900, 13.745026, 102.171264, 3,3, 6000);//SF AIRPORT
AddStaticVehicleEx(462, -1382.125000, -363.548889, 13.748064, 100.435073, 3,3, 6000);//SF AIRPORT
AddStaticVehicleEx(510, 1718.576660, -2273.808349, -1.604371, 91.264251, 2,2, 6000);//LS AIRPORT
AddStaticVehicleEx(510, 1718.536743, -2274.989746, -1.603902, 91.248222, 2,2, 6000);//LS AIRPORT
AddStaticVehicleEx(510, 1718.479736, -2275.901855, -1.604489, 93.263664, 2,2, 6000);//LS AIRPORT
AddStaticVehicleEx(510, 1718.404296, -2276.979248, -1.604044, 99.198516, 2,2, 6000);//LS AIRPORT
AddStaticVehicleEx(462, 1718.230957, -2278.467041, -1.615540, 92.266227, 2,2, 6000);//LS AIRPORT
AddStaticVehicleEx(462, 1717.995849, -2279.697509, -1.615783, 93.321113, 2,2, 6000);//LS AIRPORT
AddStaticVehicleEx(462, 1718.034423, -2281.046875, -1.612540, 92.750312, 2,2, 6000);//LS AIRPORT



	CreateVehicle(494,-1401.0436,-210.0052,1042.9913,1.6623,1,0,60000); //hotring 116
	CreateVehicle(494,-1400.4019,-219.9365,1043.0348,5.3554,1,3,60000); //hotring
	CreateVehicle(494,-1394.4932,-207.7917,1042.9963,3.6872,0,6,60000); //hotring
	CreateVehicle(494,-1393.7854,-217.9354,1043.0325,2.9556,1,2,60000); //hotring
	CreateVehicle(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,60000); //bike 120
	CreateVehicle(468,-1433.1708,-592.4930,1055.6533,92.4067,-1,-1,60000); //bike
	CreateVehicle(468,-1448.5325,-584.4943,1055.4949,95.5400,-1,-1,60000); //bike
	CreateVehicle(468,-1434.8973,-585.1266,1055.2488,91.1533,-1,-1,60000); //bike
	CreateVehicle(468,-1449.2814,1610.7823,1052.5313,272.9406,-1,-1,60000); // bike 124
	CreateVehicle(468,-1453.8767,1611.2418,1052.5313,89.0355,-1,-1,60000); // bike
	CreateVehicle(468,-1454.4746,1614.3342,1052.5313,86.8422,-1,-1,60000); // bike
	CreateVehicle(468,-1449.5795,1614.0684,1052.5313,269.2039,-1,-1,60000); // bike
    CreateVehicle(514,-77.5039,-1108.1729,1.6683,161.8915,-1,-1,60000); // truck
	CreateVehicle(514,-72.3507,-1109.7822,1.6670,161.7769,-1,-1,60000); // truck
	CreateVehicle(514,-67.0126,-1111.7156,1.6688,160.4800,-1,-1,60000); // truck
	CreateVehicle(435,-51.0638,-1135.2831,1.0781,68.3320,-1,-1,60000); // trailer
	CreateVehicle(435,-53.6230,-1139.7546,1.0781,67.5604,-1,-1,60000); // trailer
	CreateVehicle(435,-55.0517,-1144.3676,0.8018,68.1347,-1,-1,60000); // trailer
	

	for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
			AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
		if(HouseInfo[h][hOwned] == 1)
		{
			AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
	}
	for(new h = 0; h < sizeof(BizzInfo); h++)
	{
		if(BizzInfo[h][bOwned] == 0)
		{
			AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
		if(BizzInfo[h][bOwned] == 1)
		{
			AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
	}
	for(new h = 0; h < sizeof(SBizzInfo); h++)
	{
		if(SBizzInfo[h][sbOwned] == 0)
		{
			AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}
		if(SBizzInfo[h][sbOwned] == 1)
		{
			AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}
	}
	AddStaticPickup(1239, 2, 1173.2563,-1323.3102,15.3943); //Hospital 1 near Ammu
	AddStaticPickup(1239, 2, 2029.5945,-1404.6426,17.2512); //Hospital 2 near speedway
	AddStaticPickup(1239, 2, 253.9280,69.6094,1003.6406); //Clear icon in Police Station
	AddStaticPickup(1239, 2, -2162.2554,-2385.9541,30.6250); //City Hall
	AddStaticPickup(1239, 2, 359.5408,206.7693,1008.3828); //Detective Registration
	AddStaticPickup(1239, 2, 347.7374,193.7241,1014.1875); //Lawyer Registration
	AddStaticPickup(1239, 2, 1215.1304,-11.8431,1000.9219); //Whore Registration
	AddStaticPickup(1239, 2, 2166.3772,-1675.3829,15.0859); //DrugDealer Registration
	AddStaticPickup(1239, 2, 1109.3318,-1796.3042,16.5938); //CarJacker Registration
	AddStaticPickup(1239, 2, -2050.8962,460.0262,35.1719); //NewsReporter Registration & /paper
	AddStaticPickup(1239, 2, -2040.9436,456.2395,35.1719); //PaperBoy Registration
	AddStaticPickup(1239, 2, -1932.3859,276.2117,41.0391); //CarMechanic Registration
	AddStaticPickup(1239, 2, 2226.1716,-1718.1792,13.5165); //BodyGuard Registration
	AddStaticPickup(1239, 2, 1366.4325,-1275.2096,13.5469); //ArmsDealer Registration
	AddStaticPickup(1239, 2, 531.7930,-1292.4044,17.2422); //CarDealer Registration
	AddStaticPickup(1239, 2, 766.0804,14.5133,1000.7004); //Boxer Registration
	AddStaticPickup(1239, 2, 1154.2208,-1770.8203,16.5992); //BusDriver Registration
	AddStaticPickup(1239, 2, -77.7288,-1136.3896,1.0781); //Trucker Registration
	AddStaticPickup(1239, 2, 323.0342,1118.5804,1083.8828); //Getting Drugs for DrugDealers
	AddStaticPickup(1239, 2, 1381.0413,-1088.8511,27.3906); //Bill Board (old Job Department)
	AddStaticPickup(1239, 2, 597.1277,-1248.6479,18.2734); //Materials Package building
	AddStaticPickup(1239, 2, -2119.5469,-178.5679,35.3203); //Factory
	AddStaticPickup(1239, 2, 1073.0619,-344.5148,73.9922); //Hitman Agency entrance
	AddStaticPickup(371, 2, 1544.2,-1353.4,329.4); //LS towertop
	AddStaticPickup(371, 2, 1536.0, -1360.0, 1150.0); //LS towertop
	AddStaticPickup(1242, 2, 1527.5,-12.1,1002.0); //binco armor
	AddStaticPickup(1240, 2, 279.3000,1853.5619,8.7649); //area51 health
	AddStaticPickup(1318, 2, 1524.979492, -1677.851318, 5.890625);//LSPD Elevator
	AddStaticPickup(1318, 2, 1565.035400, -1666.978637, 28.395606);//LSPD ROOF ELE
	AddStaticPickup(1239, 2, 254.160140, 76.346923, 1003.640625);//LSPD Locker Room
	AddStaticPickup(1247, 2, 1528.786132, -1685.797607, 5.890625);//Arrest Position
	AddStaticPickup(1239, 2, 386.361022, -1817.856201, 7.840956);//Sailing boat enter
	AddStaticPickup(1318, 2, 1533.779541, -1420.183960, 11.381289);//FBI Enter
	AddStaticPickup(1318, 2, 215.460296, 126.111152, 1003.218750);//FBI int to parking
	AddStaticPickup(1318, 2, 1510.006103, -1472.052734, 9.500000);//FBI prki to int
	AddStaticPickup(1239, 2,246.751815, 125.439750, 1003.218750);//FBI duty
	AddStaticPickup(1318, 2,245.537765, 108.196640, 1003.218750);//FBI int to out
	AddStaticPickup(1318, 2, 1015.589660, -1556.666259, 14.859375);//Entercar school
	AddStaticPickup(1318, 2, 1494.377929, 1304.406494, 1093.289062);//Exit Car School
	AddStaticPickup(1239, 2, 1499.541503, 1308.693481, 1093.289062);//Buy Car License
	AddStaticPickup(1239, 2, 1450.627319, -2287.045654, 13.546875);//Buy Flying license
	AddStaticPickup(1239, 2,392.981201, -2079.693847, 7.830090);//Buy Fishing Licen
	//AddStaticPickup(1239, 2,300.180358, -1154.397460, 81.387817);//Richie house
	AddStaticPickup(1239, 2,1672.183471, -2243.172363, -2.698297);//Newspaper
	AddStaticPickup(1239, 2, -1419.633667, -296.505981, 14.342906);//SF NEWSPAPER
	
	pickups=pickups+29;
	printf("Pickups Max = 100, Current Pickups = %d",pickups);
	new randa = random(sizeof(RandCars));
	randa = random(sizeof(RandCars));carselect[0] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[1] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[2] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[3] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[4] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[5] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[6] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[7] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[8] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[9] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[10] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[11] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[12] = RandCars[randa][0];
	randa = random(sizeof(RandCars));carselect[13] = RandCars[randa][0];
	randa = random(sizeof(RandLCars));carselect[14] = RandLCars[randa][0];
	AddStaticVehicleEx(carselect[14], 1279.4,-1337.0,13.5,1.0,-1, -1, -1);//long
	AddStaticVehicleEx(409,1248.6779,-2045.4602,59.6498,268.3867,0,0,60000); // limo LaCosaNostra
	AddStaticVehicleEx(507,1242.7739,-2031.1902,59.7773,178.8082,0,0,60000); // Elegant LaCosaNostra
	AddStaticVehicleEx(507,1242.9808,-2015.0297,59.7788,180.6815,0,0,60000); // Elegant LaCosaNostra
	AddStaticVehicleEx(507,1275.1589,-2046.2448,58.9736,87.6114,0,0,60000); // Elegant LaCosaNostra
	AddStaticVehicleEx(409,-2274.3672,646.6611,49.1778,179.9364,50,50,60000); // limo Yakuza
	AddStaticVehicleEx(421,-2176.6760,636.7382,49.2387,37.7510,50,50,60000); // Washington Yakuza
	AddStaticVehicleEx(421,-2247.8093,649.9500,49.1645,0.0748,50,50,60000); // Washington Yakuza
	AddStaticVehicleEx(421,-2247.4382,667.7339,49.1645,359.8687,50,50,60000); // Washington Yakuza
	AddStaticVehicleEx(409,-2159.6860,-2393.2295,30.5070,52.5176,1,1,60000); // limo mayor
	
	for(new h = 34; h <sizeof(HouseInfo) ; h++)
	{
		AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
		gCarLock[h+1] = 1;
	}//34
	
	if (realtime)
	{
		new tmphour;
		new tmpminute;
		new tmpsecond;
		gettime(tmphour, tmpminute, tmpsecond);
		FixHour(tmphour);
		tmphour = shifthour;
		SetWorldTime(tmphour);
	}
	synctimer = SetTimer("SyncUp", 60000, 1);
	unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
	othtimer = SetTimer("OtherTimer", 1000, 1);
	cartimer = SetTimer("CarCheck", 30000, 1);
	pickuptimer = SetTimer("CustomPickups", 1000, 1);
	spectatetimer = SetTimer("Spectator", 2000, 1);
	idletimer = SetTimer("IdleKick", idletime, 1);
	productiontimer = SetTimer("Production", 300000, 1); //5 mins (300000)
	accountstimer = SetTimer("SaveAccounts", 1800000, 1); //30 mins every account saved
	checkgastimer = SetTimer("CheckGas", RunOutTime, 1);
    stoppedvehtimer = SetTimer("StoppedVehicle", RunOutTime, 1);
	//for(new i = 0; i < sizeof(CarSpawns); i++)
	for(new i = 0; i < 165; i++)
	{
		AddCar(i);
	}
	CarInit();
	return 1;
}