Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define CARGO_CP_COORDS 1717.7792, 1238.7043, 34.9700
- #define LOC_MARKER 87
- #define CRATE_OBJ 2977
- #define INCLUDE_MAP
- #define INCLUDE_MAP_VEHICLES
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- /**
- Some random ass filterscript by blewert.
- Cargo FS. I released this because it really wasn't going to much
- use; and to be honest, people liked it when I was testing it.
- eggs.
- **/
- forward cargoOnFail( playerid );
- new Text3D:gCText,
- gCPlayerObj[ MAX_PLAYERS ];
- enum C_INFO
- {
- /* Position */
- Float:CPosX,
- Float:CPosY,
- Float:CPosZ,
- /* Strings */
- szCLocName [ 128 ],
- szCItemName[ 128 ],
- /* Prices */
- CiPrice,
- }
- new bool: gbCInCargo [ MAX_PLAYERS ],
- gCCurrentItem [ MAX_PLAYERS ][ C_INFO ],
- gCMultiplier [ MAX_PLAYERS ];
- new const _CARGO_LOCATIONS_[ ][ C_INFO ] =
- {
- /*HOLY SHIT ITS HUEG!*/
- /* FOOD OUTLETS */
- { 1872.0398,2086.5945,16.2689, "Burger Shot", "Burger Buns", 600 },
- { 1872.0398,2086.5945,16.2689, "Burger Shot", "Burgers", 500 },
- { 1872.0398,2086.5945,16.2689, "Burger Shot", "Cooking Oil", 400 },
- { 1872.0398,2086.5945,16.2689, "Burger Shot", "Spatulas", 500 },
- { 1872.0398,2086.5945,16.2689, "Burger Shot", "Underage Employees", 1000 },
- { 2481.2671,2022.0551,16.2671, "Burger Shot", "Burgers", 500 },
- { 2481.2671,2022.0551,16.2671, "Burger Shot", "Burger Buns", 600 },
- { 2481.2671,2022.0551,16.2671, "Burger Shot", "Cooking Oil", 400 },
- { 2481.2671,2022.0551,16.2671, "Burger Shot", "Spatulas", 500 },
- { 2481.2671,2022.0551,16.2671, "Burger Shot", "Underage Employees", 1000 },
- { 2388.3362,2035.2205,20.7600, \"Cluckin' Bell", "Chicken Bones", 300 },
- { 2388.3362,2035.2205,20.7600, \"Cluckin' Bell", "Chicken Wings", 600 },
- { 2388.3362,2035.2205,20.7600, \"Cluckin' Bell", "Seeded Buns", 500 },
- { 2388.3362,2035.2205,20.7600, \"Cluckin' Bell", "Factory Waste", 400 },
- { 2388.3362,2035.2205,20.7600, \"Cluckin' Bell", "Cooking Oil", 400 },
- { 2388.3362,2035.2205,20.7600, \"Cluckin' Bell", "Underage Employees", 1000 },
- /* GARAGES, ETC */
- { 1976.4663,2163.6094,17.5110, \"Pay 'n Spray", "Spray Paint Cans", 500 },
- { 2386.8640,1049.1097,18.5032, "Transfender", "Car Parts", 1600 },
- { 2386.8640,1049.1097,18.5032, "Transfender", "Quality Paint", 600 },
- { 1162.4761,1348.6008,14.7590, "the Bike School", "Helmets", 500 },
- { 1162.4761,1348.6008,14.7590, "the Bike School", "Spare Wheels", 500 },
- /* HOUSES AND APARTMENTS */
- { 2079.7483,2171.4097,10.9659, "Some Apartments", "BedSheets", 600 },
- { 2079.7483,2171.4097,10.9659, "Some Apartments", "Mail", 400 },
- { 2079.7483,2171.4097,10.9659, "Some Apartments", "Curtains", 500 },
- { 2079.7483,2171.4097,10.9659, "Some Apartments", "Dirty Socks", 500 },
- { 1970.5187,1915.0750,131.1205,"the Visage", "Air Freshener", 500 },
- { 1970.5187,1915.0750,131.1205,"the Visage", "Quality Bed Sheets", 1200 },
- { 2813.9641,2141.0579,19.5484, "Some Apartments", "Candles", 500 },
- { 2813.9641,2141.0579,19.5484, "Some Apartments", "Housemaids", 1500 },
- { 2813.9641,2141.0579,19.5484, "Some Apartments", "Mail", 400 },
- { 2813.9641,2141.0579,19.5484, "Some Apartments", "Dirty Socks", 400 },
- { 2000.6158,1564.7700,15.5439, "the Pirate Ship", "Broadswords", 900 },
- { 2000.6158,1564.7700,15.5439, "the Pirate Ship", "Scurvy Oranges", 600 },
- { 2000.6158,1564.7700,15.5439, "the Pirate Ship", "Pirate Flags", 700 },
- { 2000.6158,1564.7700,15.5439, "the Pirate Ship", "Eyepatches", 500 },
- { 2000.6158,1564.7700,15.5439, "the Pirate Ship", "Trained Parrots", 800 },
- /* SEXSHOP & STRIP CLUBS */
- { 2075.5208,2060.0713,26.7196, "the Sex Shop", \"Popz' Dildos", 1500 },
- { 2075.5208,2060.0713,26.7196, "the Sex Shop", "Gimpsuits", 1500 },
- { 2075.5208,2060.0713,26.7196, "the Sex Shop", "XXL Dildos", 1500 },
- { 2075.5208,2060.0713,26.7196, "the Sex Shop", "Creepy Old Men", 700 },
- { 702.0735,1945.0063,5.7520, "the Strip Club", "Thongs", 500 },
- { 702.0735,1945.0063,5.7520, "the Strip Club", "Imported Whores", 800 },
- { 702.0735,1945.0063,5.7520, "the Strip Club", "Steel Poles", 800 },
- { 702.0735,1945.0063,5.7520, "the Strip Club", "slappertassus", 900 },
- /* BANKS + GENERAL STORES */
- { 2199.3818,1991.1266,16.9405, "the Bank", "Haxed Cash", 750 },
- { 2254.5508,2386.3472,19.8632, "the Bank", \"Neonkiller's Milk", 700 },
- { 2254.5508,2386.3472,19.8632, "the Bank", "Sprunk", 500 },
- { 2254.5508,2386.3472,19.8632, "the Bank", \"Wong's Noodels", 500 },
- { 2254.5508,2386.3472,19.8632, "the Bank", \"Pig's Ears", 400 },
- /* AMMUNATIONS */
- { 2548.8655,2081.3513,15.8636, "North Ammunation", \"Guns n' Stuff", 2000 },
- { 2176.1409,943.4987,15.8532, "South Ammunation", \"Guns n' Stuff", 2000 },
- { 766.7244,1871.6785,8.2699, "Desert Ammunation", \"Guns n' Stuff", 2000 },
- { 2548.8655,2081.3513,15.8636, "North Ammunation", "Sawnoff Shotguns", 700 },
- { 2176.1409,943.4987,15.8532, "South Ammunation", "Sawnoff Shotguns", 700 },
- { 766.7244,1871.6785,8.2699, "Desert Ammunation", "Sawnoff Shotguns", 700 },
- /* CONSTRUCTION SITES */
- { 2458.3743,1918.7761,11.0690, "the Construction Site", "Cement Mixers", 600 },
- { 2458.3743,1918.7761,11.0690, "the Construction Site", "Bricks", 400 },
- { 2458.3743,1918.7761,11.0690, "the Construction Site", "Steel Pipes", 700 },
- { 2458.3743,1918.7761,11.0690, "the Construction Site", "Cement", 900 },
- { 2458.3743,1918.7761,11.0690, "the Construction Site", \"dugi's Hardhats", 600 },
- /* CHURCHES */
- { 2447.7117,1273.7064,10.9958, "the Church", "Bridal Dresses", 1500 },
- { 2447.7117,1273.7064,10.9958, "the Church", "Holy Water", 700 },
- { 2447.7117,1273.7064,10.9958, "the Church", "Blessed Crosses", 700 },
- { 1533.4536,776.9311,10.9976, "the Church", "Bobblehead Jesus Figurines", 400 },
- { 1533.4536,776.9311,10.9976, "the Church", "Vicar Robes", 800 },
- { 1533.4536,776.9311,10.9976, "the Church", "Leaflets", 200 },
- { 2477.0249,921.7415,10.9957, "the Church", "Vicar Robes", 800 },
- { 2477.0249,921.7415,10.9957, "the Church", "Leaflets", 200 },
- { 2477.0249,921.7415,10.9957, "the Church", "Holy Water", 700 },
- /* CLUBS */
- { 2506.0129,1238.0909,20.4913, "the Nightclub", "Fluorescent Tops", 500 },
- { 2506.0129,1238.0909,20.4913, "the Nightclub", "Vodka", 600 },
- { 2506.0129,1238.0909,20.4913, "the Nightclub", "Sprunk", 500 },
- { 2506.0129,1238.0909,20.4913, "the Nightclub", "Icecubes", 400 },
- { 2506.0129,1238.0909,20.4913, "the Nightclub", "Tequila", 900 },
- { 2506.0129,1238.0909,20.4913, "the Nightclub", "Shot Glasses", 500 },
- { 2506.0129,1238.0909,20.4913, "the Nightclub", "Gay Bartenders", 1100 },
- /* CASINOS*/
- { 1998.8507,1000.7745,39.2668, "4 Dragons Casino", "Casino Chips", 900 },
- { 1998.8507,1000.7745,39.2668, "4 Dragons Casino", \"Wong's Noodels", 500 },
- { 1998.8507,1000.7745,39.2668, "4 Dragons Casino", "Cheating Dealers", 1100 },
- { 2198.2810,1715.6333,34.6896, \"Caligula's Casino", "Casino Chips", 900 },
- { 2198.2810,1715.6333,34.6896, \"Caligula's Casino", "Cheating Dealers", 1100 },
- { 2227.8196,1838.5157,20.2101, \"The Clown's Pocket", "Novelty Horns", 600 },
- { 2227.8196,1838.5157,20.2101, \"The Clown's Pocket", "Never Ending Hankerchiefs", 800 },
- { 2227.8196,1838.5157,20.2101, \"The Clown's Pocket", "Cheating Dealers", 1100 },
- { 1936.7249,1362.6162,16.0038, "The High Roller", "Casino Chips", 900 },
- { 1936.7249,1362.6162,16.0038, "The High Roller", "Cheating Dealers", 1100 },
- /* PUBLIC SERVICES (COPS, HOSPITALS ETC) */
- { 1612.3298,1771.7421,37.4908, "the Hospital", "Surgeon Masks", 600 },
- { 1612.3298,1771.7421,37.4908, "the Hospital", "Defibrillators", 1600 },
- { 1612.3298,1771.7421,37.4908, "the Hospital", "Beds", 1000 },
- { 1612.3298,1771.7421,37.4908, "the Hospital", "Antiseptic Fluid", 600 },
- { 1612.3298,1771.7421,37.4908, "the Hospital", "Piss Bags", 400 },
- { 1612.3298,1771.7421,37.4908, "the Hospital", "Mops", 500 },
- { 2268.0715,2452.0437,47.1515, "the Cop Station", \"Guns n' Stuff", 2000 },
- { 2268.0715,2452.0437,47.1515, "the Cop Station", "Donuts", 600 },
- { 2268.0715,2452.0437,47.1515, "the Cop Station", "Vibrators", 700 },
- { 2268.0715,2452.0437,47.1515, "the Cop Station", "Planted Evidence", 1000 },
- { 2268.0715,2452.0437,47.1515, "the Cop Station", "Sirens", 700 },
- { 2268.0715,2452.0437,47.1515, "the Cop Station", "Radios", 500 },
- /* STADIUMS */
- { 1455.6696,2228.6482,33.3648, "the Baseball Stadium", "Foam Fingers", 800 },
- { 1455.6696,2228.6482,33.3648, "the Baseball Stadium", "Signed Bats", 1000 },
- { 1455.6696,2228.6482,33.3648, "the Baseball Stadium", "Mitts", 700 },
- { 1455.6696,2228.6482,33.3648, "the Baseball Stadium", "Baseballs", 200 },
- /* INDUSTRIAL */
- { 2617.0955,2721.3472,36.7162, "K.A.C.C", "Oil Drums", 400 },
- { 2617.0955,2721.3472,36.7162, "K.A.C.C", "Waste Containers", 700 },
- { 2843.5806,1618.4302,10.9968, "the Train Depo", "Train Bits", 1300 },
- /* AIRPORTS & BASES */
- { 1285.3234,1609.7433,20.0825, "LV Airport", "Rustler Wings", 1400 },
- { 1285.3234,1609.7433,20.0825, "LV Airport", "Lost Luggage", 300 },
- { 227.1653,1891.8550,17.8501, "Area 51", "Green Goo", 3000 },
- { 227.1653,1891.8550,17.8501, "Area 51", "Secret Documents", 5000 },
- { 227.1653,1891.8550,17.8501, "Area 51", "UFO Parts", 2000 },
- { 361.2246,2536.4172,16.8709, "Verdant Meadows", "Maverick Rotors", 1200 },
- { 361.2246,2536.4172,16.8709, "Verdant Meadows", "Broken Plane Parts", 700 },
- /* TRAIN STATIONS */
- { 2875.9961,1298.2185,11.0695, "the Train Station", "Crap Magazines", 300 },
- { 2875.9961,1298.2185,11.0695, "the Train Station", "Sprunk", 500 },
- /* MARINAS, JETTIES ETC */
- { 2292.6072,531.5341,1.9708, "the Marina", "Rudders", 1000 },
- { 2292.6072,531.5341,1.9708, "the Marina", "Boat Engines", 2000 },
- { 2292.6072,531.5341,1.9708, "the Marina", "Anchors", 500 },
- /* TRAILER PARKS */
- { 776.3238,1984.6252,5.5130, "the Trailer Park", "Moonshine", 200 },
- { 776.3238,1984.6252,5.5130, "the Trailer Park", "NASCAR Posters", 500 },
- { 776.3238,1984.6252,5.5130, "the Trailer Park", "White Trash", 600 },
- /* SPORTS */
- { 1340.0388,2772.2456,11.0011, "the Golf Course", "Golf Clubs", 600 },
- { 1340.0388,2772.2456,11.0011, "the Golf Course", "Golf Bags", 500 },
- { 1340.0388,2772.2456,11.0011, "the Golf Course", "Caddy Engines", 600 },
- { 1340.0388,2772.2456,11.0011, "the Golf Course", "Golf Balls", 400 },
- { 1900.3693,2860.7280,11.0120, "the Tennis Courts", "Tennis Balls", 400 },
- { 1900.3693,2860.7280,11.0120, "the Tennis Courts", "Tennis Racquets", 500 },
- /* FARMS ETC */
- { 1929.0171,177.0101,37.1758, "the Farm", "Corn", 400 },
- { 1929.0171,177.0101,37.1758, "the Farm", "Hay", 300 },
- { 1929.0171,177.0101,37.1758, "the Farm", "Manure", 500 },
- { 1929.0171,177.0101,37.1758, "the Farm", \"ACE's Sheep", 2000 }
- };
- public OnFilterScriptInit()
- {
- print( "[cargoheli] Helicopter Cargo missions by blewert loaded." );
- #if defined INCLUDE_MAP
- print( "[cargoheli] You have included the map." );
- #if defined INCLUDE_MAP_VEHICLES
- print( "[cargoheli] You have included the map vehicles." );
- #endif
- #endif
- #if defined CARGO_CP_COORDS
- printf( "[cargoheli] The cargo checkpoint will display at %f, %f, %f.", CARGO_CP_COORDS );
- #endif
- gCText = Create3DTextLabel( "{247550}Helicopter Cargo Missions\nPress {C90000}SPACE", 0xFFFFFFFF, CARGO_CP_COORDS, 100.0, 0 );
- #if defined INCLUDE_MAP
- #if defined INCLUDE_MAP_VEHICLES
- AddStaticVehicleEx(548,1692.83618164,1203.63134766,36.68912506,272.00000000,-1,-1,15); //Cargobob
- AddStaticVehicleEx(548,1692.44140625,1185.74121094,36.68912506,271.99951172,-1,-1,15); //Cargobob
- #endif
- CreateObject(10184,1706.46606445,1250.02600098,11.82454872,0.00000000,0.00000000,90.00000000); //object(sfcopdr) (1)
- CreateObject(16775,1729.51342773,1235.25329590,30.18077087,0.00000000,0.00000000,0.00000000); //object(door_savhangr2) (1)
- CreateObject(2977,1728.21057129,1248.39697266,33.78906250,0.00000000,0.00000000,0.00000000); //object(kmilitary_crate) (1)
- CreateObject(2977,1726.20996094,1248.42675781,33.78906250,0.00000000,0.00000000,0.00000000); //object(kmilitary_crate) (3)
- CreateObject(2886,1733.17932129,1235.15075684,31.18988419,0.00000000,0.00000000,0.00000000); //object(sec_keypad) (1)
- CreateObject(7025,1686.70214844,1236.80249023,37.21684265,0.00000000,0.00000000,0.00000000); //object(plantbox1) (1)
- CreateObject(2973,1735.52465820,1241.35546875,33.78358459,0.00000000,0.00000000,0.00000000); //object(k_cargo2) (1)
- CreateObject(2973,1735.52648926,1238.18359375,33.78906250,0.00000000,0.00000000,0.00000000); //object(k_cargo2) (2)
- CreateObject(2973,1735.52001953,1241.36035156,36.24449158,0.00000000,0.00000000,0.00000000); //object(k_cargo2) (3)
- CreateObject(8885,1695.55883789,1168.70568848,37.21684265,0.00000000,0.00000000,0.00000000); //object(vgsefrght03) (1)
- CreateObject(1391,1668.65917969,1253.14111328,42.20217896,0.00000000,0.00000000,0.00000000); //object(twrcrane_s_03) (1)
- CreateObject(1388,1668.57116699,1253.28210449,54.75437927,0.00000000,0.00000000,226.00000000); //object(twrcrane_s_04) (1)
- CreateObject(11406,1690.99340820,1231.56359863,54.08903122,0.00000000,0.00000000,316.00000000); //object(acwinch1b_sfs01) (1)
- CreateObject(8885,1690.62902832,1245.88879395,37.21684265,0.00000000,0.00000000,0.00000000); //object(vgsefrght03) (2)
- CreateObject(3934,1693.35351562,1204.00622559,33.78906631,0.00000000,0.00000000,0.00000000); //object(helipad01) (1)
- CreateObject(3934,1693.63769531,1185.82226562,33.78906250,0.00000000,0.00000000,0.00000000); //object(helipad01) (2)
- CreateObject(7025,1683.77551270,1221.69226074,37.21684265,0.00000000,0.00000000,270.00000000); //object(plantbox1) (2)
- #endif
- return 1;
- }
- public OnFilterScriptExit()
- {
- Delete3DTextLabel( gCText );
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- purgePlayerCargoVars( playerid );
- return 1;
- }
- stock purgePlayerCargoVars( playerid )
- {
- /* Set the pos var to 0 */
- gCCurrentItem[ playerid ][ CPosX ] = float(0);
- gCCurrentItem[ playerid ][ CPosY ] = float(0);
- gCCurrentItem[ playerid ][ CPosZ ] = float(0);
- format(gCCurrentItem[ playerid ][ szCItemName ], 128, "%s", "");
- format(gCCurrentItem[ playerid ][ szCLocName ], 128, "%s", "");
- gCCurrentItem[ playerid ][ CiPrice ] = 0;
- gCMultiplier [ playerid ] = 0;
- gbCInCargo [ playerid ] = false;
- if( IsValidObject( gCPlayerObj[ playerid ] ) )
- {
- DestroyObject( gCPlayerObj[ playerid ] );
- }
- }
- public cargoOnFail( playerid )
- {
- if( gbCInCargo[ playerid ] )
- {
- //They're in a mission
- //Delete player variables.
- purgePlayerCargoVars( playerid );
- //Remove checkpoint
- DisablePlayerCheckpoint( playerid );
- SendClientMessage( playerid, 0xFFFFFFFF, \"You have failed the {247550}cargo mission.");
- GameTextForPlayer( playerid, \"~r~Cargo Mission Failed.", 3000, 3 );
- }
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- cargoOnFail( playerid );
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- cargoOnFail( playerid );
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- cargoOnFail( playerid );
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
- {
- //They got in a car
- if( IsValidCargoHeli( playerid ) )
- {
- if( !gbCInCargo[ playerid ] )
- {
- SendClientMessage( playerid, 0xFFFFFFFF, "This helicopter is a valid {247550}cargo helicopter.{FFFFFF} You can transport cargo with it." );
- }
- }
- }
- else if( oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT )
- {
- //If they somehow magically got out without calling OnPlayerExitVehicle
- cargoOnFail( playerid );
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if( gbCInCargo[ playerid ] )
- {
- //Remove checkpoint
- DisablePlayerCheckpoint( playerid );
- //Give them the cash, the dough, the dosh, the moolah, the wonga
- GivePlayerMoney( playerid, ( gCMultiplier[ playerid ] * gCCurrentItem[ playerid ][ CiPrice ]) );
- new szMessage[ 128 ],
- szGameText[ 128 ];
- //Format client message
- format(
- szMessage,
- sizeof( szMessage ),
- "Success! You transported %d crate(s) of {247550}%s{FFFFFF} to %s for {247550}$%d!",
- gCMultiplier[ playerid ],
- gCCurrentItem[ playerid ][ szCItemName ],
- gCCurrentItem[ playerid ][ szCLocName ],
- ( gCMultiplier[ playerid ] * gCCurrentItem[ playerid ][ CiPrice ] )
- );
- //Format gametext message
- format( szGameText, sizeof( szGameText ), \"~r~Cargo Mission Completed.~n~~n~~w~$%d", ( gCMultiplier[ playerid ] * gCCurrentItem[ playerid ][ CiPrice ] ) );
- GameTextForPlayer( playerid, szGameText, 3000, 3 );
- //Send client message.
- SendClientMessage( playerid, 0xFFFFFFFF, szMessage );
- //Play mission complete sound
- PlayerPlaySound( playerid, 1058, 0, 0, 0 );
- //Set them not to be in cargo mission
- purgePlayerCargoVars( playerid );
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if( IsPlayerInAnyVehicle(playerid) )
- {
- if( PRESSED(KEY_HANDBRAKE) )
- {
- //If they pressed sprint
- if( IsPlayerInRangeOfPoint( playerid, 9.0, CARGO_CP_COORDS ) )
- {
- if( gbCInCargo[ playerid ] ) return SendClientMessage( playerid, 0xFFFFFFFF, "You're already in a {247550}cargo mission." );
- if( !IsValidCargoHeli( playerid ) ) return SendClientMessage( playerid, 0xFFFFFFFF, "You need a valid {247550}cargo helicopter." );
- //If they're in a valid heli and not in cargo mission
- new nItemRandMax;
- switch( GetVehicleModel( GetPlayerVehicleID( playerid ) ) )
- {
- case 497, 487: nItemRandMax = 3; //Mavericks
- case 469: nItemRandMax = 2; //Sparrow
- case 548, 417: nItemRandMax = 15; //Cargobob, Leviathan
- case 563: nItemRandMax = 10; //Raindance
- }
- new nItemRand = ( random(nItemRandMax) + 1 ), //Random amount of items
- nArrRand = random( sizeof( _CARGO_LOCATIONS_ ) ), //Random position in array
- szMessage[ 128 ];
- //Put them in mission
- gbCInCargo[ playerid ] = true;
- gCMultiplier[ playerid ] = nItemRand;
- gCCurrentItem[ playerid ] = _CARGO_LOCATIONS_[ nArrRand ];
- //Format client message
- format( szMessage, sizeof( szMessage ),
- "Transport %d crate(s) of {247550}%s{FFFFFF} to %s for {247550}$%d!",
- gCMultiplier[ playerid ],
- gCCurrentItem[ playerid ][ szCItemName ],
- gCCurrentItem[ playerid ][ szCLocName ],
- ( gCCurrentItem[ playerid ][ CiPrice ] * gCMultiplier[ playerid ] ) );
- //Send client message.
- SendClientMessage( playerid, 0xFFFFFFFF, szMessage );
- //Set their checkpoint
- SetPlayerCheckpoint( playerid,
- gCCurrentItem[ playerid ][ CPosX ],
- gCCurrentItem[ playerid ][ CPosY ],
- gCCurrentItem[ playerid ][ CPosZ ],
- 5.0 );
- gCPlayerObj[ playerid ] = CreateObject( CRATE_OBJ, 5000.0, 0.0, 1550.0, 0.0, 0.0, 0.0 );
- AttachObjectToVehicle(gCPlayerObj[ playerid ], GetPlayerVehicleID(playerid), 0.000000, 0.700000, -0.410001, 0.000000, 180.000000, 0.000000);
- }
- }
- }
- return 1;
- }
- stock IsValidCargoHeli( playerid )
- {
- if( !IsPlayerInAnyVehicle( playerid ) ) return false;
- new bool:bResult;
- switch( GetVehicleModel( GetPlayerVehicleID( playerid ) ) )
- {
- case 548, 417, 487, 497, 563, 469: bResult = true ;
- default: bResult = false;
- }
- return bResult;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement