30.03.2011, 15:06
Like idk what you mean.. But this is the tutorial im using:
https://sampforum.blast.hk/showthread.php?tid=169284
And this is what my script looks like..:
https://sampforum.blast.hk/showthread.php?tid=169284
And this is what my script looks like..:
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <streamer>
new engine,lights,alarm,doors,bonnet,boot,objective;
new MyFirstNPCVehicle; //Global variable!
new Ownage; // The name is not really important, this can be anything you want.
#if defined FILTERSCRIPT
ConnectNPC("Dave","Taxi");
//////DEFINES---------------------------------------------------------------------------
#define VEHICLE_PARAMS_UNSET -1 //This sets if your using the params
#define VEHICLE_PARAMS_OFF 0 //This will set your params OFF
#define VEHICLE_PARAMS_ON 1 //This will set your params ON
#define VEHICLE_PARAMS_UNSET -1 //This sets if your using the params
#define VEHICLE_PARAMS_OFF 0 //This will set your params OFF
#define VEHICLE_PARAMS_ON 1 //This will set your params ON
native SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
native GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective);
//////NEW---------------------------------------------------------------------------------
new CPID = -1; //CPID
new PlayerCP[MAX_PLAYERS] = -1; //PlayerCheckpoints (Only one can be active at once).
new CPinfo[MAX_CPS][Info]; //CPINFO
new CPActive[MAX_PLAYERS][MAX_CPS]; //CPActive for player
new CPDisabled[MAX_CPS]; //For disabling checkpoints
new pClass[MAX_PLAYERS];
new fuel[MAX_VEHICLES]; //fuel per vehicle
new isrefuelling[MAX_PLAYERS] = 0; //bool to check if player is already refuelling
new Text:td_fuel[MAX_PLAYERS]; //textdraw with fuel
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Cops N Robbers");
AddStaticVehicle(411,1534.6487,-841.9625,64.7241,272.6874,64,-1); // LSCar1
AddStaticVehicle(412,1530.0057,-813.1848,71.7662,272.7969,10,-1); // LSCar2
AddStaticVehicle(413,1308.7863,-871.3706,39.6694,90.1849,88,-1); // LSCar3
AddStaticVehicle(495,1308.6464,-857.0980,39.8402,264.4912,119,-1); // LSCar4
AddStaticVehicle(478,1227.3051,-914.3173,42.8917,99.6526,66,-1); // LSCar5
AddStaticVehicle(401,1093.0397,-933.9193,42.8320,181.5240,47,-1); // LSCar6
AddStaticVehicle(400,1099.5900,-934.0632,43.2243,0.4778,123,-1); // LSCar7
AddStaticVehicle(402,1109.5485,-932.6107,43.0205,0.9553,13,-1); // LSCar8
AddStaticVehicle(405,981.7675,-914.7023,41.6696,270.6808,24,-1); // LSCar9
AddStaticVehicle(416,1178.6799,-1308.3552,13.9693,268.9080,1,-1); // LSCar10
AddStaticVehicle(416,1179.6721,-1339.6047,13.9702,271.9547,1,-1); // LSCar11
AddStaticVehicle(416,2009.9264,-1409.9917,17.1416,87.8985,1,-1); // LSCar12
AddStaticVehicle(416,2036.5782,-1434.4010,17.2969,176.9277,1,-1); // LSCar13
AddStaticVehicle(486,1252.3615,-1256.3636,13.4424,344.8804,1,-1); // LSCar14
AddStaticVehicle(406,1269.4473,-1253.5597,15.0754,223.4960,1,-1); // LSCar15
AddStaticVehicle(448,2097.7607,-1821.7448,12.9830,89.7113,3,-1); // LSCar16
AddStaticVehicle(448,2097.8757,-1818.6608,12.9814,88.8909,3,-1); // LSCar17
AddStaticVehicle(448,2097.8950,-1814.1558,12.9824,87.1804,3,-1); // LSCar18
AddStaticVehicle(525,1834.9883,-1871.0594,13.2705,358.6844,17,-1); // LSCar19
AddStaticVehicle(420,1673.8625,-2314.9456,13.2384,90.9683,6,-1); // LSCar20
AddStaticVehicle(420,1664.0035,-2314.8884,13.2379,89.6478,6,-1); // LSCar21
AddStaticVehicle(420,1653.5078,-2314.8809,13.2380,89.9867,6,-1); // LSCar22
AddStaticVehicle(420,1645.9885,-2314.9268,13.2433,90.6388,6,-1); // LSCar23
AddStaticVehicle(528,1534.2731,-1644.3558,5.9305,181.6270,0,-1); // LSCar24
AddStaticVehicle(596,1574.3873,-1711.1531,5.6144,4.2639,0,-1); // LSCar25
AddStaticVehicle(596,1601.0695,-1704.2886,5.6180,270.1152,0,-1); // LSCar26
AddStaticVehicle(596,1602.5520,-1688.1334,5.6179,269.2105,0,-1); // LSCar27
AddStaticVehicle(596,1603.8253,-1605.6388,13.2305,89.9197,0,-1); // LSCar28
AddStaticVehicle(528,1604.1610,-1614.2611,13.5544,90.0084,0,-1); // LSCar29
AddStaticVehicle(528,1604.8850,-1622.9271,13.5595,88.1571,0,-1); // LSCar30
AddStaticVehicle(523,1575.7285,-1616.2169,12.9514,180.0857,0,-1); // LSCar31
AddStaticVehicle(523,1573.8468,-1616.1836,12.9489,181.1410,0,-1); // LSCar32
AddStaticVehicle(523,1572.5463,-1616.1769,12.9536,179.5106,0,-1); // LSCar33
AddStaticVehicle(523,1571.5837,-1616.3890,12.9515,179.4554,0,-1); // LSCar34
AddStaticVehicle(523,1569.2308,-1616.4099,12.9484,179.9824,0,-1); // LSCar35
AddStaticVehicle(523,1566.5225,-1616.2666,12.9522,180.9859,0,-1); // LSCar36
AddStaticVehicle(523,1563.5713,-1616.4000,12.9479,180.8197,0,-1); // LSCar37
AddStaticVehicle(523,1561.3580,-1616.3832,12.9493,182.5678,0,-1); // LSCar38
AddStaticVehicle(523,1558.6333,-1616.1097,12.9484,179.5898,0,-1); // LSCar39
AddStaticVehicle(539,2960.9033,-1488.1755,0.6447,356.4874,79,-1); // LSCar 39
AddStaticVehicle(572,645.0219,-1235.7073,17.5689,190.9710,117,-1); // LSCar40
AddStaticVehicle(572,785.2281,-1164.0128,22.7555,96.9545,117,-1); // LSCar41
AddStaticVehicle(572,771.7733,-1144.3472,22.8911,99.6415,117,-1); // LSCar42
AddStaticVehicle(582,783.0779,-1378.7587,13.7092,88.1454,41,-1); // LSCar43
AddStaticVehicle(582,782.5533,-1368.7842,13.5977,90.7664,41,-1); // LSCar44
AddStaticVehicle(582,782.7850,-1350.7349,13.5974,91.1649,41,-1); // LSCar45
AddStaticVehicle(582,782.8329,-1335.2057,13.5999,89.1507,41,-1); // LSCar46
AddStaticVehicle(560,343.6566,-1809.3043,4.2251,180.1609,9,-1); // LSCar47
AddStaticVehicle(560,317.9431,-1809.0635,4.1878,182.4995,17,-1); // LSCar48
AddStaticVehicle(560,800.2913,-1789.1107,13.0203,266.3163,17,-1); // LSCar49
AddStaticVehicle(560,783.0086,-1630.3766,13.0878,89.1931,17,-1); // LSCar50
AddStaticVehicle(560,997.0927,-1307.0887,13.0899,177.9513,17,-1); // LSCar51
AddStaticVehicle(425,2745.8052,-2442.5254,14.2151,265.9214,43,0); // LSCar52
AddStaticVehicle(425,2746.0132,-2463.4844,14.2184,273.4626,43,0); // LSCar53
AddStaticVehicle(432,2787.3140,-2417.2800,13.6462,90.3056,43,0); // LSCar54
AddStaticVehicle(432,2788.5068,-2456.0117,13.6449,91.2921,43,0); // LSCar55
AddStaticVehicle(432,2788.9810,-2494.1216,13.6599,91.1456,43,0); // LSCar56
AddStaticVehicle(433,2779.5264,-2400.1848,14.0678,89.2640,43,0); // LSCar57
AddStaticVehicle(433,2781.7432,-2510.6218,14.0690,85.2452,43,0); // LSCar58
AddStaticVehicle(433,2758.5488,-2520.6794,14.0765,359.7101,43,0); // LSCar59
AddStaticVehicle(442,937.9108,-1096.8409,24.1688,230.4062,0,0); // LSCar60
AddStaticVehicle(442,929.4304,-1096.8191,24.1747,228.9066,0,0); // LSCar61
AddStaticVehicle(442,941.2000,-1109.4731,24.0366,315.8755,0,0); // LSCar62
AddStaticVehicle(442,932.3343,-1109.9440,24.0305,309.8549,0,0); // LSCar63
AddStaticVehicle(485,2007.0033,-2447.6729,13.2053,87.1238,1,75); // LSCar64
AddStaticVehicle(400,-260.5457,1056.3306,19.8715,268.7226,-1,-1); // fort carson in drive
AddStaticVehicle(400,-345.8235,1514.3239,75.4517,1.1434,-1,-1); // satalite spawn
AddStaticVehicle(411,2250.0283,1745.9657,10.5474,0.4763,-1,-1); // behind caligs
AddStaticVehicle(411,2186.4280,1974.9047,10.5474,269.7653,-1,-1); // 24 7 off strip
AddStaticVehicle(411,2582.5378,2267.8010,10.5473,90.0122,-1,-1); // vrock
AddStaticVehicle(412,-36.7159,1166.4210,19.3073,179.1232,-1,-1); //
AddStaticVehicle(412,-165.0882,2698.1201,62.2406,268.9153,-1,-1); //
AddStaticVehicle(525,2013.6302,2295.3477,10.6977,180.4832,-1,-1); // towtruck
AddStaticVehicle(420,1714.3792,1463.8660,10.4760,161.7229,-1,-1); // LV airport
AddStaticVehicle(560,2240.9912,2258.8062,10.4231,273.1421,-1,-1); // wastelandjust south of PD
AddStaticVehicle(560,2657.9558,2326.0093,10.4489,166.1163,-1,-1); // vrock hotel
AddStaticVehicle(560,2364.0537,1655.9087,10.5250,88.8932,-1,-1); // carpark behind caligs
AddStaticVehicle(560,2292.5906,1448.0037,38.9831,91.1639,-1,-1); // top floor multistory at pyramid
AddStaticVehicle(560,2038.6998,1009.3288,10.3772,179.8236,-1,-1); // outside four dragons
AddStaticVehicle(405,1673.0708,1297.5497,10.6953,357.9945,-1,-1); // lv airport carpark
AddStaticVehicle(405,1289.8744,1379.4893,10.6953,88.8806,-1,-1); // at tankers lv airport
AddStaticVehicle(405,1311.0771,1258.1323,10.6953,358.7266,-1,-1); // lvpd air unit
AddStaticVehicle(402,1628.7238,2229.1563,10.6521,1.5808,-1,-1); // redsands casino
AddStaticVehicle(402,1963.3129,2410.9758,10.6520,179.1552,-1,-1); //
AddStaticVehicle(402,2553.6895,2317.9258,10.6520,179.5711,-1,-1); //
AddStaticVehicle(409,1658.5117,2259.5540,10.6203,90.7668,-1,-1); // limo redsands
AddStaticVehicle(426,-289.1980,1317.1255,54.0285,263.1293,-1,-1); //
AddStaticVehicle(426,-324.4553,1514.7328,75.1027,357.5986,-1,-1); //
AddStaticVehicle(429,2370.7654,2578.0522,10.5000,180.6153,-1,-1); //
AddStaticVehicle(429,2512.2239,2374.3684,10.5000,269.6915,-1,-1); //
AddStaticVehicle(429,2103.7051,2089.0283,10.5015,268.6300,-1,-1); //
AddStaticVehicle(581,2139.5164,2468.5984,10.4130,178.0234,-1,-1); //
AddStaticVehicle(581,2611.1777,2279.4063,10.4130,269.3283,-1,-1); //
AddStaticVehicle(598,2316.4802,2475.2651,3.0217,90.3534,0,1); // lvpd car
AddStaticVehicle(598,2316.4194,2480.0454,3.0615,88.5152,0,1); // lvpd car
AddStaticVehicle(598,2316.4380,2485.3369,3.0167,89.5960,0,1); // lvpd car
AddStaticVehicle(598,2316.3765,2490.0940,3.0220,91.9465,0,1); // lvpd car
AddStaticVehicle(598,2316.2776,2495.1895,3.0200,90.2339,0,1); // lvpd car
AddStaticVehicle(598,2316.4250,2500.2219,3.0197,89.7058,0,1); // lvpd car
AddStaticVehicle(598,2296.8850,2460.2275,3.0203,88.8503,0,1); // lvpd car
AddStaticVehicle(598,2119.0054,929.0891,10.5671,88.3309,-1,-1); // lvpd car (ammu south lv)
AddStaticVehicle(598,2790.7935,609.4611,10.6448,239.4174,-1,-1); // lvpd car (abandoned)
AddStaticVehicle(598,1309.5187,1278.6099,10.5672,178.9121,-1,-1); // lvpd car
AddStaticVehicle(598,1306.3010,1278.7461,10.5685,181.5038,-1,-1); // lvpd car
AddStaticVehicle(560,2246.4089,2430.0127,2.9793,359.4404,0,0); // new
AddStaticVehicle(597,2297.0229,2451.5276,3.0412,268.7933,0,1); // sfpd car
AddStaticVehicle(597,2260.4841,2458.9121,10.5888,178.9466,0,1); // sfpd car
AddStaticVehicle(597,2363.8188,2462.1348,10.4410,359.1209,0,1); // sfpd car
AddStaticVehicle(411,2240.8706,2431.6042,3.0005,315.8528,0,0); // infernus
AddStaticVehicle(490,2239.6072,2451.8501,3.3989,269.9625,0,0); // fbi
AddStaticVehicle(490,2239.6563,2456.7458,3.4010,269.4568,0,0); // fbi
AddStaticVehicle(490,2282.1882,2477.2366,10.9477,178.9290,0,0); // fbi
AddStaticVehicle(490,2301.3066,2416.7947,10.8004,90.2152,0,0); // fbi
AddStaticVehicle(523,2277.6663,2473.0217,2.8415,176.6104,0,0); // bike
AddStaticVehicle(523,2240.1062,2471.1702,2.8380,90.2868,0,0); // bike
AddStaticVehicle(523,2268.6572,2430.7412,2.8447,177.7989,0,0); // bike
AddStaticVehicle(601,2311.3298,2448.9504,10.5789,157.6322,1,1); // fbi tank
AddStaticVehicle(601,2251.6313,2444.0747,10.5807,178.9412,1,1); // fbi tank
AddStaticVehicle(597,2263.6372,2473.2419,3.0424,0.0609,0,0);
AddStaticVehicle(597,2268.2463,2473.2190,3.0424,0.1667,0,0); //
AddStaticVehicle(597,2352.3809,1609.3071,10.4399,270.3242,0,0); //
AddStaticVehicle(597,2316.7251,2460.4163,3.0418,269.1222,0,0); //
AddStaticVehicle(597,2256.1438,2477.6895,10.5879,358.7498,0,0); //
AddStaticVehicle(597,2250.6978,2430.0125,3.0430,179.4021,0,0); //
AddStaticVehicle(497,1341.8801,1255.5431,19.5425,44.5802,-1,-1); // police maverick
AddStaticVehicle(497,1340.3700,1236.4381,19.5203,294.8706,-1,-1); // police maverick
AddStaticVehicle(497,1323.0903,1237.8447,19.5173,10.1612,-1,-1); // police maverick
AddStaticVehicle(497,1296.6628,1236.6494,19.5190,52.4852,-1,-1); // police maverick
AddStaticVehicle(497,1299.8175,1255.5842,19.5236,316.4109,-1,-1); // police maverick
AddStaticVehicle(497,3748.3474,470.5863,37.9441,90.8746,-1,-1); // police maverick at alkatraz
AddStaticVehicle(430,2288.1111,518.8869,-0.1907,91.3782,-1,-1); // Predator
AddStaticVehicle(430,2299.9636,518.9166,-0.1355,269.2642,-1,-1); // Predator
AddStaticVehicle(430,2282.2551,538.3450,-0.2159,147.9407,-1,-1); // Predator
AddStaticVehicle(430,2306.7380,539.2404,-0.3769,217.6788,-1,-1); // Predator Alkatraz
AddStaticVehicle(430,3592.4229,514.0565,0.4481,0.5782,0,0); // Predator Alkatraz
AddStaticVehicle(430,3630.9941,500.9380,-0.8119,358.3138,0,0); // Predator Alkatraz
AddStaticVehicle(430,3620.9778,499.9655,0.3282,1.9102,0,0); // Predator Alkatraz
AddStaticVehicle(430,2879.2646,475.6259,-0.4424,88.2338,77,77); // pred at aircraft carrier
AddStaticVehicle(416,1616.1962,1832.7340,10.9688,270.0724,1,86); // Ambulance
AddStaticVehicle(416,1607.7017,1832.7179,10.9696,270.0573,1,86); // Ambulance
AddStaticVehicle(416,1598.8495,1832.7233,10.9696,270.0156,1,86); // Ambulance
AddStaticVehicle(416,1610.3152,1838.5310,10.9695,269.8784,1,86); // Ambulance
AddStaticVehicle(407,1763.7043,2076.9663,11.0527,180.1710,-1,-1); // fire engine
AddStaticVehicle(407,1751.3513,2076.5618,11.0565,180.1663,-1,-1); // fire engine
AddStaticVehicle(487,1622.6943,1852.4388,10.9966,179.0737,86,86); // heli new medic1
AddStaticVehicle(487,1590.5546,1852.2444,10.9957,179.3921,86,86); // heli medic new 2
AddStaticVehicle(579,1882.1576,953.9945,10.7521,268.3038,0,0); //
AddStaticVehicle(579,1882.1141,957.1571,10.7510,271.8213,0,0); //
AddStaticVehicle(579,1909.5972,962.4758,10.7515,179.1707,0,0); //
AddStaticVehicle(520,2931.0613,465.3756,19.3782,1.1622,0,0); // hydra carrier
AddStaticVehicle(520,2917.5867,465.7890,19.3795,312.2032,0,0); // hydra carrier
AddStaticVehicle(520,2899.7839,465.5906,19.3723,311.8952,0,0); // hydra carrier
AddStaticVehicle(425,3062.4238,466.6560,19.2461,52.5798,43,0); // hunter carrier
AddStaticVehicle(425,3047.4338,466.8032,19.2559,46.4933,43,0); // hunter carrier
AddStaticVehicle(425,3034.5884,467.3791,19.2494,41.5143,43,0); // hunter carrier
AddStaticVehicle(460,3870.3757,521.3595,1.5988,265.3323,-1,-1); // seaplane at alcatraz
AddStaticVehicle(460,3976.7407,515.1458,2.3438,262.1897,-1,-1); // seaplane at alcatraz
AddStaticVehicle(460,2979.3538,2103.4531,1.1234,296.8892,-1,-1); // seaplane
AddStaticVehicle(460,2565.8223,494.8676,2.1482,270.9538,-1,-1); // seaplane
AddStaticVehicle(460,2105.4067,-95.3821,1.6661,123.0410,-1,-1); // seaplane
AddStaticVehicle(460,-1152.5420,14.8533,1.5873,319.1891,-1,-1); // seaplane
AddStaticVehicle(460,-1464.0345,693.4573,1.8334,357.9172,-1,-1); // seaplane
AddStaticVehicle(420,1158.4103,1397.3376,5.5998,89.9673,6,1); // driver spawn
AddStaticVehicle(420,1158.4358,1401.3970,5.5994,88.4158,6,1); // driver spawn
AddStaticVehicle(420,1158.4359,1405.6311,5.5991,89.8338,6,1); // driver spawn
AddStaticVehicle(420,1158.4196,1410.0563,5.5988,89.9406,6,1); // driver spawn
AddStaticVehicle(420,1158.6406,1414.4780,5.5995,238.2890,6,1); // driver spawn
AddStaticVehicle(420,1158.7196,1419.6169,5.5992,235.1454,6,1); // driver spawn
AddStaticVehicle(420,1144.6538,1397.5892,5.5997,181.1381,6,1); // driver spawn
AddStaticVehicle(420,1709.5975,1447.3756,10.4755,162.8830,-1,-1); // LV airport
AddStaticVehicle(420,-1419.6381,-309.1965,13.7791,44.0550,-1,-1); // sf airport
AddStaticVehicle(420,-1425.3394,-303.7048,13.7733,47.2148,-1,-1); // sf airport
AddStaticVehicle(420,-1431.3544,-298.4751,13.7790,48.9959,-1,-1); // sf airport
AddStaticVehicle(420,-1437.9172,-293.7115,13.7759,55.7972,-1,-1); // sf airport
AddStaticVehicle(431,1120.7922,1421.6825,5.9203,270.1187,-1,-1); // coach
AddStaticVehicle(431,1120.8073,1417.2930,5.9213,270.2127,-1,-1); // coach
AddStaticVehicle(431,1123.4386,1401.6411,5.9139,359.5022,-1,-1); // coach
AddStaticVehicle(409,2184.7378,1683.6982,10.8875,89.3902,-1,-1); // limo caligs
AddStaticVehicle(409,2038.6005,1017.8719,10.4719,180.5361,-1,-1); // limo fourdrags
AddStaticVehicle(409,1135.3848,1397.7670,5.6203,0.0212,1,1); // limo driver spawn
AddStaticVehicle(409,1139.5439,1397.7987,5.6203,359.6214,1,1); //
AddStaticVehicle(487,1545.1851,1769.6086,10.9971,87.6224,-1,-1); // maverick at beagles
AddStaticVehicle(487,1549.3344,1753.1544,10.9930,270.5984,-1,-1); // maverick at beagles2
AddStaticVehicle(487,1619.0939,1356.7064,10.9488,136.5968,-1,-1); // heli airport1
AddStaticVehicle(487,1573.9966,1355.0909,11.0338,132.8060,-1,-1); // heli airport 2
AddStaticVehicle(487,1573.1521,1419.7258,11.0533,77.8943,-1,-1); // heli airport3
AddStaticVehicle(487,365.5160,2536.9846,16.8408,176.7653,-1,-1); // maverick airstrip
AddStaticVehicle(487,2093.1401,2414.8337,74.7489,356.9587,-1,-1); // maverick emerald isle
AddStaticVehicle(408,2762.6511,2629.0281,11.3657,205.4371,26,26); // new trash truck
AddStaticVehicle(408,2769.2124,2629.0071,11.3813,205.0175,26,26); // new trash truck
AddStaticVehicle(408,2599.8892,2171.3806,11.3604,124.5986,26,26); // new trash
AddStaticVehicle(408,2091.6597,2142.2932,11.3669,270.1578,26,26); // new trash
AddStaticVehicle(408,2118.9285,1894.8378,11.2368,179.9940,26,26); // new trash
AddStaticVehicle(408,1996.2535,1073.2250,11.3617,359.8930,26,26); // new trash
AddStaticVehicle(408,2229.8176,950.9883,11.3686,180.1651,26,26); // new trash
AddStaticVehicle(411,2208.4243,1392.3295,10.5474,90.6794,-1,-1); // car dealer infernus
AddStaticVehicle(451,2191.2715,1392.6343,10.5273,88.8673,-1,-1); // car dealer turismo
AddStaticVehicle(428,2372.0300,1609.5376,10.7954,269.7663,4,75); // secure vans behind bank
AddStaticVehicle(428,2362.9207,1609.5750,10.7926,269.7670,4,75); // secure vans behind bank
AddStaticVehicle(591,2173.2791,1830.5649,11.4172,89.6210,-1,-1); //
AddStaticVehicle(591,2467.7417,1923.5344,9.4265,359.1829,-1,-1); // artics
AddStaticVehicle(591,2058.5928,2251.2957,10.1730,90.8581,-1,-1); // artics
AddStaticVehicle(591,1623.9597,2325.8767,10.4789,179.2105,-1,-1); // artics
AddStaticVehicle(591,1597.8265,1630.5233,10.4801,177.9328,-1,-1); // artics
AddStaticVehicle(591,1694.1700,960.6252,10.4550,89.7094,-1,-1); // artics
AddStaticVehicle(591,2179.9382,1017.4482,10.4800,201.2279,-1,-1); // artics
AddStaticVehicle(591,2123.1150,957.1656,10.4744,273.0740,-1,-1); // artics
AddStaticVehicle(514,2207.5239,1789.5764,11.4052,181.3414,-1,-1); //
AddStaticVehicle(514,842.7371,868.4437,13.8652,294.8057,-1,-1); //
AddStaticVehicle(514,1049.8719,2131.8743,11.4259,89.0901,-1,-1); //
AddStaticVehicle(514,1408.7637,2088.9531,11.5369,177.8576,-1,-1); //
AddStaticVehicle(514,2654.4961,1134.1520,11.4056,358.1617,-1,-1); // SE Gas station
AddStaticVehicle(514,1308.3387,1411.3556,11.3949,60.5554,-1,-1); // LV airport
AddStaticVehicle(514,2260.9292,2770.3232,11.4264,90.1708,-1,-1); //
AddStaticVehicle(504,-1421.4108,995.0195,1023.9284,187.5995,-1,-1); //
AddStaticVehicle(504,-1420.1169,987.1750,1023.7940,6.9317,-1,-1); //
AddStaticVehicle(504,-1425.8875,994.6539,1023.9357,7.6189,-1,-1); //
AddStaticVehicle(504,-1424.7188,986.3735,1023.7917,187.2283,-1,-1); //
AddStaticVehicle(504,-1429.3414,986.0947,1023.7928,6.5205,-1,-1); //
AddStaticVehicle(504,-1430.6591,993.7530,1023.9292,187.9536,-1,-1); //
AddStaticVehicle(504,-1433.3226,978.8489,1023.7661,323.5251,-1,-1); //
AddStaticVehicle(504,-1435.7758,985.1437,1023.7878,276.9260,-1,-1); //
AddStaticVehicle(504,-1436.6047,993.0659,1023.9309,276.8188,-1,-1); //
AddStaticVehicle(504,-1435.9889,999.1473,1024.0264,236.7130,-1,-1); //
AddStaticVehicle(448,2076.1016,2227.7793,10.4197,182.2776,-1,-1); // pizzaboy1
AddStaticVehicle(448,2074.2893,2227.7356,10.4198,178.3668,-1,-1); // pizzaboy2
AddStaticVehicle(448,2072.4226,2228.1094,10.4173,358.1902,-1,-1); // pizza3
AddStaticVehicle(525,1987.1045,2288.6025,10.6135,270.2471,-1,-1); // towtruck
AddStaticVehicle(525,1995.5443,2288.6602,10.6209,270.3867,-1,-1); // towtruck
AddStaticVehicle(519,1318.3536,1594.7084,11.7389,270.7145,1,1); // shamal
AddStaticVehicle(519,1318.3253,1571.2150,11.7427,270.1246,1,1); // shamal
AddStaticVehicle(578,-526.7448,2620.3787,54.0389,359.4019,1,1);
AddStaticVehicle(578,-909.9553,2697.5984,42.9924,130.8771,1,1); //
AddStaticVehicle(578,-198.4705,2607.2178,63.3289,180.1292,1,1); //
AddStaticVehicle(578,1480.1882,2846.8203,11.4454,358.4138,1,1); //
AddStaticVehicle(578,1633.1060,2340.2183,11.2455,92.0694,1,1); //
AddStaticVehicle(578,1909.2942,2258.5046,11.4444,270.0823,1,1); //
AddStaticVehicle(511,1542.9960,1840.6337,12.1951,91.0842,-1,-1); // beagle1
AddStaticVehicle(511,1543.4858,1815.3352,12.1963,90.7103,-1,-1); // beagle2
AddStaticVehicle(511,1543.8823,1790.8335,12.1951,90.3567,-1,-1); // beagle3
AddStaticVehicle(511,383.0163,2535.7126,17.9211,179.5423,8,66); // beagle at airstrip
AddStaticVehicle(481,2084.4128,1082.8064,10.3308,235.7149,6,6); // BMX
AddStaticVehicle(481,2018.2346,1347.9608,10.3362,266.5774,6,6); // BMX
AddStaticVehicle(481,2004.7864,1546.3557,13.1020,114.6564,6,6); // BMX
AddStaticVehicle(468,2561.5830,1578.8514,10.4888,87.0434,-1,-1); // sanchez
AddStaticVehicle(468,2051.8228,819.7362,7.2582,88.2762,-1,-1); // sanchez bottom strip
AddStaticVehicle(468,1521.6385,986.0881,10.4888,1.4943,-1,-1); // sanchez
AddStaticVehicle(577,1477.6705,1817.5233,10.7286,179.7935,8,7); // at400
AddStaticVehicle(513,329.5012,2474.1362,17.0532,53.6861,-1,-1); // stuntplane airstrip
AddStaticVehicle(513,340.5403,2474.4924,17.0299,48.4815,-1,-1); // stunt 2 airstrip
AddStaticVehicle(513,1353.0137,1707.2864,11.3751,270.4409,-1,-1); // stunt lv airport
AddStaticVehicle(513,-1343.3337,-281.7327,14.6970,326.1327,-1,-1); // stunt sf
AddStaticVehicle(513,-1383.2651,-229.1063,14.6913,319.7043,-1,-1); // stunt sf
AddStaticVehicle(513,1686.5472,-2629.0112,14.0899,357.1628,-1,-1); // stunt ls
AddStaticVehicle(513,1624.4884,-2631.1340,14.1013,358.6935,-1,-1); // stunt ls
AddStaticVehicle(595,2880.1399,480.4556,0.4235,89.8792,77,77); // launch at aricraft casrier
AddStaticVehicle(595,2982.8508,494.6537,-0.3568,270.0419,112,20); // launch
AddStaticVehicle(595,3022.6843,494.5869,0.9674,272.4197,112,20); // launch
AddStaticVehicle(595,3048.0571,439.7083,0.0367,81.2992,112,20); // launch
AddStaticVehicle(595,2848.1538,457.8650,0.0415,310.5009,112,20); // launch
AddStaticVehicle(595,2280.8005,525.0524,0.1593,317.8949,112,20); // launch
AddStaticVehicle(595,3642.0657,531.2183,-0.5265,87.8562,112,20); // launch
AddStaticVehicle(493,2367.1226,514.3972,-0.0291,177.5325,-1,-1); // letmax
AddStaticVehicle(493,2352.3398,514.6149,-0.1203,178.0770,-1,-1); // jetmax
AddStaticVehicle(493,3700.3523,536.7863,-0.3763,267.7268,-1,-1); // jetmax
AddStaticVehicle(493,3981.5759,443.6727,1.2028,182.0452,-1,-1); // jetmax
AddStaticVehicle(493,2619.1726,536.8918,1.2353,102.1477,-1,-1); // jetmax
AddStaticVehicle(493,2319.9363,487.3689,-0.1096,88.0939,-1,-1); // jetmax
AddStaticVehicle(493,1628.6343,570.8010,-0.1023,89.2489,-1,-1); // jetmax
AddStaticVehicle(493,-87.5311,-572.5739,-0.1772,215.5085,-1,-1); // jetmax
AddStaticVehicle(493,301.5171,-1936.7384,-0.1729,307.8127,-1,-1); // jetmax
AddStaticVehicle(493,324.5273,-1931.1113,0.0345,192.7069,-1,-1); // jetmax
AddStaticVehicle(493,720.0939,-1701.7401,-0.2107,354.2910,-1,-1); // jetmax
AddStaticVehicle(493,719.7071,-1635.2107,0.0227,359.6180,-1,-1); // jetmax
AddStaticVehicle(493,2446.8323,-2716.9158,0.2881,267.0415,-1,-1); // jetmax
AddStaticVehicle(493,2597.2388,-2479.9136,-0.2891,266.8047,-1,-1); // jetmax
AddStaticVehicle(560,2076.2837,1260.0215,10.3314,179.9376,0,0); // sultan admin 212
AddStaticVehicle(451,2114.4238,1235.1420,10.5268,267.4263,0,0); // turismo admin 213
AddStaticVehicle(562,2076.2898,1266.0883,10.3315,179.9381,0,0); // elegy admin 215
AddStaticVehicle(558,2092.1531,1270.5258,10.4498,90.0759,0,0); // uranus admin 216
AddStaticVehicle(470,2532.7153,2092.9478,10.7395,2.1899,-1,-1); // gun delivery patriot north ammu lv
AddStaticVehicle(470,2156.2000,935.4752,10.8169,0.1451,-1,-1); // gun dealer patriot south ammu lv
AddStaticVehicle(470,2233.4819,2453.5588,-7.4597,270.8889,-1,-1); // at lvpd
AddStaticVehicle(470,2233.4524,2463.1221,-7.4577,271.5103,-1,-1); // at lvpd
Ownage = AddStaticVehicle(439,670.0983,-1264.6492,13.4335,182.1995,8,17);
AddPlayerClass(0,1135.3297,-926.6605,43.1797,176.4573,0,0,0,0,0,0); // Spawn1
AddPlayerClass(0,1334.1880,-985.5864,33.8966,276.2436,0,0,0,0,0,0); // Spawn2
AddPlayerClass(0,1844.2899,-1862.7887,13.3828,89.2067,0,0,0,0,0,0); // Spawn3
AddPlayerClass(0,2099.6460,-1806.2352,13.5547,99.4079,0,0,0,0,0,0); // Spawn4
//OBJECTS -----------------------------------------------------------------------------
CreateObject(969, 2719.984375, -2409.6875, 12.69114780426, 0, 0, 90);
CreateObject(969, 2720.4814453125, -2508.2836914063, 12.655790328979, 0, 0, 90);
CreateObject(8240, 2804.0749511719, -2653.0373535156, 3.0143575668335, 0, 0, 0);
CreateObject(1337, 1552.7436523438, -1637.8193359375, 13.204010009766, 0, 0, 0);
CreateObject(5002, 2790.4479980469, -2598.0092773438, 7.8710250854492, 0, 0, 9);
CreateObject(4866, 2808.7392578125, -2720.8981933594, 1.384635925293, 0, 0, 90);
CreateObject(2942, 2124.9992675781, -1768.7940673828, 13.210656166077, 0, 0, 90);
CreateObject(5002, 2779.1376953125, -2630.7482910156, 62.547500610352, 0, 0, 180);
CreateObject(2942, 2128.2905273438, -1771.4705810547, 13.202187538147, 0, 0, 270);
CreateObject(2942, 353.44250488281, -1354.4564208984, 14.150712013245, 0, 0, 300);
CreateObject(2942, 1074.4436035156, -1327.2060546875, 13.220196723938, 0, 0, 270);
CreateObject(2942, 1973.4357910156, -2013.3853759766, 13.189774513245, 0, 0, 0);
CreateObject(5243, 2981.6259765625, -624.55743408203, 9.4108457565308, 0, 0, 90);
CreateObject(4108, 3014.5427246094, -624.37945556641, 1.2282810211182, 0, 0, 90);
CreateObject(2910, 3014.9094238281, -625.16467285156, 4.2497701644897, 0, 0, 90);
CreateObject(5243, 3059.8146972656, -625.00207519531, 9.4108457565308, 0, 0, 90);
CreateObject(2910, 3177.1557617188, -625.14117431641, 4.1688737869263, 0, 0, 90);
CreateObject(5243, 3136.8251953125, -624.72778320313, 9.3299493789673, 0, 0, 90);
CreateObject(5243, 3218.1008300781, -624.54217529297, 9.3299493789673, 0, 0, 90);
CreateObject(4647, 3326.9294433594, -603.27508544922, 9.1130390167236, 0, 0, 0);
CreateObject(4556, 3329.2546386719, -625.00329589844, 3.8998498916626, 0, 0, 180);
CreateObject(4519, 2947.8198242188, -625.71820068359, 6.4855403900146, 0, 0, 180);
CreateObject(3091, 2949.5234375, -619.18572998047, 4.980749130249, 0, 0, 270);
CreateObject(3091, 2949.5234375, -631.1513671875, 4.980749130249, 0, 0, 269.99450683594);
print("Server");
ConnectNPC("Dave","Taxi");
MyFirstNPCVehicle = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
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)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Welcome!", "Read Over the following rules: \n 1.All hackers will be banned! \n 2.Insulting/Flame will not be tolerated \n 3.Dming will result in a ban", "I Accept", "I Decline");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "Taxi", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 420); //Putting the NPC into the vehicle we created for it.
}
return 1;
}
//Other stuff for normal players goes here!
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/startengine",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/stopengine",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/Teleport", true) == 0)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleport Menu", "Unity Station \n Los Santos Police Department", "Select", "Cancel");
return 1;
}
if(strcmp(cmdtext, "/lightsonn",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/lightsoff",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/turnonobjective",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,VEHICLE_PARAMS_ON);
}
return 1;
}
if(strcmp(cmdtext, "/turnoffobjective",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,VEHICLE_PARAMS_OFF);
}
return 1;
}
if(strcmp(cmdtext, "/closedoors",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/opendoors",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/alarmon",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/alarmoff",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/openbonnet",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/closebonnet",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/openboot",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
}
return 1;
}
if(strcmp(cmdtext, "/closeboot",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
}
return 1;
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xC2A2DAAA, "You Have Comitted Suicide");
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PlayerName[24]; // We create a variable which will contain the players name.
GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); // We use GetPlayerName to store the name in 'PlayerName'.
if(newstate == PLAYER_STATE_DRIVER) // Check the new state, since he's the driver in this case, we continue.
{
new Vehicle = GetPlayerVehicleID(playerid); // This saves the player's vehicle id into the variable 'vehicle'
if(Vehicle == Ownage) // We check if the vehicle is the one we don't want everyone to enter
{ // It is, so we continue.
if(strcmp(PlayerName,"Ownage",true)) // We use strcmp to check if the player who entered the car is the same as 'Matthias'
{
RemovePlayerFromVehicle(playerid); // It's not, so we remove the player from the car.
SendClientMessage(playerid, 0x33AA33AA, "I'm sorry, but this car has been reserved for Ownage"); // And we inform him about why he got removed from the car.
}
}
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
SendClientMessage(playerid,0x008000FF, "Welcome to Ownage Cops N Robbers.");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You have Declined the rules! Therefore you have been kicked.");
Kick(playerid);
}
return 1;
}
return 0;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}