i have problem in my first gm plz help fast
#1

Code:
#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"
#pragma tabsize 0

#else

main()
{
	print("\n----------------------------------");
	print(" Fun and Games server By Misho");
	print("----------------------------------\n");
	
	public OnPlayerConnect(playerid)
{
	GameTextForPlayer(playerid,"~w~Welcome to Fun and Games",3000,4);
  	SendClientMessage(playerid,COLOR_WHITE,"Welcome to Fun and Games");
  	
  			format(string,sizeof(string),"[INFO]: %s (%d) has joined Fun and Games. (%s)", plname, playerid,playersip);
		if (strlen(pIPs) < 3) SendIP = 0;
		else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
		else
		{



	return 1;
}


#endif

public OnGameModeInit()
{

SetGameModeText("Freeroam/Stunts/Minigames/gangs");
AddPlayerClass(19,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(7,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(115,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(107,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(104,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(102,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(108,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(109,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(123,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(120,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(100,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(124,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(113,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(287,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(286,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(285,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(276,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(195,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(190,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(191,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(192,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(193,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(194,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(138,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(154,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(162,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(33,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(90,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(178,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(23,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(167,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(179,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(264,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(137,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(29,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(21,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(40,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(93,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
	//-------------------------------------------------------------------------------------------
	armycar[0] = AddStaticVehicleEx(598,2779.3843,-2434.2644,13.3568,88.5203,99,1,30000); // Army police 1
	armycar[1] = AddStaticVehicleEx(598,2779.4299,-2439.7708,13.3572,88.1692,99,1,30000); // Army police 2
	armycar[2] = AddStaticVehicleEx(598,2779.1882,-2471.9214,13.3576,86.6550,99,1,30000); // Army police 3
	armycar[3] = AddStaticVehicleEx(598,2779.1497,-2477.8547,13.3590,86.9500,99,1,30000); // Army police 4
	armycar[4] = AddStaticVehicleEx(432,2791.3584,-2494.2971,13.6588,89.3376,43,0,30000); // Army tank 5
	armycar[5] = AddStaticVehicleEx(470,2792.0173,-2455.8245,14.0688,90,43,0,30000); // Army patriot 6
	armycar[6] = AddStaticVehicleEx(470,2793.1680,-2418.1855,13.6259,88.3914,-1, -1, 30000); // Patriot 7
	armycar[7] = AddStaticVehicleEx(470,2785.0979,-2417.6987,13.6273,87.4559, -1, -1, 30000); //Patriot 8
	armycar[8] = AddStaticVehicleEx(433,2781.4146,-2455.5208,14.0714,90,43,0,30000); // Army truck 9
	armycar[9] = AddStaticVehicleEx(430,2698.8132,-2311.0671,-0.2161,87.3657,-1, -1, 30000); // Army boat 10
	armycar[10] = AddStaticVehicleEx(430,2722.9766,-2311.2756,-0.3360,89.2799,-1, -1, 30000); // Army boat 11
	//-------------------------------------------------------------------------------------------
 	governcar[0] = AddStaticVehicleEx(405,1406.93,-1790.2,13.3,90, 0, 0, 30000); // Mayor security 12
	governcar[1] = AddStaticVehicleEx(405,1406.9,-1793.8,13.3,90, 0, 0, 30000); // Mayor security 13
	governcar[2] = AddStaticVehicleEx(405,1406.7,-1782.16,13.3,90, 0, 0, 30000); // Mayor security 14
	governcar[3] = AddStaticVehicleEx(409,1405.87,-1785.96,13.3,90,1,1,30000); // Mayor stretch 15
	//-------------------------------------------------------------------------------------------
	copcar[0] = AddStaticVehicleEx(599,616.1244,-601.7048,17.4214,271.5325, -1, -1, 30000); // Cop cruiser (Dillimore) 16
	vicecar[0] = AddStaticVehicleEx(426,158.4755,-1751.1315,4.6460,1.3559,0,0, 30000); // La Vice Premier 17
	vicecar[1] = AddStaticVehicleEx(426,158.3176,-1758.2914,4.4283,356.8665,0,0, 30000); // La Vice Premier 18
	copcar[1] = AddStaticVehicleEx(596,1574.4703,-1710.9795,5.6115,0.4220, -1, -1, 30000); // Cop cruiser 19
	copcar[2] = AddStaticVehicleEx(596,1587.4816,-1710.3594,5.6104,358.9421,-1, -1, 30000); // Cop cruiser 20
	copcar[3] = AddStaticVehicleEx(596,1595.6578,-1710.9442,5.6119,359.6335,0,1,30000); // Cop cruiser 21
    copcar[4] = AddStaticVehicleEx(596,1545.7845,-1684.4004,5.6342,271.1593,0,1,30000); // Cop cruiser 22
    copcar[5] = AddStaticVehicleEx(596,1558.7819,-1710.9503,5.6119,1.1862,0,1,30000); // Cop cruiser 23
    copcar[6] = AddStaticVehicleEx(596,1601.8564,-1704.1805,5.6110,88.9959,-1,-1,30000); // Cop cruiser 24
	copcar[7] = AddStaticVehicleEx(596,1600.9231,-1691.9321,5.6113,91.6221,-1,-1,30000); // Cop cruiser 25
	copcar[8] = AddStaticVehicleEx(596,1600.4153,-1687.9385,5.6118,90.7431,-1,-1,30000); // Cop cruiser 26
	copcar[9] = AddStaticVehicleEx(596,1529.6339,-1683.7720,5.6124,270.5692, -1, -1, 30000); // Cop cruiser 27
	copcar[10] = AddStaticVehicleEx(596,1529.5374,-1688.0181,5.6114,270.0886, -1, -1, 30000); // Cop cruiser 28
	copcar[11] = AddStaticVehicleEx(523,1557.9637,-1694.5964,5.4673,226.4766,-1,-1,30000); // Police moto 29
    copcar[12] = AddStaticVehicleEx(523,1557.9060,-1697.4153,5.4689,220.9842,-1,-1,30000); // Police moto 30
    copcar[13] = AddStaticVehicleEx(523,1558.1632,-1691.8335,5.4596,224.7542,-1,-1,30000); // Police moto 31
	copcar[14] = AddStaticVehicleEx(599,1584.6510,-1671.4448,6.0541,271.5708,0,1,30000); // Police ranger 32
    copcar[15] = AddStaticVehicleEx(599,1584.7875,-1667.6138,6.0592,272.0818,0,1,30000); // Police ranger 33
	copcar[16] = AddStaticVehicleEx(599,1545.3936,-1667.7957,6.0809,87.7152,-1,-1,30000); // Police ranger 34
	copcar[17] = AddStaticVehicleEx(599,1545.0044,-1671.9329,6.0791,91.5492,-1,-1,30000); // Police ranger 35
	swatcar[0] = AddStaticVehicleEx(427,1544.2870,-1659.3522,5.6119,88.5025,0,125,30000);// Police SWAT enforcer 36
	swatcar[1] = AddStaticVehicleEx(601,1544.6962,-1663.2948,6.0225,88.9357,-1,-1,30000); // Police SWAT APC 37
	copcar[18] = AddStaticVehicleEx(497,1566.6628,-1653.8688,28.5752,91.9445,0,1,30000);// Police maverick 38
	//-------------------------------------------------------------------------------------------
	tacticalcar[0] = AddStaticVehicleEx(490,1514.1959,-1478.1108,9.6270,270.0, 125, 0, 30000); // FBI rancher 39
	tacticalcar[1] = AddStaticVehicleEx(490,1514.1621,-1474.2642,9.6278,270,125,0,30000); // FBI rancher 40
	tacticalcar[2] = AddStaticVehicleEx(426,1525.4424,-1461.3640,9.2431,0,125,0,30000); // FBI elegant 41
	fbicar[0] = AddStaticVehicleEx(426,1520.8752,-1461.1650,9.2430,0,0,0,30000); // FBI elegant 42
	fbicar[1] = AddStaticVehicleEx(426,1516.1973,-1461.1393,9.2430,0,0,0,30000); // FBI elegant 43
	//-------------------------------------------------------------------------------------------
	vicecar[2] = AddStaticVehicleEx(426,153.8499,-1758.2358,4.5786,358.2814,0,0, 30000); // La Vice Premier 44
	AddStaticVehicleEx(572,2558.3201,2653.9070,10.5473,193.3834,0,0, 30000); // None 45
	AddStaticVehicleEx(572,2564.2375,2649.3052,10.5265,207.0189,0,0, 30000); // None 46
	AddStaticVehicleEx(572,2574.2048,2649.4514,10.5474,219.5219,0,0, 30000); // None 47
	AddStaticVehicleEx(572,2578.7847,2655.4546,10.5912,233.9002,0,0, 30000); // None 48
	AddStaticVehicleEx(572,2584.6228,2660.0879,10.5919,76.5837,0,0, 30000); // None 49
	AddStaticVehicleEx(572,2584.1938,2665.9053,10.5510,109.2745,0,0, 30000); // None 50
	AddStaticVehicleEx(572,2562.7419,2664.0110,10.6135,139.6290,0,0, 30000); // None 51
	//-------------------------------------------------------------------------------------------
	ambulance[0] = AddStaticVehicleEx(416,1177.35,-1339.24,13.66,269.58, -1, -1, 30000); // Ambulance 52
	ambulance[1] = AddStaticVehicleEx(416,1176.98,-1308.65,13.62,269.33, -1, -1, 30000); // Ambulance 53
	ambulance[2] = AddStaticVehicleEx(416,1189.87,-1357.14,13.21,180.78, -1, -1, 30000); // Ambulance 54
	AddStaticVehicleEx(555,2558.3201,2648.9070,10.5473,0.42, -1, -1, 30000); // Windsor
	//-------------------------------------------------------------------------------------------
	hitmencar[0] = AddStaticVehicleEx(467,1067.1295,-295.5681,73.7826,179.6040, 90, -1, 30000); // Hitman oceanic 56
	hitmencar[1] = AddStaticVehicleEx(467,1077.3829,-295.1148,73.7812,180.2754, 90, -1, 30000); // Hitman oceanic 57
	hitmencar[2] = AddStaticVehicleEx(467,1071.9189,-294.9166,73.7250,178.9444,90, -1, 30000); // Hitman oceanic 58
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 30000); // Bus 59
	AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 30000); // Bus 60
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(409,1789.4137,-1932.6389,13.1079,357.7568,0,0,30000); // YCAT Co. Limo 61
	AddStaticVehicleEx(421,1803.6373,-1916.4673,13.1141,89.0899,0,0,30000); // YCAT Co. Washington 62
	AddStaticVehicleEx(421,1803.6617,-1925.0874,13.1319,266.7457,0,0,30000); // YCAT Co. Washington 63
	AddStaticVehicleEx(420,1800.6991,-1886.0063,13.1462,268.8892,-1,-1,30000); // YCAT Co.Taxi 64
	AddStaticVehicleEx(420,1777.9976,-1886.0128,13.1922,267.6736,-1,-1,30000); // YCAT Co. Taxi 65
	AddStaticVehicleEx(420,1803.7118,-1906.2510,13.2024,85.1059,-1,-1,30000); // YCAT Co. Taxi 66
	AddStaticVehicleEx(420,1777.3717,-1896.7965,13.1916,270.3214,-1,-1,30000); // YCAT Co. Taxi 67
	AddStaticVehicleEx(420,1796.4906,-1932.9441,13.1914,357.7162,-1,-1,30000); // YCAT Co. Taxi 68
	AddStaticVehicleEx(420,1780.8253,-1931.8109,13.1295,358.2670,-1,-1,30000); // YCAT Co. Taxi 69
	AddStaticVehicleEx(420,1777.6808,-1913.4772,13.1285,267.0958,-1,-1,30000); // YCAT Co. Taxi 70
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(582,1795.24,-1284.89,13.44,125.29,125,125,30000); // News van 71
	AddStaticVehicleEx(582,1797.18,-1291.08,13.27,108.95,125,125,30000); // News van 72
	AddStaticVehicleEx(488,1545.4849,-1353.9330,329.6510,185.4584,125,125,30000); // News Chopper 73
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(525,2078.74,-2006.38,13.25,271.64,0,0,30000); // Towcar 74
	AddStaticVehicleEx(525,2079.06,-2019.84,13.25,269.24,0,0,30000); // Towcar 75
	AddStaticVehicleEx(525,2097.83,-2006.09,13.25,44.15,0,0,30000); // Towcar 76
	AddStaticVehicleEx(525,2106.72,-2015.25,13.25,44.15,0,0,30000); // Towcar 77
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(571,2286.2141,-2354.5000,12.8306,225.8705,-1,-1,30000); // kart 78
	AddStaticVehicleEx(571,2279.9412,-2348.4141,12.8312,225.8585,-1,-1,30000); // kart 79
	AddStaticVehicleEx(571,2291.7932,-2345.5356,12.8305,227.3060,-1,-1,30000); // kart 80
	AddStaticVehicleEx(571,2287.5615,-2341.6433,12.8306,226.5350,-1,-1,30000); // kart 81
	AddStaticVehicleEx(571,2299.6785,-2338.3186,12.8307,224.3563,-1,-1,30000); // kart 82
	AddStaticVehicleEx(571,2295.3887,-2334.9448,12.8307,227.9102,-1,-1,30000); // kart 83
	AddStaticVehicleEx(494,-1401.0436,-210.0052,1042.9913,1.6623,1,0,30000); //hotring 84
	AddStaticVehicleEx(494,-1400.4019,-219.9365,1043.0348,5.3554,1,3,30000); //hotring 85
	AddStaticVehicleEx(494,-1394.4932,-207.7917,1042.9963,3.6872,0,6,30000); //hotring 86
	AddStaticVehicleEx(494,-1393.7854,-217.9354,1043.0325,2.9556,1,2,30000); //hotring 87
	AddStaticVehicleEx(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,30000); //bike 88
	AddStaticVehicleEx(468,-1433.1708,-592.4930,1055.6533,92.4067,-1,-1,30000); //bike 89
	AddStaticVehicleEx(468,-1448.5325,-584.4943,1055.4949,95.5400,-1,-1,30000); //bike 90
	AddStaticVehicleEx(468,-1434.8973,-585.1266,1055.2488,91.1533,-1,-1,30000); //bike 91
	AddStaticVehicleEx(468,-1449.2814,1610.7823,1052.5313,272.9406,-1,-1,30000); // bike 92
	AddStaticVehicleEx(468,-1453.8767,1611.2418,1052.5313,89.0355,-1,-1,30000); // bike 93
	AddStaticVehicleEx(468,-1454.4746,1614.3342,1052.5313,86.8422,-1,-1,30000); // bike 94
	AddStaticVehicleEx(468,-1449.5795,1614.0684,1052.5313,269.2039,-1,-1,30000); // bike 95
	//-------------------------------------------------------------------------------------------
	surenoscar[0] = AddStaticVehicleEx(571,1452.7358,-844.5006,83.8422,179.7695,93,93,30000); // Surenos Quad 2 96
	signatracar[0] = AddStaticVehicleEx(491,1252.7358,-804.5006,83.8622,179.7695,6,6,30000); // la Famiglia Sinatra Car 97
	signatracar[1] = AddStaticVehicleEx(482,1241.3325,-814.7080,83.8642,183.2531,6,6,30000); // la Famiglia Sinatra Van 98
	signatracar[2] = AddStaticVehicleEx(429,1281.1151,-830.0188,82.8608,90.0674,6,0,30000); // la Famiglia Sinatra Sport Car 99
	surenoscar[1] = AddStaticVehicleEx(482,1819.1561,-2020.5332,13.0625,179.1689,93,93,3000); // Van Of Surenos 100
	surenoscar[2] = AddStaticVehicleEx(567,1826.7920,-2021.0032,13.0625,180.4209,93,93,3000); // Surenos Car 101
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(448,2122,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 102
	AddStaticVehicleEx(448,2120,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 103
	AddStaticVehicleEx(448,2118,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 104
	AddStaticVehicleEx(448,2116,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 105
	AddStaticVehicleEx(448,2114,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 106
	AddStaticVehicleEx(448,2112,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 107
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(456,2508.9116,-2111.7759,13.7206,0,-1,-1, 30000); // Component Truck Yankee 108
	AddStaticVehicleEx(456,2484.5356,-2111.7759,13.7196,0,-1,-1,30000); // Component Truck Yankee 109
	AddStaticVehicleEx(440,2529.0413,-2085.3999,13.6651,90,-1,-1,30000); // Component Truck Rumpo 110
	AddStaticVehicleEx(440,2528.9482,-2092.6104,13.6631,90,-1,-1,30000); // Component Truck Rumpo 111
	//-------------------------------------------------------------------------------------------
	rentbike[0] = AddStaticVehicleEx(461,1556.2643,-2361.6479,13.1627,6.6305,39,39,30000); // Mountain bike 112
	rentbike[1] = AddStaticVehicleEx(461,1552.8982,-2361.8359,13.1623,10.5426,16,16,30000); // Mountain bike 113
	rentbike[2] = AddStaticVehicleEx(463,1549.1460,-2362.0383,13.1626,5.5903,6,6,30000); // Mountain bike 114
	rentbike[3] = AddStaticVehicleEx(463,1546.0422,-2362.0017,13.1630,6.6997,5,5,30000); // Mountain bike 115
	rentbike[4] = AddStaticVehicleEx(581,1542.7434,-2361.9631,13.1626,15.3254,2,2,30000); // Mountain bike 116
	rentbike[5] = AddStaticVehicleEx(581,1539.4385,-2362.1431,13.1625,11.8010,43,43,30000); // Mountain bike 117
	rentbike[6] = AddStaticVehicleEx(586,1536.1389,-2362.0837,13.1626,12.2595,46,46,30000); // Mountain bike 118
	rentbike[7] = AddStaticVehicleEx(586,1532.6709,-2362.2327,13.1631,8.4654,39,39,30000); // Mountain bike 119
	rentbike[8] = AddStaticVehicleEx(468,1529.8967,-2362.2913,13.1633,3.8305,28,28,30000); // Mountain bike 120
	rentbike[9] = AddStaticVehicleEx(468,1526.7921,-2362.0647,13.1630,8.0961,16,16,30000); // Mountain bike 121
	rentbike[10] = AddStaticVehicleEx(462,1561.2104,-2338.5303,13.1464,107.7252,13,13,30000); // Faggio 122
	rentbike[11] = AddStaticVehicleEx(462,1561.0819,-2335.0010,13.1470,94.8441,14,14,30000); // Faggio 123
	rentbike[12] = AddStaticVehicleEx(462,1560.7794,-2331.9216,13.1464,96.7927,1,2,30000); // Faggio 124
	rentbike[13] = AddStaticVehicleEx(462,1560.7391,-2328.2046,13.1470,92.0937,2,1,30000); // Faggio 125
	rentbike[14] = AddStaticVehicleEx(462,1560.9022,-2325.0593,13.1462,91.0980,1,3,30000); // Faggio 126
	rentbike[15] = AddStaticVehicleEx(462,1561.0276,-2321.8657,13.1475,95.4715,3,1,30000); // Faggio 127
	rentbike[16] = AddStaticVehicleEx(462,1561.0735,-2318.5796,13.1443,97.1012,10,10,30000); // Faggio 128
	rentbike[17] =	AddStaticVehicleEx(462,1560.9514,-2315.0532,13.1465,94.5565,12,12,30000); // Faggio 129
	rentbike[18] = AddStaticVehicleEx(462,1560.8143,-2311.6104,13.1455,95.1219,13,13,30000); // Faggio 130
	//-------------------------------------------------------------------------------------------
	fdcar[0] = AddStaticVehicleEx(407,1005.7731,-1459.2805,13.6780,359.2671,-1,-1,30000); // Fire Truck Type [1] 131
	fdcar[1] = AddStaticVehicleEx(407,1013.3235,-1459.5682,13.6819,1.0221,-1,-1,30000); // Fire Truck Type [1] 132
	fdcar[2] = AddStaticVehicleEx(544,988.6091,-1453.2679,13.7752,267.6749,-1,-1,30000); // Fire Truck Type [2] 133
	vicecar[3] = AddStaticVehicleEx(426,153.8474,-1750.8491,4.7797,359.7277,0,0,30000); // La Vice Premier 134
	//-------------------------------------------------------------------------------------------
	rentcar[0] = AddStaticVehicleEx(602,1681.5526,-1035.9557,23.6389,180,123,92,30000); // Rent car 135
	rentcar[1] = AddStaticVehicleEx(602,1685.3273,-1035.4058,23.6409,180,101,101,30000); // Rent car 136
	rentcar[2] = AddStaticVehicleEx(424,1689.9888,-1035.6348,23.6384,180,83,110,30000); // Rent car 137
	rentcar[3] = AddStaticVehicleEx(424,1694.3981,-1034.7706,23.6860,180,74,74,30000); // Rent car 138
	rentcar[4] = AddStaticVehicleEx(518,1703.3409,-1044.8248,23.6857,0,91,91,30000); // Rent car 139
	rentcar[5] = AddStaticVehicleEx(518,1712.7332,-1034.9132,23.6933,180,41,41,30000); // Rent car 140
	rentcar[6] = AddStaticVehicleEx(402,1690.2993,-1044.3937,23.5577,0,10,1,30000); // Rent car 141
	rentcar[7] = AddStaticVehicleEx(402,1681.0250,-1044.6152,23.5528,0,36,1,30000); // Rent car 142
	rentcar[8] = AddStaticVehicleEx(589,1703.0122,-1035.1486,23.5598,180,45,1,30000); // Rent car 143
	rentcar[9] = AddStaticVehicleEx(589,1698.9230,-1044.6398,23.9990,0,114,114,30000); // Rent car 144
	rentcar[10] = AddStaticVehicleEx(585,1707.8655,-1035.1423,24.0034,180,95,95,30000); // Rent car 145
	rentcar[11] = AddStaticVehicleEx(585,1698.7041,-1034.9835,23.9997,180,61,61,30000); // Rent car 146
	rentcar[12] = AddStaticVehicleEx(587,1685.3434,-1044.4137,23.9994,0,119,119,30000); // Rent car 147
	rentcar[13] = AddStaticVehicleEx(587,1694.5468,-1044.4786,23.6760,0,92,1,30000); // Rent car 148
	rentcar[14] = AddStaticVehicleEx(565,1707.9614,-1044.8055,23.6739,0,109,1,30000); // Rent car 149
	rentcar[15] = AddStaticVehicleEx(565,1712.5034,-1044.1735,23.6731,0,11,1,30000); // Rent car 150
	rentcar[16] = AddStaticVehicleEx(579,1709.2091,-1061.1398,23.7847,180,109,1,30000); // Rent car 151
	rentcar[17] = AddStaticVehicleEx(579,1700.3168,-1060.6760,23.7848,180,4,1,30000); // Rent car 152
	rentcar[18] = AddStaticVehicleEx(400,1717.9724,-1069.8695,23.7848,0,30,1,30000); // Rent car 153
	rentcar[19] = AddStaticVehicleEx(400,1691.3545,-1069.6636,23.7849,0,91,1,30000); // Rent car 154
	//-------------------------------------------------------------------------------------------
	harvest[0] = AddStaticVehicleEx(532,-387.4058,-1476.6927,26.7035,265.6719,0,0,30000); // Harvest 155
	harvest[1] = AddStaticVehicleEx(532,-382.8609,-1465.2964,26.7162,262.4081,0,0,30000); // Harvest 156
	harvest[2] = AddStaticVehicleEx(532,-392.8095,-1487.2607,26.3314,268.0157,0,0,30000); // Harvest 157
	harvest[3] = AddStaticVehicleEx(532,-399.6307,-1500.4774,25.4502,265.1973,0,0,30000); // Harvest 158
	//-------------------------------------------------------------------------------------------
	drugharvest[0] = AddStaticVehicleEx(532,-54.1143,86.1869,4.0927,246.1964,16,0,30000); // Drug harvest 159
	drugharvest[1] =AddStaticVehicleEx(532,-39.0122,-19.7210,4.0923,66.2487,16,0,30000); // Drug harvest 160
	drugharvest[2] =AddStaticVehicleEx(532,-34.2867,-9.5510,4.0883,62.7305,16,0,30000); // Drug harvest 161
	drugharvest[3] =AddStaticVehicleEx(532,-83.7403,-17.7843,4.0917,340.3535,16,0,30000); // Drug harvest 162
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(442,1097.7876,-1327.8087,13.1820,2.3556,3,13,30000); // Drugs smuggler car 163
	AddStaticVehicleEx(442,1110.4362,-1327.9688,13.1654,1.1852,3,13,30000); // Drugs smuggler car 164
	AddStaticVehicleEx(442,1123.7722,-1327.3230,13.2222,359.7142,3,13,30000); // Drugs smuggler car 165
	//-------------------------------------------------------------------------------------------
	surenoscar[3] = AddStaticVehicleEx(567,1826.8661,-2031.1033,13.0625,180.4212,93,93,30000); // Surenos Car 2 166
	//-------------------------------------------------------------------------------------------
	surenoscar[4] = AddStaticVehicleEx(471,1806.3488,-2009.0200,13.2220,89.1721,93,93,30000); // Surenos Quad 167
	//-------------------------------------------------------------------------------------------
	governcar[4] = AddStaticVehicleEx(487,1902.4270,-2628.4958,13.7092,62.7501,0,0,30000); // Government Helicopter 168
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(574,1668.6692,-1896.1118,13.2720,268.0269,26,26,30000); // Street sweeper 169
	AddStaticVehicleEx(574,1668.7383,-1891.4990,13.2720,270.7320,26,26,30000); // Street sweeper 170
	AddStaticVehicleEx(574,1668.7280,-1886.8180,13.2720,268.9658,26,26,30000); // Street sweeper 171
	//-------------------------------------------------------------------------------------------
	yamaguchicar[0] = AddStaticVehicleEx(409,660.0489,-1283.0696,13.3435,358.8616,3,0,30000); // Yamaguchi Limo
	yamaguchicar[1] = AddStaticVehicleEx(477,677.2945,-1303.7924,13.3813,89.0855,3,0,30000); // Yamaguchi ZR-350
	yamaguchicar[2] = AddStaticVehicleEx(560,677.8538,-1297.9611,13.3237,88.4905,3,0,30000); // Yamaguchi Sultan 1
	yamaguchicar[3] = AddStaticVehicleEx(560,670.5880,-1283.5927,13.2531,0.1076,3,0,30000); // Yamaguchi Sultan 2
	yamaguchicar[4] = AddStaticVehicleEx(541,660.3167,-1266.7985,13.1698,0.9612,3,0,30000); // Yamaguchi Bullet 1
	yamaguchicar[5] = AddStaticVehicleEx(541,660.1972,-1261.0837,13.1716,1.2979,3,0,30000); // Yamaguchi Bullet 2
	yamaguchicar[6] = AddStaticVehicleEx(521,672.7811,-1265.8210,13.2048,88.7814,3,3,30000); // Yamaguchi FCR-300 1
	yamaguchicar[7] = AddStaticVehicleEx(521,672.7515,-1267.3486,13.2139,89.9569,3,0,30000); // Yamaguchi FCR-300 2
	yamaguchicar[8] = AddStaticVehicleEx(521,672.7234,-1269.0427,13.2050,91.2190,3,3,30000); // Yamaguchi FCR-300 3
	yamaguchicar[9] = AddStaticVehicleEx(521,672.6326,-1270.8228,13.2140,91.7205,3,0,30000); // Yamaguchi FCR-300 4
	yamaguchicar[10] = AddStaticVehicleEx(428,674.4381,-1244.4094,14.7676,320.7266,3,0,30000); // Yamaguchi Securicar
	yamaguchicar[11] = AddStaticVehicleEx(572,736.1734,-1246.8975,13.1329,359.9393,3,0,30000); // Yamaguchi Mower
	yamaguchicar[12] = AddStaticVehicleEx(487,766.1458,-1212.9816,13.7234,90.1444,3,0,30000); // Yamaguchi Helicopter
	bratvacar[0] = AddStaticVehicleEx(521,1240.7253,-2033.0615,59.5460,270.7889,0,0,30000); // Bratva Bike 178
	bratvacar[1] = AddStaticVehicleEx(521,1240.3286,-2031.1663,59.5317,268.5302,0,0,30000); // Bratva Bike 2 179
	bratvacar[2] = AddStaticVehicleEx(545,1244.0236,-2022.7377,59.6055,180.3637,1,115,30000); // Bratva Boss Car 180
	bratvacar[3] = AddStaticVehicleEx(411,1276.6550,-2044.6598,58.7636,269.1467,1,1,30000); // Bratva Car 1 181
	bratvacar[4] = AddStaticVehicleEx(560,1276.8871,-2041.3832,58.7481,269.5363,0,0,30000); // Bratva Car 2 182
	bratvacar[5] = AddStaticVehicleEx(560,1276.8864,-2037.7959,58.7351,268.8126,0,0,30000); // Bratva Car 3 183
 //-------------------------------------------------------------------------------------------

	
	
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	SetPlayerInterior(playerid,0);
	TogglePlayerClock(playerid,0);
 	ResetPlayerMoney(playerid);
	GivePlayerMoney(playerid, 30000);
	GivePlayerWeapon(playerid,WEAPON_COLT45,100);
	GivePlayerWeapon(playerid, 31, 9999);
	GivePlayerWeapon(playerid, 30, 9999);
	GivePlayerWeapon(playerid, 28, 9999);
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
  new playercash;

	if(killerid == INVALID_PLAYER_ID) {
        ResetPlayerMoney(playerid);
	} else {
		playercash = GetPlayerMoney(playerid);
		if(playercash > 0)  {
			GivePlayerMoney(killerid, playercash);
			ResetPlayerMoney(playerid);
		}
	return 1;
}


public OnPlayerUpdate(playerid)
{

           #define blue 0x375FFFFF

	// No jetpacks allowed
	if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
	    Kick(playerid);
	    SendClientMessage(playerid,blue,"You Mustn't Use JetPack");
	    return 0;
	}
	return 1;
}
what is the problem with this?
Reply
#2

Why do you just paste a code here without any explanation and expect from other users to try to find an undescribed problem in the whole code?
Explain the problem in detail the next time or at least post the compiler errors.

However, there is a problem in the very first lines, remove the #else and #endif, as you do not have a #if before.
And you forgot to close brackets } after the main() function and after the last else in OnPlayerConnect.
Reply
#3

i was creating my first gm and i was put some things from the other gm to mine
such as: anti jetpack from grand larceny i put it to my gm
and send to all player message if any new on join from lrp gm


when i compiled it

said:
Code:
F:\Fun and Games server\filterscripts\Freeroam.pwn(16) : error 029: invalid expression, assumed zero
F:\Fun and Games server\filterscripts\Freeroam.pwn(16) : error 004: function "OnPlayerConnect" is not implemented
F:\Fun and Games server\filterscripts\Freeroam.pwn(19) : error 017: undefined symbol "playerid"
F:\Fun and Games server\filterscripts\Freeroam.pwn(20) : error 017: undefined symbol "playerid"
F:\Fun and Games server\filterscripts\Freeroam.pwn(24) : error 017: undefined symbol "string"
F:\Fun and Games server\filterscripts\Freeroam.pwn(24) : error 017: undefined symbol "string"
F:\Fun and Games server\filterscripts\Freeroam.pwn(24) : error 029: invalid expression, assumed zero
F:\Fun and Games server\filterscripts\Freeroam.pwn(24) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
those all the informations about my problem


and plz tell me how to fix the problem or any one cop paste gm and fix it fix those problems without delete things



here the gm


Code:
#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"
#pragma tabsize 0



main()
{
	print("\n----------------------------------");
	print(" Fun and Games server By Misho");
	print("----------------------------------\n");
	
	public OnPlayerConnect(playerid);
	{

	GameTextForPlayer(playerid,"~w~Welcome to Fun and Games",3000,4);
  	SendClientMessage(playerid,COLOR_WHITE,"Welcome to Fun and Games");
  	

  	
  			format(string,sizeof(string),"[INFO]: %s (%d) has joined Fun and Games. (%s)", plname, playerid,playersip);
		if (strlen(pIPs) < 3) SendIP = 0;
		else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
		else
		{



	return 1;
}




public OnGameModeInit()
{

SetGameModeText("Freeroam/Stunts/Minigames/gangs");
AddPlayerClass(19,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(7,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(115,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(107,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(104,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(102,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(108,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(109,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(123,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(120,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(100,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(124,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(113,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(287,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(286,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(285,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(276,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(195,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(190,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(191,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(192,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(193,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(194,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(138,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(154,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(162,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(33,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(90,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(178,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(23,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(167,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(179,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(264,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(137,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(29,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(21,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(40,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(93,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
	//-------------------------------------------------------------------------------------------
	armycar[0] = AddStaticVehicleEx(598,2779.3843,-2434.2644,13.3568,88.5203,99,1,30000); // Army police 1
	armycar[1] = AddStaticVehicleEx(598,2779.4299,-2439.7708,13.3572,88.1692,99,1,30000); // Army police 2
	armycar[2] = AddStaticVehicleEx(598,2779.1882,-2471.9214,13.3576,86.6550,99,1,30000); // Army police 3
	armycar[3] = AddStaticVehicleEx(598,2779.1497,-2477.8547,13.3590,86.9500,99,1,30000); // Army police 4
	armycar[4] = AddStaticVehicleEx(432,2791.3584,-2494.2971,13.6588,89.3376,43,0,30000); // Army tank 5
	armycar[5] = AddStaticVehicleEx(470,2792.0173,-2455.8245,14.0688,90,43,0,30000); // Army patriot 6
	armycar[6] = AddStaticVehicleEx(470,2793.1680,-2418.1855,13.6259,88.3914,-1, -1, 30000); // Patriot 7
	armycar[7] = AddStaticVehicleEx(470,2785.0979,-2417.6987,13.6273,87.4559, -1, -1, 30000); //Patriot 8
	armycar[8] = AddStaticVehicleEx(433,2781.4146,-2455.5208,14.0714,90,43,0,30000); // Army truck 9
	armycar[9] = AddStaticVehicleEx(430,2698.8132,-2311.0671,-0.2161,87.3657,-1, -1, 30000); // Army boat 10
	armycar[10] = AddStaticVehicleEx(430,2722.9766,-2311.2756,-0.3360,89.2799,-1, -1, 30000); // Army boat 11
	//-------------------------------------------------------------------------------------------
 	governcar[0] = AddStaticVehicleEx(405,1406.93,-1790.2,13.3,90, 0, 0, 30000); // Mayor security 12
	governcar[1] = AddStaticVehicleEx(405,1406.9,-1793.8,13.3,90, 0, 0, 30000); // Mayor security 13
	governcar[2] = AddStaticVehicleEx(405,1406.7,-1782.16,13.3,90, 0, 0, 30000); // Mayor security 14
	governcar[3] = AddStaticVehicleEx(409,1405.87,-1785.96,13.3,90,1,1,30000); // Mayor stretch 15
	//-------------------------------------------------------------------------------------------
	copcar[0] = AddStaticVehicleEx(599,616.1244,-601.7048,17.4214,271.5325, -1, -1, 30000); // Cop cruiser (Dillimore) 16
	vicecar[0] = AddStaticVehicleEx(426,158.4755,-1751.1315,4.6460,1.3559,0,0, 30000); // La Vice Premier 17
	vicecar[1] = AddStaticVehicleEx(426,158.3176,-1758.2914,4.4283,356.8665,0,0, 30000); // La Vice Premier 18
	copcar[1] = AddStaticVehicleEx(596,1574.4703,-1710.9795,5.6115,0.4220, -1, -1, 30000); // Cop cruiser 19
	copcar[2] = AddStaticVehicleEx(596,1587.4816,-1710.3594,5.6104,358.9421,-1, -1, 30000); // Cop cruiser 20
	copcar[3] = AddStaticVehicleEx(596,1595.6578,-1710.9442,5.6119,359.6335,0,1,30000); // Cop cruiser 21
    copcar[4] = AddStaticVehicleEx(596,1545.7845,-1684.4004,5.6342,271.1593,0,1,30000); // Cop cruiser 22
    copcar[5] = AddStaticVehicleEx(596,1558.7819,-1710.9503,5.6119,1.1862,0,1,30000); // Cop cruiser 23
    copcar[6] = AddStaticVehicleEx(596,1601.8564,-1704.1805,5.6110,88.9959,-1,-1,30000); // Cop cruiser 24
	copcar[7] = AddStaticVehicleEx(596,1600.9231,-1691.9321,5.6113,91.6221,-1,-1,30000); // Cop cruiser 25
	copcar[8] = AddStaticVehicleEx(596,1600.4153,-1687.9385,5.6118,90.7431,-1,-1,30000); // Cop cruiser 26
	copcar[9] = AddStaticVehicleEx(596,1529.6339,-1683.7720,5.6124,270.5692, -1, -1, 30000); // Cop cruiser 27
	copcar[10] = AddStaticVehicleEx(596,1529.5374,-1688.0181,5.6114,270.0886, -1, -1, 30000); // Cop cruiser 28
	copcar[11] = AddStaticVehicleEx(523,1557.9637,-1694.5964,5.4673,226.4766,-1,-1,30000); // Police moto 29
    copcar[12] = AddStaticVehicleEx(523,1557.9060,-1697.4153,5.4689,220.9842,-1,-1,30000); // Police moto 30
    copcar[13] = AddStaticVehicleEx(523,1558.1632,-1691.8335,5.4596,224.7542,-1,-1,30000); // Police moto 31
	copcar[14] = AddStaticVehicleEx(599,1584.6510,-1671.4448,6.0541,271.5708,0,1,30000); // Police ranger 32
    copcar[15] = AddStaticVehicleEx(599,1584.7875,-1667.6138,6.0592,272.0818,0,1,30000); // Police ranger 33
	copcar[16] = AddStaticVehicleEx(599,1545.3936,-1667.7957,6.0809,87.7152,-1,-1,30000); // Police ranger 34
	copcar[17] = AddStaticVehicleEx(599,1545.0044,-1671.9329,6.0791,91.5492,-1,-1,30000); // Police ranger 35
	swatcar[0] = AddStaticVehicleEx(427,1544.2870,-1659.3522,5.6119,88.5025,0,125,30000);// Police SWAT enforcer 36
	swatcar[1] = AddStaticVehicleEx(601,1544.6962,-1663.2948,6.0225,88.9357,-1,-1,30000); // Police SWAT APC 37
	copcar[18] = AddStaticVehicleEx(497,1566.6628,-1653.8688,28.5752,91.9445,0,1,30000);// Police maverick 38
	//-------------------------------------------------------------------------------------------
	tacticalcar[0] = AddStaticVehicleEx(490,1514.1959,-1478.1108,9.6270,270.0, 125, 0, 30000); // FBI rancher 39
	tacticalcar[1] = AddStaticVehicleEx(490,1514.1621,-1474.2642,9.6278,270,125,0,30000); // FBI rancher 40
	tacticalcar[2] = AddStaticVehicleEx(426,1525.4424,-1461.3640,9.2431,0,125,0,30000); // FBI elegant 41
	fbicar[0] = AddStaticVehicleEx(426,1520.8752,-1461.1650,9.2430,0,0,0,30000); // FBI elegant 42
	fbicar[1] = AddStaticVehicleEx(426,1516.1973,-1461.1393,9.2430,0,0,0,30000); // FBI elegant 43
	//-------------------------------------------------------------------------------------------
	vicecar[2] = AddStaticVehicleEx(426,153.8499,-1758.2358,4.5786,358.2814,0,0, 30000); // La Vice Premier 44
	AddStaticVehicleEx(572,2558.3201,2653.9070,10.5473,193.3834,0,0, 30000); // None 45
	AddStaticVehicleEx(572,2564.2375,2649.3052,10.5265,207.0189,0,0, 30000); // None 46
	AddStaticVehicleEx(572,2574.2048,2649.4514,10.5474,219.5219,0,0, 30000); // None 47
	AddStaticVehicleEx(572,2578.7847,2655.4546,10.5912,233.9002,0,0, 30000); // None 48
	AddStaticVehicleEx(572,2584.6228,2660.0879,10.5919,76.5837,0,0, 30000); // None 49
	AddStaticVehicleEx(572,2584.1938,2665.9053,10.5510,109.2745,0,0, 30000); // None 50
	AddStaticVehicleEx(572,2562.7419,2664.0110,10.6135,139.6290,0,0, 30000); // None 51
	//-------------------------------------------------------------------------------------------
	ambulance[0] = AddStaticVehicleEx(416,1177.35,-1339.24,13.66,269.58, -1, -1, 30000); // Ambulance 52
	ambulance[1] = AddStaticVehicleEx(416,1176.98,-1308.65,13.62,269.33, -1, -1, 30000); // Ambulance 53
	ambulance[2] = AddStaticVehicleEx(416,1189.87,-1357.14,13.21,180.78, -1, -1, 30000); // Ambulance 54
	AddStaticVehicleEx(555,2558.3201,2648.9070,10.5473,0.42, -1, -1, 30000); // Windsor
	//-------------------------------------------------------------------------------------------
	hitmencar[0] = AddStaticVehicleEx(467,1067.1295,-295.5681,73.7826,179.6040, 90, -1, 30000); // Hitman oceanic 56
	hitmencar[1] = AddStaticVehicleEx(467,1077.3829,-295.1148,73.7812,180.2754, 90, -1, 30000); // Hitman oceanic 57
	hitmencar[2] = AddStaticVehicleEx(467,1071.9189,-294.9166,73.7250,178.9444,90, -1, 30000); // Hitman oceanic 58
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 30000); // Bus 59
	AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 30000); // Bus 60
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(409,1789.4137,-1932.6389,13.1079,357.7568,0,0,30000); // YCAT Co. Limo 61
	AddStaticVehicleEx(421,1803.6373,-1916.4673,13.1141,89.0899,0,0,30000); // YCAT Co. Washington 62
	AddStaticVehicleEx(421,1803.6617,-1925.0874,13.1319,266.7457,0,0,30000); // YCAT Co. Washington 63
	AddStaticVehicleEx(420,1800.6991,-1886.0063,13.1462,268.8892,-1,-1,30000); // YCAT Co.Taxi 64
	AddStaticVehicleEx(420,1777.9976,-1886.0128,13.1922,267.6736,-1,-1,30000); // YCAT Co. Taxi 65
	AddStaticVehicleEx(420,1803.7118,-1906.2510,13.2024,85.1059,-1,-1,30000); // YCAT Co. Taxi 66
	AddStaticVehicleEx(420,1777.3717,-1896.7965,13.1916,270.3214,-1,-1,30000); // YCAT Co. Taxi 67
	AddStaticVehicleEx(420,1796.4906,-1932.9441,13.1914,357.7162,-1,-1,30000); // YCAT Co. Taxi 68
	AddStaticVehicleEx(420,1780.8253,-1931.8109,13.1295,358.2670,-1,-1,30000); // YCAT Co. Taxi 69
	AddStaticVehicleEx(420,1777.6808,-1913.4772,13.1285,267.0958,-1,-1,30000); // YCAT Co. Taxi 70
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(582,1795.24,-1284.89,13.44,125.29,125,125,30000); // News van 71
	AddStaticVehicleEx(582,1797.18,-1291.08,13.27,108.95,125,125,30000); // News van 72
	AddStaticVehicleEx(488,1545.4849,-1353.9330,329.6510,185.4584,125,125,30000); // News Chopper 73
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(525,2078.74,-2006.38,13.25,271.64,0,0,30000); // Towcar 74
	AddStaticVehicleEx(525,2079.06,-2019.84,13.25,269.24,0,0,30000); // Towcar 75
	AddStaticVehicleEx(525,2097.83,-2006.09,13.25,44.15,0,0,30000); // Towcar 76
	AddStaticVehicleEx(525,2106.72,-2015.25,13.25,44.15,0,0,30000); // Towcar 77
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(571,2286.2141,-2354.5000,12.8306,225.8705,-1,-1,30000); // kart 78
	AddStaticVehicleEx(571,2279.9412,-2348.4141,12.8312,225.8585,-1,-1,30000); // kart 79
	AddStaticVehicleEx(571,2291.7932,-2345.5356,12.8305,227.3060,-1,-1,30000); // kart 80
	AddStaticVehicleEx(571,2287.5615,-2341.6433,12.8306,226.5350,-1,-1,30000); // kart 81
	AddStaticVehicleEx(571,2299.6785,-2338.3186,12.8307,224.3563,-1,-1,30000); // kart 82
	AddStaticVehicleEx(571,2295.3887,-2334.9448,12.8307,227.9102,-1,-1,30000); // kart 83
	AddStaticVehicleEx(494,-1401.0436,-210.0052,1042.9913,1.6623,1,0,30000); //hotring 84
	AddStaticVehicleEx(494,-1400.4019,-219.9365,1043.0348,5.3554,1,3,30000); //hotring 85
	AddStaticVehicleEx(494,-1394.4932,-207.7917,1042.9963,3.6872,0,6,30000); //hotring 86
	AddStaticVehicleEx(494,-1393.7854,-217.9354,1043.0325,2.9556,1,2,30000); //hotring 87
	AddStaticVehicleEx(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,30000); //bike 88
	AddStaticVehicleEx(468,-1433.1708,-592.4930,1055.6533,92.4067,-1,-1,30000); //bike 89
	AddStaticVehicleEx(468,-1448.5325,-584.4943,1055.4949,95.5400,-1,-1,30000); //bike 90
	AddStaticVehicleEx(468,-1434.8973,-585.1266,1055.2488,91.1533,-1,-1,30000); //bike 91
	AddStaticVehicleEx(468,-1449.2814,1610.7823,1052.5313,272.9406,-1,-1,30000); // bike 92
	AddStaticVehicleEx(468,-1453.8767,1611.2418,1052.5313,89.0355,-1,-1,30000); // bike 93
	AddStaticVehicleEx(468,-1454.4746,1614.3342,1052.5313,86.8422,-1,-1,30000); // bike 94
	AddStaticVehicleEx(468,-1449.5795,1614.0684,1052.5313,269.2039,-1,-1,30000); // bike 95
	//-------------------------------------------------------------------------------------------
	surenoscar[0] = AddStaticVehicleEx(571,1452.7358,-844.5006,83.8422,179.7695,93,93,30000); // Surenos Quad 2 96
	signatracar[0] = AddStaticVehicleEx(491,1252.7358,-804.5006,83.8622,179.7695,6,6,30000); // la Famiglia Sinatra Car 97
	signatracar[1] = AddStaticVehicleEx(482,1241.3325,-814.7080,83.8642,183.2531,6,6,30000); // la Famiglia Sinatra Van 98
	signatracar[2] = AddStaticVehicleEx(429,1281.1151,-830.0188,82.8608,90.0674,6,0,30000); // la Famiglia Sinatra Sport Car 99
	surenoscar[1] = AddStaticVehicleEx(482,1819.1561,-2020.5332,13.0625,179.1689,93,93,3000); // Van Of Surenos 100
	surenoscar[2] = AddStaticVehicleEx(567,1826.7920,-2021.0032,13.0625,180.4209,93,93,3000); // Surenos Car 101
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(448,2122,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 102
	AddStaticVehicleEx(448,2120,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 103
	AddStaticVehicleEx(448,2118,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 104
	AddStaticVehicleEx(448,2116,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 105
	AddStaticVehicleEx(448,2114,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 106
	AddStaticVehicleEx(448,2112,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 107
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(456,2508.9116,-2111.7759,13.7206,0,-1,-1, 30000); // Component Truck Yankee 108
	AddStaticVehicleEx(456,2484.5356,-2111.7759,13.7196,0,-1,-1,30000); // Component Truck Yankee 109
	AddStaticVehicleEx(440,2529.0413,-2085.3999,13.6651,90,-1,-1,30000); // Component Truck Rumpo 110
	AddStaticVehicleEx(440,2528.9482,-2092.6104,13.6631,90,-1,-1,30000); // Component Truck Rumpo 111
	//-------------------------------------------------------------------------------------------
	rentbike[0] = AddStaticVehicleEx(461,1556.2643,-2361.6479,13.1627,6.6305,39,39,30000); // Mountain bike 112
	rentbike[1] = AddStaticVehicleEx(461,1552.8982,-2361.8359,13.1623,10.5426,16,16,30000); // Mountain bike 113
	rentbike[2] = AddStaticVehicleEx(463,1549.1460,-2362.0383,13.1626,5.5903,6,6,30000); // Mountain bike 114
	rentbike[3] = AddStaticVehicleEx(463,1546.0422,-2362.0017,13.1630,6.6997,5,5,30000); // Mountain bike 115
	rentbike[4] = AddStaticVehicleEx(581,1542.7434,-2361.9631,13.1626,15.3254,2,2,30000); // Mountain bike 116
	rentbike[5] = AddStaticVehicleEx(581,1539.4385,-2362.1431,13.1625,11.8010,43,43,30000); // Mountain bike 117
	rentbike[6] = AddStaticVehicleEx(586,1536.1389,-2362.0837,13.1626,12.2595,46,46,30000); // Mountain bike 118
	rentbike[7] = AddStaticVehicleEx(586,1532.6709,-2362.2327,13.1631,8.4654,39,39,30000); // Mountain bike 119
	rentbike[8] = AddStaticVehicleEx(468,1529.8967,-2362.2913,13.1633,3.8305,28,28,30000); // Mountain bike 120
	rentbike[9] = AddStaticVehicleEx(468,1526.7921,-2362.0647,13.1630,8.0961,16,16,30000); // Mountain bike 121
	rentbike[10] = AddStaticVehicleEx(462,1561.2104,-2338.5303,13.1464,107.7252,13,13,30000); // Faggio 122
	rentbike[11] = AddStaticVehicleEx(462,1561.0819,-2335.0010,13.1470,94.8441,14,14,30000); // Faggio 123
	rentbike[12] = AddStaticVehicleEx(462,1560.7794,-2331.9216,13.1464,96.7927,1,2,30000); // Faggio 124
	rentbike[13] = AddStaticVehicleEx(462,1560.7391,-2328.2046,13.1470,92.0937,2,1,30000); // Faggio 125
	rentbike[14] = AddStaticVehicleEx(462,1560.9022,-2325.0593,13.1462,91.0980,1,3,30000); // Faggio 126
	rentbike[15] = AddStaticVehicleEx(462,1561.0276,-2321.8657,13.1475,95.4715,3,1,30000); // Faggio 127
	rentbike[16] = AddStaticVehicleEx(462,1561.0735,-2318.5796,13.1443,97.1012,10,10,30000); // Faggio 128
	rentbike[17] =	AddStaticVehicleEx(462,1560.9514,-2315.0532,13.1465,94.5565,12,12,30000); // Faggio 129
	rentbike[18] = AddStaticVehicleEx(462,1560.8143,-2311.6104,13.1455,95.1219,13,13,30000); // Faggio 130
	//-------------------------------------------------------------------------------------------
	fdcar[0] = AddStaticVehicleEx(407,1005.7731,-1459.2805,13.6780,359.2671,-1,-1,30000); // Fire Truck Type [1] 131
	fdcar[1] = AddStaticVehicleEx(407,1013.3235,-1459.5682,13.6819,1.0221,-1,-1,30000); // Fire Truck Type [1] 132
	fdcar[2] = AddStaticVehicleEx(544,988.6091,-1453.2679,13.7752,267.6749,-1,-1,30000); // Fire Truck Type [2] 133
	vicecar[3] = AddStaticVehicleEx(426,153.8474,-1750.8491,4.7797,359.7277,0,0,30000); // La Vice Premier 134
	//-------------------------------------------------------------------------------------------
	rentcar[0] = AddStaticVehicleEx(602,1681.5526,-1035.9557,23.6389,180,123,92,30000); // Rent car 135
	rentcar[1] = AddStaticVehicleEx(602,1685.3273,-1035.4058,23.6409,180,101,101,30000); // Rent car 136
	rentcar[2] = AddStaticVehicleEx(424,1689.9888,-1035.6348,23.6384,180,83,110,30000); // Rent car 137
	rentcar[3] = AddStaticVehicleEx(424,1694.3981,-1034.7706,23.6860,180,74,74,30000); // Rent car 138
	rentcar[4] = AddStaticVehicleEx(518,1703.3409,-1044.8248,23.6857,0,91,91,30000); // Rent car 139
	rentcar[5] = AddStaticVehicleEx(518,1712.7332,-1034.9132,23.6933,180,41,41,30000); // Rent car 140
	rentcar[6] = AddStaticVehicleEx(402,1690.2993,-1044.3937,23.5577,0,10,1,30000); // Rent car 141
	rentcar[7] = AddStaticVehicleEx(402,1681.0250,-1044.6152,23.5528,0,36,1,30000); // Rent car 142
	rentcar[8] = AddStaticVehicleEx(589,1703.0122,-1035.1486,23.5598,180,45,1,30000); // Rent car 143
	rentcar[9] = AddStaticVehicleEx(589,1698.9230,-1044.6398,23.9990,0,114,114,30000); // Rent car 144
	rentcar[10] = AddStaticVehicleEx(585,1707.8655,-1035.1423,24.0034,180,95,95,30000); // Rent car 145
	rentcar[11] = AddStaticVehicleEx(585,1698.7041,-1034.9835,23.9997,180,61,61,30000); // Rent car 146
	rentcar[12] = AddStaticVehicleEx(587,1685.3434,-1044.4137,23.9994,0,119,119,30000); // Rent car 147
	rentcar[13] = AddStaticVehicleEx(587,1694.5468,-1044.4786,23.6760,0,92,1,30000); // Rent car 148
	rentcar[14] = AddStaticVehicleEx(565,1707.9614,-1044.8055,23.6739,0,109,1,30000); // Rent car 149
	rentcar[15] = AddStaticVehicleEx(565,1712.5034,-1044.1735,23.6731,0,11,1,30000); // Rent car 150
	rentcar[16] = AddStaticVehicleEx(579,1709.2091,-1061.1398,23.7847,180,109,1,30000); // Rent car 151
	rentcar[17] = AddStaticVehicleEx(579,1700.3168,-1060.6760,23.7848,180,4,1,30000); // Rent car 152
	rentcar[18] = AddStaticVehicleEx(400,1717.9724,-1069.8695,23.7848,0,30,1,30000); // Rent car 153
	rentcar[19] = AddStaticVehicleEx(400,1691.3545,-1069.6636,23.7849,0,91,1,30000); // Rent car 154
	//-------------------------------------------------------------------------------------------
	harvest[0] = AddStaticVehicleEx(532,-387.4058,-1476.6927,26.7035,265.6719,0,0,30000); // Harvest 155
	harvest[1] = AddStaticVehicleEx(532,-382.8609,-1465.2964,26.7162,262.4081,0,0,30000); // Harvest 156
	harvest[2] = AddStaticVehicleEx(532,-392.8095,-1487.2607,26.3314,268.0157,0,0,30000); // Harvest 157
	harvest[3] = AddStaticVehicleEx(532,-399.6307,-1500.4774,25.4502,265.1973,0,0,30000); // Harvest 158
	//-------------------------------------------------------------------------------------------
	drugharvest[0] = AddStaticVehicleEx(532,-54.1143,86.1869,4.0927,246.1964,16,0,30000); // Drug harvest 159
	drugharvest[1] =AddStaticVehicleEx(532,-39.0122,-19.7210,4.0923,66.2487,16,0,30000); // Drug harvest 160
	drugharvest[2] =AddStaticVehicleEx(532,-34.2867,-9.5510,4.0883,62.7305,16,0,30000); // Drug harvest 161
	drugharvest[3] =AddStaticVehicleEx(532,-83.7403,-17.7843,4.0917,340.3535,16,0,30000); // Drug harvest 162
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(442,1097.7876,-1327.8087,13.1820,2.3556,3,13,30000); // Drugs smuggler car 163
	AddStaticVehicleEx(442,1110.4362,-1327.9688,13.1654,1.1852,3,13,30000); // Drugs smuggler car 164
	AddStaticVehicleEx(442,1123.7722,-1327.3230,13.2222,359.7142,3,13,30000); // Drugs smuggler car 165
	//-------------------------------------------------------------------------------------------
	surenoscar[3] = AddStaticVehicleEx(567,1826.8661,-2031.1033,13.0625,180.4212,93,93,30000); // Surenos Car 2 166
	//-------------------------------------------------------------------------------------------
	surenoscar[4] = AddStaticVehicleEx(471,1806.3488,-2009.0200,13.2220,89.1721,93,93,30000); // Surenos Quad 167
	//-------------------------------------------------------------------------------------------
	governcar[4] = AddStaticVehicleEx(487,1902.4270,-2628.4958,13.7092,62.7501,0,0,30000); // Government Helicopter 168
	//-------------------------------------------------------------------------------------------
	AddStaticVehicleEx(574,1668.6692,-1896.1118,13.2720,268.0269,26,26,30000); // Street sweeper 169
	AddStaticVehicleEx(574,1668.7383,-1891.4990,13.2720,270.7320,26,26,30000); // Street sweeper 170
	AddStaticVehicleEx(574,1668.7280,-1886.8180,13.2720,268.9658,26,26,30000); // Street sweeper 171
	//-------------------------------------------------------------------------------------------
	yamaguchicar[0] = AddStaticVehicleEx(409,660.0489,-1283.0696,13.3435,358.8616,3,0,30000); // Yamaguchi Limo
	yamaguchicar[1] = AddStaticVehicleEx(477,677.2945,-1303.7924,13.3813,89.0855,3,0,30000); // Yamaguchi ZR-350
	yamaguchicar[2] = AddStaticVehicleEx(560,677.8538,-1297.9611,13.3237,88.4905,3,0,30000); // Yamaguchi Sultan 1
	yamaguchicar[3] = AddStaticVehicleEx(560,670.5880,-1283.5927,13.2531,0.1076,3,0,30000); // Yamaguchi Sultan 2
	yamaguchicar[4] = AddStaticVehicleEx(541,660.3167,-1266.7985,13.1698,0.9612,3,0,30000); // Yamaguchi Bullet 1
	yamaguchicar[5] = AddStaticVehicleEx(541,660.1972,-1261.0837,13.1716,1.2979,3,0,30000); // Yamaguchi Bullet 2
	yamaguchicar[6] = AddStaticVehicleEx(521,672.7811,-1265.8210,13.2048,88.7814,3,3,30000); // Yamaguchi FCR-300 1
	yamaguchicar[7] = AddStaticVehicleEx(521,672.7515,-1267.3486,13.2139,89.9569,3,0,30000); // Yamaguchi FCR-300 2
	yamaguchicar[8] = AddStaticVehicleEx(521,672.7234,-1269.0427,13.2050,91.2190,3,3,30000); // Yamaguchi FCR-300 3
	yamaguchicar[9] = AddStaticVehicleEx(521,672.6326,-1270.8228,13.2140,91.7205,3,0,30000); // Yamaguchi FCR-300 4
	yamaguchicar[10] = AddStaticVehicleEx(428,674.4381,-1244.4094,14.7676,320.7266,3,0,30000); // Yamaguchi Securicar
	yamaguchicar[11] = AddStaticVehicleEx(572,736.1734,-1246.8975,13.1329,359.9393,3,0,30000); // Yamaguchi Mower
	yamaguchicar[12] = AddStaticVehicleEx(487,766.1458,-1212.9816,13.7234,90.1444,3,0,30000); // Yamaguchi Helicopter
	bratvacar[0] = AddStaticVehicleEx(521,1240.7253,-2033.0615,59.5460,270.7889,0,0,30000); // Bratva Bike 178
	bratvacar[1] = AddStaticVehicleEx(521,1240.3286,-2031.1663,59.5317,268.5302,0,0,30000); // Bratva Bike 2 179
	bratvacar[2] = AddStaticVehicleEx(545,1244.0236,-2022.7377,59.6055,180.3637,1,115,30000); // Bratva Boss Car 180
	bratvacar[3] = AddStaticVehicleEx(411,1276.6550,-2044.6598,58.7636,269.1467,1,1,30000); // Bratva Car 1 181
	bratvacar[4] = AddStaticVehicleEx(560,1276.8871,-2041.3832,58.7481,269.5363,0,0,30000); // Bratva Car 2 182
	bratvacar[5] = AddStaticVehicleEx(560,1276.8864,-2037.7959,58.7351,268.8126,0,0,30000); // Bratva Car 3 183
 //-------------------------------------------------------------------------------------------

	
	
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}



public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	SetPlayerInterior(playerid,0);
	TogglePlayerClock(playerid,0);
 	ResetPlayerMoney(playerid);
	GivePlayerMoney(playerid, 30000);
	GivePlayerWeapon(playerid,WEAPON_COLT45,100);
	GivePlayerWeapon(playerid, 31, 9999);
	GivePlayerWeapon(playerid, 30, 9999);
	GivePlayerWeapon(playerid, 28, 9999);
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
  new playercash;

	if(killerid == INVALID_PLAYER_ID) {
        ResetPlayerMoney(playerid);
	} else {
		playercash = GetPlayerMoney(playerid);
		if(playercash > 0)  {
			GivePlayerMoney(killerid, playercash);
			ResetPlayerMoney(playerid);
		}
	return 1;
}


public OnPlayerUpdate(playerid)
{

           #define COLOR_RED 0xAA3333AA

	// No jetpacks allowed
	if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
	    Kick(playerid);
	    SendClientMessage(playerid,red,"You Mustn't Use JetPack");
	    return 0;
	}
	return 1;
}
Reply
#4

plz help
Reply
#5

I already told you whats wrong, re-read the very last sentence of my last post
Reply
#6

pawn Code:
main()
{
    print("\n----------------------------------");
    print(" Fun and Games server By Misho");
    print("----------------------------------\n");
   
    public OnPlayerConnect(playerid);
    {

    GameTextForPlayer(playerid,"~w~Welcome to Fun and Games",3000,4);
    SendClientMessage(playerid,COLOR_WHITE,"Welcome to Fun and Games");
   

   
            format(string,sizeof(string),"[INFO]: %s (%d) has joined Fun and Games. (%s)", plname, playerid,playersip);
        if (strlen(pIPs) < 3) SendIP = 0;
        else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
        else
        {



    return 1;
}
How are you gonna post this and not see any obvious things wrong with it. For one, you need to indent so code is easier to read and fix. What Mauzen said is right. You never closed a bracket after the main(). Public functions don't need a semicolon after their name either.
Reply
#7

pawn Code:
#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"
#pragma tabsize 0



main()
{
    print("\n----------------------------------");
    print(" Fun and Games server By Misho");
    print("----------------------------------\n");
   
    public OnPlayerConnect(playerid);
    {

    GameTextForPlayer(playerid,"~w~Welcome to Fun and Games",3000,4);
    SendClientMessage(playerid,COLOR_WHITE,"Welcome to Fun and Games");
    new string[128];

   
            format(string,sizeof(string),"[INFO]: %s (%d) has joined Fun and Games. (%s)", plname, playerid,playersip);
        if (strlen(pIPs) < 3) SendIP = 0;
        else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
        else
    return 1;
}




public OnGameModeInit()
{

SetGameModeText("Freeroam/Stunts/Minigames/gangs");
AddPlayerClass(19,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(7,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(115,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(107,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(104,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(102,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(108,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(109,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(123,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(120,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(100,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(124,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(113,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(287,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(286,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(285,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(276,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(195,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(190,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(191,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(192,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(193,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(194,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(138,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(154,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(162,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(33,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(90,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(178,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(23,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(167,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(179,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(264,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(137,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(29,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(21,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(40,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(93,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    //-------------------------------------------------------------------------------------------
    armycar[0] = AddStaticVehicleEx(598,2779.3843,-2434.2644,13.3568,88.5203,99,1,30000); // Army police 1
    armycar[1] = AddStaticVehicleEx(598,2779.4299,-2439.7708,13.3572,88.1692,99,1,30000); // Army police 2
    armycar[2] = AddStaticVehicleEx(598,2779.1882,-2471.9214,13.3576,86.6550,99,1,30000); // Army police 3
    armycar[3] = AddStaticVehicleEx(598,2779.1497,-2477.8547,13.3590,86.9500,99,1,30000); // Army police 4
    armycar[4] = AddStaticVehicleEx(432,2791.3584,-2494.2971,13.6588,89.3376,43,0,30000); // Army tank 5
    armycar[5] = AddStaticVehicleEx(470,2792.0173,-2455.8245,14.0688,90,43,0,30000); // Army patriot 6
    armycar[6] = AddStaticVehicleEx(470,2793.1680,-2418.1855,13.6259,88.3914,-1, -1, 30000); // Patriot 7
    armycar[7] = AddStaticVehicleEx(470,2785.0979,-2417.6987,13.6273,87.4559, -1, -1, 30000); //Patriot 8
    armycar[8] = AddStaticVehicleEx(433,2781.4146,-2455.5208,14.0714,90,43,0,30000); // Army truck 9
    armycar[9] = AddStaticVehicleEx(430,2698.8132,-2311.0671,-0.2161,87.3657,-1, -1, 30000); // Army boat 10
    armycar[10] = AddStaticVehicleEx(430,2722.9766,-2311.2756,-0.3360,89.2799,-1, -1, 30000); // Army boat 11
    //-------------------------------------------------------------------------------------------
    governcar[0] = AddStaticVehicleEx(405,1406.93,-1790.2,13.3,90, 0, 0, 30000); // Mayor security 12
    governcar[1] = AddStaticVehicleEx(405,1406.9,-1793.8,13.3,90, 0, 0, 30000); // Mayor security 13
    governcar[2] = AddStaticVehicleEx(405,1406.7,-1782.16,13.3,90, 0, 0, 30000); // Mayor security 14
    governcar[3] = AddStaticVehicleEx(409,1405.87,-1785.96,13.3,90,1,1,30000); // Mayor stretch 15
    //-------------------------------------------------------------------------------------------
    copcar[0] = AddStaticVehicleEx(599,616.1244,-601.7048,17.4214,271.5325, -1, -1, 30000); // Cop cruiser (Dillimore) 16
    vicecar[0] = AddStaticVehicleEx(426,158.4755,-1751.1315,4.6460,1.3559,0,0, 30000); // La Vice Premier 17
    vicecar[1] = AddStaticVehicleEx(426,158.3176,-1758.2914,4.4283,356.8665,0,0, 30000); // La Vice Premier 18
    copcar[1] = AddStaticVehicleEx(596,1574.4703,-1710.9795,5.6115,0.4220, -1, -1, 30000); // Cop cruiser 19
    copcar[2] = AddStaticVehicleEx(596,1587.4816,-1710.3594,5.6104,358.9421,-1, -1, 30000); // Cop cruiser 20
    copcar[3] = AddStaticVehicleEx(596,1595.6578,-1710.9442,5.6119,359.6335,0,1,30000); // Cop cruiser 21
    copcar[4] = AddStaticVehicleEx(596,1545.7845,-1684.4004,5.6342,271.1593,0,1,30000); // Cop cruiser 22
    copcar[5] = AddStaticVehicleEx(596,1558.7819,-1710.9503,5.6119,1.1862,0,1,30000); // Cop cruiser 23
    copcar[6] = AddStaticVehicleEx(596,1601.8564,-1704.1805,5.6110,88.9959,-1,-1,30000); // Cop cruiser 24
    copcar[7] = AddStaticVehicleEx(596,1600.9231,-1691.9321,5.6113,91.6221,-1,-1,30000); // Cop cruiser 25
    copcar[8] = AddStaticVehicleEx(596,1600.4153,-1687.9385,5.6118,90.7431,-1,-1,30000); // Cop cruiser 26
    copcar[9] = AddStaticVehicleEx(596,1529.6339,-1683.7720,5.6124,270.5692, -1, -1, 30000); // Cop cruiser 27
    copcar[10] = AddStaticVehicleEx(596,1529.5374,-1688.0181,5.6114,270.0886, -1, -1, 30000); // Cop cruiser 28
    copcar[11] = AddStaticVehicleEx(523,1557.9637,-1694.5964,5.4673,226.4766,-1,-1,30000); // Police moto 29
    copcar[12] = AddStaticVehicleEx(523,1557.9060,-1697.4153,5.4689,220.9842,-1,-1,30000); // Police moto 30
    copcar[13] = AddStaticVehicleEx(523,1558.1632,-1691.8335,5.4596,224.7542,-1,-1,30000); // Police moto 31
    copcar[14] = AddStaticVehicleEx(599,1584.6510,-1671.4448,6.0541,271.5708,0,1,30000); // Police ranger 32
    copcar[15] = AddStaticVehicleEx(599,1584.7875,-1667.6138,6.0592,272.0818,0,1,30000); // Police ranger 33
    copcar[16] = AddStaticVehicleEx(599,1545.3936,-1667.7957,6.0809,87.7152,-1,-1,30000); // Police ranger 34
    copcar[17] = AddStaticVehicleEx(599,1545.0044,-1671.9329,6.0791,91.5492,-1,-1,30000); // Police ranger 35
    swatcar[0] = AddStaticVehicleEx(427,1544.2870,-1659.3522,5.6119,88.5025,0,125,30000);// Police SWAT enforcer 36
    swatcar[1] = AddStaticVehicleEx(601,1544.6962,-1663.2948,6.0225,88.9357,-1,-1,30000); // Police SWAT APC 37
    copcar[18] = AddStaticVehicleEx(497,1566.6628,-1653.8688,28.5752,91.9445,0,1,30000);// Police maverick 38
    //-------------------------------------------------------------------------------------------
    tacticalcar[0] = AddStaticVehicleEx(490,1514.1959,-1478.1108,9.6270,270.0, 125, 0, 30000); // FBI rancher 39
    tacticalcar[1] = AddStaticVehicleEx(490,1514.1621,-1474.2642,9.6278,270,125,0,30000); // FBI rancher 40
    tacticalcar[2] = AddStaticVehicleEx(426,1525.4424,-1461.3640,9.2431,0,125,0,30000); // FBI elegant 41
    fbicar[0] = AddStaticVehicleEx(426,1520.8752,-1461.1650,9.2430,0,0,0,30000); // FBI elegant 42
    fbicar[1] = AddStaticVehicleEx(426,1516.1973,-1461.1393,9.2430,0,0,0,30000); // FBI elegant 43
    //-------------------------------------------------------------------------------------------
    vicecar[2] = AddStaticVehicleEx(426,153.8499,-1758.2358,4.5786,358.2814,0,0, 30000); // La Vice Premier 44
    AddStaticVehicleEx(572,2558.3201,2653.9070,10.5473,193.3834,0,0, 30000); // None 45
    AddStaticVehicleEx(572,2564.2375,2649.3052,10.5265,207.0189,0,0, 30000); // None 46
    AddStaticVehicleEx(572,2574.2048,2649.4514,10.5474,219.5219,0,0, 30000); // None 47
    AddStaticVehicleEx(572,2578.7847,2655.4546,10.5912,233.9002,0,0, 30000); // None 48
    AddStaticVehicleEx(572,2584.6228,2660.0879,10.5919,76.5837,0,0, 30000); // None 49
    AddStaticVehicleEx(572,2584.1938,2665.9053,10.5510,109.2745,0,0, 30000); // None 50
    AddStaticVehicleEx(572,2562.7419,2664.0110,10.6135,139.6290,0,0, 30000); // None 51
    //-------------------------------------------------------------------------------------------
    ambulance[0] = AddStaticVehicleEx(416,1177.35,-1339.24,13.66,269.58, -1, -1, 30000); // Ambulance 52
    ambulance[1] = AddStaticVehicleEx(416,1176.98,-1308.65,13.62,269.33, -1, -1, 30000); // Ambulance 53
    ambulance[2] = AddStaticVehicleEx(416,1189.87,-1357.14,13.21,180.78, -1, -1, 30000); // Ambulance 54
    AddStaticVehicleEx(555,2558.3201,2648.9070,10.5473,0.42, -1, -1, 30000); // Windsor
    //-------------------------------------------------------------------------------------------
    hitmencar[0] = AddStaticVehicleEx(467,1067.1295,-295.5681,73.7826,179.6040, 90, -1, 30000); // Hitman oceanic 56
    hitmencar[1] = AddStaticVehicleEx(467,1077.3829,-295.1148,73.7812,180.2754, 90, -1, 30000); // Hitman oceanic 57
    hitmencar[2] = AddStaticVehicleEx(467,1071.9189,-294.9166,73.7250,178.9444,90, -1, 30000); // Hitman oceanic 58
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 30000); // Bus 59
    AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 30000); // Bus 60
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(409,1789.4137,-1932.6389,13.1079,357.7568,0,0,30000); // YCAT Co. Limo 61
    AddStaticVehicleEx(421,1803.6373,-1916.4673,13.1141,89.0899,0,0,30000); // YCAT Co. Washington 62
    AddStaticVehicleEx(421,1803.6617,-1925.0874,13.1319,266.7457,0,0,30000); // YCAT Co. Washington 63
    AddStaticVehicleEx(420,1800.6991,-1886.0063,13.1462,268.8892,-1,-1,30000); // YCAT Co.Taxi 64
    AddStaticVehicleEx(420,1777.9976,-1886.0128,13.1922,267.6736,-1,-1,30000); // YCAT Co. Taxi 65
    AddStaticVehicleEx(420,1803.7118,-1906.2510,13.2024,85.1059,-1,-1,30000); // YCAT Co. Taxi 66
    AddStaticVehicleEx(420,1777.3717,-1896.7965,13.1916,270.3214,-1,-1,30000); // YCAT Co. Taxi 67
    AddStaticVehicleEx(420,1796.4906,-1932.9441,13.1914,357.7162,-1,-1,30000); // YCAT Co. Taxi 68
    AddStaticVehicleEx(420,1780.8253,-1931.8109,13.1295,358.2670,-1,-1,30000); // YCAT Co. Taxi 69
    AddStaticVehicleEx(420,1777.6808,-1913.4772,13.1285,267.0958,-1,-1,30000); // YCAT Co. Taxi 70
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(582,1795.24,-1284.89,13.44,125.29,125,125,30000); // News van 71
    AddStaticVehicleEx(582,1797.18,-1291.08,13.27,108.95,125,125,30000); // News van 72
    AddStaticVehicleEx(488,1545.4849,-1353.9330,329.6510,185.4584,125,125,30000); // News Chopper 73
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(525,2078.74,-2006.38,13.25,271.64,0,0,30000); // Towcar 74
    AddStaticVehicleEx(525,2079.06,-2019.84,13.25,269.24,0,0,30000); // Towcar 75
    AddStaticVehicleEx(525,2097.83,-2006.09,13.25,44.15,0,0,30000); // Towcar 76
    AddStaticVehicleEx(525,2106.72,-2015.25,13.25,44.15,0,0,30000); // Towcar 77
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(571,2286.2141,-2354.5000,12.8306,225.8705,-1,-1,30000); // kart 78
    AddStaticVehicleEx(571,2279.9412,-2348.4141,12.8312,225.8585,-1,-1,30000); // kart 79
    AddStaticVehicleEx(571,2291.7932,-2345.5356,12.8305,227.3060,-1,-1,30000); // kart 80
    AddStaticVehicleEx(571,2287.5615,-2341.6433,12.8306,226.5350,-1,-1,30000); // kart 81
    AddStaticVehicleEx(571,2299.6785,-2338.3186,12.8307,224.3563,-1,-1,30000); // kart 82
    AddStaticVehicleEx(571,2295.3887,-2334.9448,12.8307,227.9102,-1,-1,30000); // kart 83
    AddStaticVehicleEx(494,-1401.0436,-210.0052,1042.9913,1.6623,1,0,30000); //hotring 84
    AddStaticVehicleEx(494,-1400.4019,-219.9365,1043.0348,5.3554,1,3,30000); //hotring 85
    AddStaticVehicleEx(494,-1394.4932,-207.7917,1042.9963,3.6872,0,6,30000); //hotring 86
    AddStaticVehicleEx(494,-1393.7854,-217.9354,1043.0325,2.9556,1,2,30000); //hotring 87
    AddStaticVehicleEx(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,30000); //bike 88
    AddStaticVehicleEx(468,-1433.1708,-592.4930,1055.6533,92.4067,-1,-1,30000); //bike 89
    AddStaticVehicleEx(468,-1448.5325,-584.4943,1055.4949,95.5400,-1,-1,30000); //bike 90
    AddStaticVehicleEx(468,-1434.8973,-585.1266,1055.2488,91.1533,-1,-1,30000); //bike 91
    AddStaticVehicleEx(468,-1449.2814,1610.7823,1052.5313,272.9406,-1,-1,30000); // bike 92
    AddStaticVehicleEx(468,-1453.8767,1611.2418,1052.5313,89.0355,-1,-1,30000); // bike 93
    AddStaticVehicleEx(468,-1454.4746,1614.3342,1052.5313,86.8422,-1,-1,30000); // bike 94
    AddStaticVehicleEx(468,-1449.5795,1614.0684,1052.5313,269.2039,-1,-1,30000); // bike 95
    //-------------------------------------------------------------------------------------------
    surenoscar[0] = AddStaticVehicleEx(571,1452.7358,-844.5006,83.8422,179.7695,93,93,30000); // Surenos Quad 2 96
    signatracar[0] = AddStaticVehicleEx(491,1252.7358,-804.5006,83.8622,179.7695,6,6,30000); // la Famiglia Sinatra Car 97
    signatracar[1] = AddStaticVehicleEx(482,1241.3325,-814.7080,83.8642,183.2531,6,6,30000); // la Famiglia Sinatra Van 98
    signatracar[2] = AddStaticVehicleEx(429,1281.1151,-830.0188,82.8608,90.0674,6,0,30000); // la Famiglia Sinatra Sport Car 99
    surenoscar[1] = AddStaticVehicleEx(482,1819.1561,-2020.5332,13.0625,179.1689,93,93,3000); // Van Of Surenos 100
    surenoscar[2] = AddStaticVehicleEx(567,1826.7920,-2021.0032,13.0625,180.4209,93,93,3000); // Surenos Car 101
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(448,2122,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 102
    AddStaticVehicleEx(448,2120,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 103
    AddStaticVehicleEx(448,2118,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 104
    AddStaticVehicleEx(448,2116,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 105
    AddStaticVehicleEx(448,2114,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 106
    AddStaticVehicleEx(448,2112,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 107
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(456,2508.9116,-2111.7759,13.7206,0,-1,-1, 30000); // Component Truck Yankee 108
    AddStaticVehicleEx(456,2484.5356,-2111.7759,13.7196,0,-1,-1,30000); // Component Truck Yankee 109
    AddStaticVehicleEx(440,2529.0413,-2085.3999,13.6651,90,-1,-1,30000); // Component Truck Rumpo 110
    AddStaticVehicleEx(440,2528.9482,-2092.6104,13.6631,90,-1,-1,30000); // Component Truck Rumpo 111
    //-------------------------------------------------------------------------------------------
    rentbike[0] = AddStaticVehicleEx(461,1556.2643,-2361.6479,13.1627,6.6305,39,39,30000); // Mountain bike 112
    rentbike[1] = AddStaticVehicleEx(461,1552.8982,-2361.8359,13.1623,10.5426,16,16,30000); // Mountain bike 113
    rentbike[2] = AddStaticVehicleEx(463,1549.1460,-2362.0383,13.1626,5.5903,6,6,30000); // Mountain bike 114
    rentbike[3] = AddStaticVehicleEx(463,1546.0422,-2362.0017,13.1630,6.6997,5,5,30000); // Mountain bike 115
    rentbike[4] = AddStaticVehicleEx(581,1542.7434,-2361.9631,13.1626,15.3254,2,2,30000); // Mountain bike 116
    rentbike[5] = AddStaticVehicleEx(581,1539.4385,-2362.1431,13.1625,11.8010,43,43,30000); // Mountain bike 117
    rentbike[6] = AddStaticVehicleEx(586,1536.1389,-2362.0837,13.1626,12.2595,46,46,30000); // Mountain bike 118
    rentbike[7] = AddStaticVehicleEx(586,1532.6709,-2362.2327,13.1631,8.4654,39,39,30000); // Mountain bike 119
    rentbike[8] = AddStaticVehicleEx(468,1529.8967,-2362.2913,13.1633,3.8305,28,28,30000); // Mountain bike 120
    rentbike[9] = AddStaticVehicleEx(468,1526.7921,-2362.0647,13.1630,8.0961,16,16,30000); // Mountain bike 121
    rentbike[10] = AddStaticVehicleEx(462,1561.2104,-2338.5303,13.1464,107.7252,13,13,30000); // Faggio 122
    rentbike[11] = AddStaticVehicleEx(462,1561.0819,-2335.0010,13.1470,94.8441,14,14,30000); // Faggio 123
    rentbike[12] = AddStaticVehicleEx(462,1560.7794,-2331.9216,13.1464,96.7927,1,2,30000); // Faggio 124
    rentbike[13] = AddStaticVehicleEx(462,1560.7391,-2328.2046,13.1470,92.0937,2,1,30000); // Faggio 125
    rentbike[14] = AddStaticVehicleEx(462,1560.9022,-2325.0593,13.1462,91.0980,1,3,30000); // Faggio 126
    rentbike[15] = AddStaticVehicleEx(462,1561.0276,-2321.8657,13.1475,95.4715,3,1,30000); // Faggio 127
    rentbike[16] = AddStaticVehicleEx(462,1561.0735,-2318.5796,13.1443,97.1012,10,10,30000); // Faggio 128
    rentbike[17] =  AddStaticVehicleEx(462,1560.9514,-2315.0532,13.1465,94.5565,12,12,30000); // Faggio 129
    rentbike[18] = AddStaticVehicleEx(462,1560.8143,-2311.6104,13.1455,95.1219,13,13,30000); // Faggio 130
    //-------------------------------------------------------------------------------------------
    fdcar[0] = AddStaticVehicleEx(407,1005.7731,-1459.2805,13.6780,359.2671,-1,-1,30000); // Fire Truck Type [1] 131
    fdcar[1] = AddStaticVehicleEx(407,1013.3235,-1459.5682,13.6819,1.0221,-1,-1,30000); // Fire Truck Type [1] 132
    fdcar[2] = AddStaticVehicleEx(544,988.6091,-1453.2679,13.7752,267.6749,-1,-1,30000); // Fire Truck Type [2] 133
    vicecar[3] = AddStaticVehicleEx(426,153.8474,-1750.8491,4.7797,359.7277,0,0,30000); // La Vice Premier 134
    //-------------------------------------------------------------------------------------------
    rentcar[0] = AddStaticVehicleEx(602,1681.5526,-1035.9557,23.6389,180,123,92,30000); // Rent car 135
    rentcar[1] = AddStaticVehicleEx(602,1685.3273,-1035.4058,23.6409,180,101,101,30000); // Rent car 136
    rentcar[2] = AddStaticVehicleEx(424,1689.9888,-1035.6348,23.6384,180,83,110,30000); // Rent car 137
    rentcar[3] = AddStaticVehicleEx(424,1694.3981,-1034.7706,23.6860,180,74,74,30000); // Rent car 138
    rentcar[4] = AddStaticVehicleEx(518,1703.3409,-1044.8248,23.6857,0,91,91,30000); // Rent car 139
    rentcar[5] = AddStaticVehicleEx(518,1712.7332,-1034.9132,23.6933,180,41,41,30000); // Rent car 140
    rentcar[6] = AddStaticVehicleEx(402,1690.2993,-1044.3937,23.5577,0,10,1,30000); // Rent car 141
    rentcar[7] = AddStaticVehicleEx(402,1681.0250,-1044.6152,23.5528,0,36,1,30000); // Rent car 142
    rentcar[8] = AddStaticVehicleEx(589,1703.0122,-1035.1486,23.5598,180,45,1,30000); // Rent car 143
    rentcar[9] = AddStaticVehicleEx(589,1698.9230,-1044.6398,23.9990,0,114,114,30000); // Rent car 144
    rentcar[10] = AddStaticVehicleEx(585,1707.8655,-1035.1423,24.0034,180,95,95,30000); // Rent car 145
    rentcar[11] = AddStaticVehicleEx(585,1698.7041,-1034.9835,23.9997,180,61,61,30000); // Rent car 146
    rentcar[12] = AddStaticVehicleEx(587,1685.3434,-1044.4137,23.9994,0,119,119,30000); // Rent car 147
    rentcar[13] = AddStaticVehicleEx(587,1694.5468,-1044.4786,23.6760,0,92,1,30000); // Rent car 148
    rentcar[14] = AddStaticVehicleEx(565,1707.9614,-1044.8055,23.6739,0,109,1,30000); // Rent car 149
    rentcar[15] = AddStaticVehicleEx(565,1712.5034,-1044.1735,23.6731,0,11,1,30000); // Rent car 150
    rentcar[16] = AddStaticVehicleEx(579,1709.2091,-1061.1398,23.7847,180,109,1,30000); // Rent car 151
    rentcar[17] = AddStaticVehicleEx(579,1700.3168,-1060.6760,23.7848,180,4,1,30000); // Rent car 152
    rentcar[18] = AddStaticVehicleEx(400,1717.9724,-1069.8695,23.7848,0,30,1,30000); // Rent car 153
    rentcar[19] = AddStaticVehicleEx(400,1691.3545,-1069.6636,23.7849,0,91,1,30000); // Rent car 154
    //-------------------------------------------------------------------------------------------
    harvest[0] = AddStaticVehicleEx(532,-387.4058,-1476.6927,26.7035,265.6719,0,0,30000); // Harvest 155
    harvest[1] = AddStaticVehicleEx(532,-382.8609,-1465.2964,26.7162,262.4081,0,0,30000); // Harvest 156
    harvest[2] = AddStaticVehicleEx(532,-392.8095,-1487.2607,26.3314,268.0157,0,0,30000); // Harvest 157
    harvest[3] = AddStaticVehicleEx(532,-399.6307,-1500.4774,25.4502,265.1973,0,0,30000); // Harvest 158
    //-------------------------------------------------------------------------------------------
    drugharvest[0] = AddStaticVehicleEx(532,-54.1143,86.1869,4.0927,246.1964,16,0,30000); // Drug harvest 159
    drugharvest[1] =AddStaticVehicleEx(532,-39.0122,-19.7210,4.0923,66.2487,16,0,30000); // Drug harvest 160
    drugharvest[2] =AddStaticVehicleEx(532,-34.2867,-9.5510,4.0883,62.7305,16,0,30000); // Drug harvest 161
    drugharvest[3] =AddStaticVehicleEx(532,-83.7403,-17.7843,4.0917,340.3535,16,0,30000); // Drug harvest 162
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(442,1097.7876,-1327.8087,13.1820,2.3556,3,13,30000); // Drugs smuggler car 163
    AddStaticVehicleEx(442,1110.4362,-1327.9688,13.1654,1.1852,3,13,30000); // Drugs smuggler car 164
    AddStaticVehicleEx(442,1123.7722,-1327.3230,13.2222,359.7142,3,13,30000); // Drugs smuggler car 165
    //-------------------------------------------------------------------------------------------
    surenoscar[3] = AddStaticVehicleEx(567,1826.8661,-2031.1033,13.0625,180.4212,93,93,30000); // Surenos Car 2 166
    //-------------------------------------------------------------------------------------------
    surenoscar[4] = AddStaticVehicleEx(471,1806.3488,-2009.0200,13.2220,89.1721,93,93,30000); // Surenos Quad 167
    //-------------------------------------------------------------------------------------------
    governcar[4] = AddStaticVehicleEx(487,1902.4270,-2628.4958,13.7092,62.7501,0,0,30000); // Government Helicopter 168
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(574,1668.6692,-1896.1118,13.2720,268.0269,26,26,30000); // Street sweeper 169
    AddStaticVehicleEx(574,1668.7383,-1891.4990,13.2720,270.7320,26,26,30000); // Street sweeper 170
    AddStaticVehicleEx(574,1668.7280,-1886.8180,13.2720,268.9658,26,26,30000); // Street sweeper 171
    //-------------------------------------------------------------------------------------------
    yamaguchicar[0] = AddStaticVehicleEx(409,660.0489,-1283.0696,13.3435,358.8616,3,0,30000); // Yamaguchi Limo
    yamaguchicar[1] = AddStaticVehicleEx(477,677.2945,-1303.7924,13.3813,89.0855,3,0,30000); // Yamaguchi ZR-350
    yamaguchicar[2] = AddStaticVehicleEx(560,677.8538,-1297.9611,13.3237,88.4905,3,0,30000); // Yamaguchi Sultan 1
    yamaguchicar[3] = AddStaticVehicleEx(560,670.5880,-1283.5927,13.2531,0.1076,3,0,30000); // Yamaguchi Sultan 2
    yamaguchicar[4] = AddStaticVehicleEx(541,660.3167,-1266.7985,13.1698,0.9612,3,0,30000); // Yamaguchi Bullet 1
    yamaguchicar[5] = AddStaticVehicleEx(541,660.1972,-1261.0837,13.1716,1.2979,3,0,30000); // Yamaguchi Bullet 2
    yamaguchicar[6] = AddStaticVehicleEx(521,672.7811,-1265.8210,13.2048,88.7814,3,3,30000); // Yamaguchi FCR-300 1
    yamaguchicar[7] = AddStaticVehicleEx(521,672.7515,-1267.3486,13.2139,89.9569,3,0,30000); // Yamaguchi FCR-300 2
    yamaguchicar[8] = AddStaticVehicleEx(521,672.7234,-1269.0427,13.2050,91.2190,3,3,30000); // Yamaguchi FCR-300 3
    yamaguchicar[9] = AddStaticVehicleEx(521,672.6326,-1270.8228,13.2140,91.7205,3,0,30000); // Yamaguchi FCR-300 4
    yamaguchicar[10] = AddStaticVehicleEx(428,674.4381,-1244.4094,14.7676,320.7266,3,0,30000); // Yamaguchi Securicar
    yamaguchicar[11] = AddStaticVehicleEx(572,736.1734,-1246.8975,13.1329,359.9393,3,0,30000); // Yamaguchi Mower
    yamaguchicar[12] = AddStaticVehicleEx(487,766.1458,-1212.9816,13.7234,90.1444,3,0,30000); // Yamaguchi Helicopter
    bratvacar[0] = AddStaticVehicleEx(521,1240.7253,-2033.0615,59.5460,270.7889,0,0,30000); // Bratva Bike 178
    bratvacar[1] = AddStaticVehicleEx(521,1240.3286,-2031.1663,59.5317,268.5302,0,0,30000); // Bratva Bike 2 179
    bratvacar[2] = AddStaticVehicleEx(545,1244.0236,-2022.7377,59.6055,180.3637,1,115,30000); // Bratva Boss Car 180
    bratvacar[3] = AddStaticVehicleEx(411,1276.6550,-2044.6598,58.7636,269.1467,1,1,30000); // Bratva Car 1 181
    bratvacar[4] = AddStaticVehicleEx(560,1276.8871,-2041.3832,58.7481,269.5363,0,0,30000); // Bratva Car 2 182
    bratvacar[5] = AddStaticVehicleEx(560,1276.8864,-2037.7959,58.7351,268.8126,0,0,30000); // Bratva Car 3 183
 //-------------------------------------------------------------------------------------------

   
   
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}



public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    TogglePlayerClock(playerid,0);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, 30000);
    GivePlayerWeapon(playerid,WEAPON_COLT45,100);
    GivePlayerWeapon(playerid, 31, 9999);
    GivePlayerWeapon(playerid, 30, 9999);
    GivePlayerWeapon(playerid, 28, 9999);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
  new playercash;

    if(killerid == INVALID_PLAYER_ID) {
        ResetPlayerMoney(playerid);
    } else {
        playercash = GetPlayerMoney(playerid);
        if(playercash > 0)  {
            GivePlayerMoney(killerid, playercash);
            ResetPlayerMoney(playerid);
        }
    return 1;
}


public OnPlayerUpdate(playerid)
{

           #define COLOR_RED 0xAA3333AA

    // No jetpacks allowed
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
        Kick(playerid);
        SendClientMessage(playerid,red,"You Mustn't Use JetPack");
        return 0;
    }
    return 1;
}
Reply
#8

pawn Code:
#include <a_samp>
#include <core>
#include <float>
#include "../include/gl_common.inc"
#pragma tabsize 0
new playercash;
#define blue 0x375FFFFF

main()
{
    print("\n----------------------------------");
    print(" Fun and Games server By Misho");
    print("----------------------------------\n");
}

public OnGameModeInit()
{
    SetGameModeText("Freeroam/Stunts/Minigames/gangs");
    AddPlayerClass(19,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(7,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(115,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(107,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(104,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(102,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(108,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(109,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(123,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(120,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(100,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(124,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(113,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(287,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(286,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(285,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(276,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(195,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(190,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(191,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(192,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(193,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(194,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(138,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(154,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(162,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(33,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(90,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(178,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(23,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(167,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(179,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(264,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(137,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(29,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(21,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(40,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(93,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    AddPlayerClass(280,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // GMSPAWN
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(598,2779.3843,-2434.2644,13.3568,88.5203,99,1,30000); // Army police 1
    AddStaticVehicleEx(598,2779.4299,-2439.7708,13.3572,88.1692,99,1,30000); // Army police 2
    AddStaticVehicleEx(598,2779.1882,-2471.9214,13.3576,86.6550,99,1,30000); // Army police 3
    AddStaticVehicleEx(598,2779.1497,-2477.8547,13.3590,86.9500,99,1,30000); // Army police 4
    AddStaticVehicleEx(432,2791.3584,-2494.2971,13.6588,89.3376,43,0,30000); // Army tank 5
    AddStaticVehicleEx(470,2792.0173,-2455.8245,14.0688,90,43,0,30000); // Army patriot 6
    AddStaticVehicleEx(470,2793.1680,-2418.1855,13.6259,88.3914,-1, -1, 30000); // Patriot 7
    AddStaticVehicleEx(470,2785.0979,-2417.6987,13.6273,87.4559, -1, -1, 30000); //Patriot 8
    AddStaticVehicleEx(433,2781.4146,-2455.5208,14.0714,90,43,0,30000); // Army truck 9
    AddStaticVehicleEx(430,2698.8132,-2311.0671,-0.2161,87.3657,-1, -1, 30000); // Army boat 10
    AddStaticVehicleEx(430,2722.9766,-2311.2756,-0.3360,89.2799,-1, -1, 30000); // Army boat 11
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(405,1406.93,-1790.2,13.3,90, 0, 0, 30000); // Mayor security 12
    AddStaticVehicleEx(405,1406.9,-1793.8,13.3,90, 0, 0, 30000); // Mayor security 13
    AddStaticVehicleEx(405,1406.7,-1782.16,13.3,90, 0, 0, 30000); // Mayor security 14
    AddStaticVehicleEx(409,1405.87,-1785.96,13.3,90,1,1,30000); // Mayor stretch 15
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(599,616.1244,-601.7048,17.4214,271.5325, -1, -1, 30000); // Cop cruiser (Dillimore) 16
    AddStaticVehicleEx(426,158.4755,-1751.1315,4.6460,1.3559,0,0, 30000); // La Vice Premier 17
    AddStaticVehicleEx(426,158.3176,-1758.2914,4.4283,356.8665,0,0, 30000); // La Vice Premier 18
    AddStaticVehicleEx(596,1574.4703,-1710.9795,5.6115,0.4220, -1, -1, 30000); // Cop cruiser 19
    AddStaticVehicleEx(596,1587.4816,-1710.3594,5.6104,358.9421,-1, -1, 30000); // Cop cruiser 20
    AddStaticVehicleEx(596,1595.6578,-1710.9442,5.6119,359.6335,0,1,30000); // Cop cruiser 21
    AddStaticVehicleEx(596,1545.7845,-1684.4004,5.6342,271.1593,0,1,30000); // Cop cruiser 22
    AddStaticVehicleEx(596,1558.7819,-1710.9503,5.6119,1.1862,0,1,30000); // Cop cruiser 23
    AddStaticVehicleEx(596,1601.8564,-1704.1805,5.6110,88.9959,-1,-1,30000); // Cop cruiser 24
    AddStaticVehicleEx(596,1600.9231,-1691.9321,5.6113,91.6221,-1,-1,30000); // Cop cruiser 25
    AddStaticVehicleEx(596,1600.4153,-1687.9385,5.6118,90.7431,-1,-1,30000); // Cop cruiser 26
    AddStaticVehicleEx(596,1529.6339,-1683.7720,5.6124,270.5692, -1, -1, 30000); // Cop cruiser 27
    AddStaticVehicleEx(596,1529.5374,-1688.0181,5.6114,270.0886, -1, -1, 30000); // Cop cruiser 28
    AddStaticVehicleEx(523,1557.9637,-1694.5964,5.4673,226.4766,-1,-1,30000); // Police moto 29
    AddStaticVehicleEx(523,1557.9060,-1697.4153,5.4689,220.9842,-1,-1,30000); // Police moto 30
    AddStaticVehicleEx(523,1558.1632,-1691.8335,5.4596,224.7542,-1,-1,30000); // Police moto 31
    AddStaticVehicleEx(599,1584.6510,-1671.4448,6.0541,271.5708,0,1,30000); // Police ranger 32
    AddStaticVehicleEx(599,1584.7875,-1667.6138,6.0592,272.0818,0,1,30000); // Police ranger 33
    AddStaticVehicleEx(599,1545.3936,-1667.7957,6.0809,87.7152,-1,-1,30000); // Police ranger 34
    AddStaticVehicleEx(599,1545.0044,-1671.9329,6.0791,91.5492,-1,-1,30000); // Police ranger 35
    AddStaticVehicleEx(427,1544.2870,-1659.3522,5.6119,88.5025,0,125,30000);// Police SWAT enforcer 36
    AddStaticVehicleEx(601,1544.6962,-1663.2948,6.0225,88.9357,-1,-1,30000); // Police SWAT APC 37
    AddStaticVehicleEx(497,1566.6628,-1653.8688,28.5752,91.9445,0,1,30000);// Police maverick 38
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(490,1514.1959,-1478.1108,9.6270,270.0, 125, 0, 30000); // FBI rancher 39
    AddStaticVehicleEx(490,1514.1621,-1474.2642,9.6278,270,125,0,30000); // FBI rancher 40
    AddStaticVehicleEx(426,1525.4424,-1461.3640,9.2431,0,125,0,30000); // FBI elegant 41
    AddStaticVehicleEx(426,1520.8752,-1461.1650,9.2430,0,0,0,30000); // FBI elegant 42
    AddStaticVehicleEx(426,1516.1973,-1461.1393,9.2430,0,0,0,30000); // FBI elegant 43
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(426,153.8499,-1758.2358,4.5786,358.2814,0,0, 30000); // La Vice Premier 44
    AddStaticVehicleEx(572,2558.3201,2653.9070,10.5473,193.3834,0,0, 30000); // None 45
    AddStaticVehicleEx(572,2564.2375,2649.3052,10.5265,207.0189,0,0, 30000); // None 46
    AddStaticVehicleEx(572,2574.2048,2649.4514,10.5474,219.5219,0,0, 30000); // None 47
    AddStaticVehicleEx(572,2578.7847,2655.4546,10.5912,233.9002,0,0, 30000); // None 48
    AddStaticVehicleEx(572,2584.6228,2660.0879,10.5919,76.5837,0,0, 30000); // None 49
    AddStaticVehicleEx(572,2584.1938,2665.9053,10.5510,109.2745,0,0, 30000); // None 50
    AddStaticVehicleEx(572,2562.7419,2664.0110,10.6135,139.6290,0,0, 30000); // None 51
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(416,1177.35,-1339.24,13.66,269.58, -1, -1, 30000); // Ambulance 52
    AddStaticVehicleEx(416,1176.98,-1308.65,13.62,269.33, -1, -1, 30000); // Ambulance 53
    AddStaticVehicleEx(416,1189.87,-1357.14,13.21,180.78, -1, -1, 30000); // Ambulance 54
    AddStaticVehicleEx(555,2558.3201,2648.9070,10.5473,0.42, -1, -1, 30000); // Windsor
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(467,1067.1295,-295.5681,73.7826,179.6040, 90, -1, 30000); // Hitman oceanic 56
    AddStaticVehicleEx(467,1077.3829,-295.1148,73.7812,180.2754, 90, -1, 30000); // Hitman oceanic 57
    AddStaticVehicleEx(467,1071.9189,-294.9166,73.7250,178.9444,90, -1, 30000); // Hitman oceanic 58
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 30000); // Bus 59
    AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 30000); // Bus 60
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(409,1789.4137,-1932.6389,13.1079,357.7568,0,0,30000); // YCAT Co. Limo 61
    AddStaticVehicleEx(421,1803.6373,-1916.4673,13.1141,89.0899,0,0,30000); // YCAT Co. Washington 62
    AddStaticVehicleEx(421,1803.6617,-1925.0874,13.1319,266.7457,0,0,30000); // YCAT Co. Washington 63
    AddStaticVehicleEx(420,1800.6991,-1886.0063,13.1462,268.8892,-1,-1,30000); // YCAT Co.Taxi 64
    AddStaticVehicleEx(420,1777.9976,-1886.0128,13.1922,267.6736,-1,-1,30000); // YCAT Co. Taxi 65
    AddStaticVehicleEx(420,1803.7118,-1906.2510,13.2024,85.1059,-1,-1,30000); // YCAT Co. Taxi 66
    AddStaticVehicleEx(420,1777.3717,-1896.7965,13.1916,270.3214,-1,-1,30000); // YCAT Co. Taxi 67
    AddStaticVehicleEx(420,1796.4906,-1932.9441,13.1914,357.7162,-1,-1,30000); // YCAT Co. Taxi 68
    AddStaticVehicleEx(420,1780.8253,-1931.8109,13.1295,358.2670,-1,-1,30000); // YCAT Co. Taxi 69
    AddStaticVehicleEx(420,1777.6808,-1913.4772,13.1285,267.0958,-1,-1,30000); // YCAT Co. Taxi 70
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(582,1795.24,-1284.89,13.44,125.29,125,125,30000); // News van 71
    AddStaticVehicleEx(582,1797.18,-1291.08,13.27,108.95,125,125,30000); // News van 72
    AddStaticVehicleEx(488,1545.4849,-1353.9330,329.6510,185.4584,125,125,30000); // News Chopper 73
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(525,2078.74,-2006.38,13.25,271.64,0,0,30000); // Towcar 74
    AddStaticVehicleEx(525,2079.06,-2019.84,13.25,269.24,0,0,30000); // Towcar 75
    AddStaticVehicleEx(525,2097.83,-2006.09,13.25,44.15,0,0,30000); // Towcar 76
    AddStaticVehicleEx(525,2106.72,-2015.25,13.25,44.15,0,0,30000); // Towcar 77
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(571,2286.2141,-2354.5000,12.8306,225.8705,-1,-1,30000); // kart 78
    AddStaticVehicleEx(571,2279.9412,-2348.4141,12.8312,225.8585,-1,-1,30000); // kart 79
    AddStaticVehicleEx(571,2291.7932,-2345.5356,12.8305,227.3060,-1,-1,30000); // kart 80
    AddStaticVehicleEx(571,2287.5615,-2341.6433,12.8306,226.5350,-1,-1,30000); // kart 81
    AddStaticVehicleEx(571,2299.6785,-2338.3186,12.8307,224.3563,-1,-1,30000); // kart 82
    AddStaticVehicleEx(571,2295.3887,-2334.9448,12.8307,227.9102,-1,-1,30000); // kart 83
    AddStaticVehicleEx(494,-1401.0436,-210.0052,1042.9913,1.6623,1,0,30000); //hotring 84
    AddStaticVehicleEx(494,-1400.4019,-219.9365,1043.0348,5.3554,1,3,30000); //hotring 85
    AddStaticVehicleEx(494,-1394.4932,-207.7917,1042.9963,3.6872,0,6,30000); //hotring 86
    AddStaticVehicleEx(494,-1393.7854,-217.9354,1043.0325,2.9556,1,2,30000); //hotring 87
    AddStaticVehicleEx(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,30000); //bike 88
    AddStaticVehicleEx(468,-1433.1708,-592.4930,1055.6533,92.4067,-1,-1,30000); //bike 89
    AddStaticVehicleEx(468,-1448.5325,-584.4943,1055.4949,95.5400,-1,-1,30000); //bike 90
    AddStaticVehicleEx(468,-1434.8973,-585.1266,1055.2488,91.1533,-1,-1,30000); //bike 91
    AddStaticVehicleEx(468,-1449.2814,1610.7823,1052.5313,272.9406,-1,-1,30000); // bike 92
    AddStaticVehicleEx(468,-1453.8767,1611.2418,1052.5313,89.0355,-1,-1,30000); // bike 93
    AddStaticVehicleEx(468,-1454.4746,1614.3342,1052.5313,86.8422,-1,-1,30000); // bike 94
    AddStaticVehicleEx(468,-1449.5795,1614.0684,1052.5313,269.2039,-1,-1,30000); // bike 95
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(571,1452.7358,-844.5006,83.8422,179.7695,93,93,30000); // Surenos Quad 2 96
    AddStaticVehicleEx(491,1252.7358,-804.5006,83.8622,179.7695,6,6,30000); // la Famiglia Sinatra Car 97
    AddStaticVehicleEx(482,1241.3325,-814.7080,83.8642,183.2531,6,6,30000); // la Famiglia Sinatra Van 98
    AddStaticVehicleEx(429,1281.1151,-830.0188,82.8608,90.0674,6,0,30000); // la Famiglia Sinatra Sport Car 99
    AddStaticVehicleEx(482,1819.1561,-2020.5332,13.0625,179.1689,93,93,3000); // Van Of Surenos 100
    AddStaticVehicleEx(567,1826.7920,-2021.0032,13.0625,180.4209,93,93,3000); // Surenos Car 101
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(448,2122,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 102
    AddStaticVehicleEx(448,2120,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 103
    AddStaticVehicleEx(448,2118,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 104
    AddStaticVehicleEx(448,2116,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 105
    AddStaticVehicleEx(448,2114,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 106
    AddStaticVehicleEx(448,2112,-1784.1558,12.9844,0.9122,3,6,30000); // PizzaBoy 107
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(456,2508.9116,-2111.7759,13.7206,0,-1,-1, 30000); // Component Truck Yankee 108
    AddStaticVehicleEx(456,2484.5356,-2111.7759,13.7196,0,-1,-1,30000); // Component Truck Yankee 109
    AddStaticVehicleEx(440,2529.0413,-2085.3999,13.6651,90,-1,-1,30000); // Component Truck Rumpo 110
    AddStaticVehicleEx(440,2528.9482,-2092.6104,13.6631,90,-1,-1,30000); // Component Truck Rumpo 111
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(461,1556.2643,-2361.6479,13.1627,6.6305,39,39,30000); // Mountain bike 112
    AddStaticVehicleEx(461,1552.8982,-2361.8359,13.1623,10.5426,16,16,30000); // Mountain bike 113
    AddStaticVehicleEx(463,1549.1460,-2362.0383,13.1626,5.5903,6,6,30000); // Mountain bike 114
    AddStaticVehicleEx(463,1546.0422,-2362.0017,13.1630,6.6997,5,5,30000); // Mountain bike 115
    AddStaticVehicleEx(581,1542.7434,-2361.9631,13.1626,15.3254,2,2,30000); // Mountain bike 116
    AddStaticVehicleEx(581,1539.4385,-2362.1431,13.1625,11.8010,43,43,30000); // Mountain bike 117
    AddStaticVehicleEx(586,1536.1389,-2362.0837,13.1626,12.2595,46,46,30000); // Mountain bike 118
    AddStaticVehicleEx(586,1532.6709,-2362.2327,13.1631,8.4654,39,39,30000); // Mountain bike 119
    AddStaticVehicleEx(468,1529.8967,-2362.2913,13.1633,3.8305,28,28,30000); // Mountain bike 120
    AddStaticVehicleEx(468,1526.7921,-2362.0647,13.1630,8.0961,16,16,30000); // Mountain bike 121
    AddStaticVehicleEx(462,1561.2104,-2338.5303,13.1464,107.7252,13,13,30000); // Faggio 122
    AddStaticVehicleEx(462,1561.0819,-2335.0010,13.1470,94.8441,14,14,30000); // Faggio 123
    AddStaticVehicleEx(462,1560.7794,-2331.9216,13.1464,96.7927,1,2,30000); // Faggio 124
    AddStaticVehicleEx(462,1560.7391,-2328.2046,13.1470,92.0937,2,1,30000); // Faggio 125
    AddStaticVehicleEx(462,1560.9022,-2325.0593,13.1462,91.0980,1,3,30000); // Faggio 126
    AddStaticVehicleEx(462,1561.0276,-2321.8657,13.1475,95.4715,3,1,30000); // Faggio 127
    AddStaticVehicleEx(462,1561.0735,-2318.5796,13.1443,97.1012,10,10,30000); // Faggio 128
    AddStaticVehicleEx(462,1560.9514,-2315.0532,13.1465,94.5565,12,12,30000); // Faggio 129
    AddStaticVehicleEx(462,1560.8143,-2311.6104,13.1455,95.1219,13,13,30000); // Faggio 130
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(407,1005.7731,-1459.2805,13.6780,359.2671,-1,-1,30000); // Fire Truck Type [1] 131
    AddStaticVehicleEx(407,1013.3235,-1459.5682,13.6819,1.0221,-1,-1,30000); // Fire Truck Type [1] 132
    AddStaticVehicleEx(544,988.6091,-1453.2679,13.7752,267.6749,-1,-1,30000); // Fire Truck Type [2] 133
    AddStaticVehicleEx(426,153.8474,-1750.8491,4.7797,359.7277,0,0,30000); // La Vice Premier 134
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(602,1681.5526,-1035.9557,23.6389,180,123,92,30000); // Rent car 135
    AddStaticVehicleEx(602,1685.3273,-1035.4058,23.6409,180,101,101,30000); // Rent car 136
    AddStaticVehicleEx(424,1689.9888,-1035.6348,23.6384,180,83,110,30000); // Rent car 137
    AddStaticVehicleEx(424,1694.3981,-1034.7706,23.6860,180,74,74,30000); // Rent car 138
    AddStaticVehicleEx(518,1703.3409,-1044.8248,23.6857,0,91,91,30000); // Rent car 139
    AddStaticVehicleEx(518,1712.7332,-1034.9132,23.6933,180,41,41,30000); // Rent car 140
    AddStaticVehicleEx(402,1690.2993,-1044.3937,23.5577,0,10,1,30000); // Rent car 141
    AddStaticVehicleEx(402,1681.0250,-1044.6152,23.5528,0,36,1,30000); // Rent car 142
    AddStaticVehicleEx(589,1703.0122,-1035.1486,23.5598,180,45,1,30000); // Rent car 143
    AddStaticVehicleEx(589,1698.9230,-1044.6398,23.9990,0,114,114,30000); // Rent car 144
    AddStaticVehicleEx(585,1707.8655,-1035.1423,24.0034,180,95,95,30000); // Rent car 145
    AddStaticVehicleEx(585,1698.7041,-1034.9835,23.9997,180,61,61,30000); // Rent car 146
    AddStaticVehicleEx(587,1685.3434,-1044.4137,23.9994,0,119,119,30000); // Rent car 147
    AddStaticVehicleEx(587,1694.5468,-1044.4786,23.6760,0,92,1,30000); // Rent car 148
    AddStaticVehicleEx(565,1707.9614,-1044.8055,23.6739,0,109,1,30000); // Rent car 149
    AddStaticVehicleEx(565,1712.5034,-1044.1735,23.6731,0,11,1,30000); // Rent car 150
    AddStaticVehicleEx(579,1709.2091,-1061.1398,23.7847,180,109,1,30000); // Rent car 151
    AddStaticVehicleEx(579,1700.3168,-1060.6760,23.7848,180,4,1,30000); // Rent car 152
    AddStaticVehicleEx(400,1717.9724,-1069.8695,23.7848,0,30,1,30000); // Rent car 153
    AddStaticVehicleEx(400,1691.3545,-1069.6636,23.7849,0,91,1,30000); // Rent car 154
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(532,-387.4058,-1476.6927,26.7035,265.6719,0,0,30000); // Harvest 155
    AddStaticVehicleEx(532,-382.8609,-1465.2964,26.7162,262.4081,0,0,30000); // Harvest 156
    AddStaticVehicleEx(532,-392.8095,-1487.2607,26.3314,268.0157,0,0,30000); // Harvest 157
    AddStaticVehicleEx(532,-399.6307,-1500.4774,25.4502,265.1973,0,0,30000); // Harvest 158
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(532,-54.1143,86.1869,4.0927,246.1964,16,0,30000); // Drug harvest 159
    AddStaticVehicleEx(532,-39.0122,-19.7210,4.0923,66.2487,16,0,30000); // Drug harvest 160
    AddStaticVehicleEx(532,-34.2867,-9.5510,4.0883,62.7305,16,0,30000); // Drug harvest 161
    AddStaticVehicleEx(532,-83.7403,-17.7843,4.0917,340.3535,16,0,30000); // Drug harvest 162
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(442,1097.7876,-1327.8087,13.1820,2.3556,3,13,30000); // Drugs smuggler car 163
    AddStaticVehicleEx(442,1110.4362,-1327.9688,13.1654,1.1852,3,13,30000); // Drugs smuggler car 164
    AddStaticVehicleEx(442,1123.7722,-1327.3230,13.2222,359.7142,3,13,30000); // Drugs smuggler car 165
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(567,1826.8661,-2031.1033,13.0625,180.4212,93,93,30000); // Surenos Car 2 166
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(471,1806.3488,-2009.0200,13.2220,89.1721,93,93,30000); // Surenos Quad 167
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(487,1902.4270,-2628.4958,13.7092,62.7501,0,0,30000); // Government Helicopter 168
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(574,1668.6692,-1896.1118,13.2720,268.0269,26,26,30000); // Street sweeper 169
    AddStaticVehicleEx(574,1668.7383,-1891.4990,13.2720,270.7320,26,26,30000); // Street sweeper 170
    AddStaticVehicleEx(574,1668.7280,-1886.8180,13.2720,268.9658,26,26,30000); // Street sweeper 171
    //-------------------------------------------------------------------------------------------
    AddStaticVehicleEx(409,660.0489,-1283.0696,13.3435,358.8616,3,0,30000); // Yamaguchi Limo
    AddStaticVehicleEx(477,677.2945,-1303.7924,13.3813,89.0855,3,0,30000); // Yamaguchi ZR-350
    AddStaticVehicleEx(560,677.8538,-1297.9611,13.3237,88.4905,3,0,30000); // Yamaguchi Sultan 1
    AddStaticVehicleEx(560,670.5880,-1283.5927,13.2531,0.1076,3,0,30000); // Yamaguchi Sultan 2
    AddStaticVehicleEx(541,660.3167,-1266.7985,13.1698,0.9612,3,0,30000); // Yamaguchi Bullet 1
    AddStaticVehicleEx(541,660.1972,-1261.0837,13.1716,1.2979,3,0,30000); // Yamaguchi Bullet 2
    AddStaticVehicleEx(521,672.7811,-1265.8210,13.2048,88.7814,3,3,30000); // Yamaguchi FCR-300 1
    AddStaticVehicleEx(521,672.7515,-1267.3486,13.2139,89.9569,3,0,30000); // Yamaguchi FCR-300 2
    AddStaticVehicleEx(521,672.7234,-1269.0427,13.2050,91.2190,3,3,30000); // Yamaguchi FCR-300 3
    AddStaticVehicleEx(521,672.6326,-1270.8228,13.2140,91.7205,3,0,30000); // Yamaguchi FCR-300 4
    AddStaticVehicleEx(428,674.4381,-1244.4094,14.7676,320.7266,3,0,30000); // Yamaguchi Securicar
    AddStaticVehicleEx(572,736.1734,-1246.8975,13.1329,359.9393,3,0,30000); // Yamaguchi Mower
    AddStaticVehicleEx(487,766.1458,-1212.9816,13.7234,90.1444,3,0,30000); // Yamaguchi Helicopter
    AddStaticVehicleEx(521,1240.7253,-2033.0615,59.5460,270.7889,0,0,30000); // Bratva Bike 178
    AddStaticVehicleEx(521,1240.3286,-2031.1663,59.5317,268.5302,0,0,30000); // Bratva Bike 2 179
    AddStaticVehicleEx(545,1244.0236,-2022.7377,59.6055,180.3637,1,115,30000); // Bratva Boss Car 180
    AddStaticVehicleEx(411,1276.6550,-2044.6598,58.7636,269.1467,1,1,30000); // Bratva Car 1 181
    AddStaticVehicleEx(560,1276.8871,-2041.3832,58.7481,269.5363,0,0,30000); // Bratva Car 2 182
    AddStaticVehicleEx(560,1276.8864,-2037.7959,58.7351,268.8126,0,0,30000); // Bratva Car 3 183
    //-------------------------------------------------------------------------------------------
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,"~w~Welcome to Fun and Games",3000,4);
    SendClientMessage(playerid,0xFFFFFFFF,"Welcome to Fun and Games");
    new string[64], pname[MAX_PLAYER_NAME];
    format(string,sizeof(string),"[INFO]: %s (%d) has joined Fun and Games.", pname, playerid);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    TogglePlayerClock(playerid,0);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, 30000);
    GivePlayerWeapon(playerid,WEAPON_COLT45,100);
    GivePlayerWeapon(playerid, 31, 9999);
    GivePlayerWeapon(playerid, 30, 9999);
    GivePlayerWeapon(playerid, 28, 9999);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID)
    {
        ResetPlayerMoney(playerid);
    }
    else
    {
        playercash = GetPlayerMoney(playerid);
        if(playercash > 0)
        {
            GivePlayerMoney(killerid, playercash);
            ResetPlayerMoney(playerid);
        }
    }
    return 1;
}

public OnPlayerUpdate(playerid)
{
    // No jetpacks allowed
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
    {
        Kick(playerid);
        SendClientMessage(playerid,blue,"You Mustn't Use JetPack");
        return 0;
    }
    return 1;
}
Reply
#9

thnx it work
but there is one problem only
i can't switch skin why that i put it
Reply
#10

hmmm... idk... ...
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)