Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <natives.h>
- #include <common.h>
- #include <types.h>
- #include <consts.h>
- void GET_NETWORK_ID_FROM_OBJECT(Object obj, int *id);
- void SET_NETWORK_ID_CAN_MIGRATE(int id, boolean enabled);
- boolean IS_NETWORK_SESSION(void);
- /// credits
- #define TITLE "~COL_NET_8~Airport Police Barricade"
- #define AUTHOR "~COL_NET_8~Created ~r~by ~PAD_A~~BLIP_23~~BLIP_44~~BLIP_27~~PAD_Y~"
- Vehicle map_veh[9];
- void print(char* text)
- {
- CLEAR_PRINTS();
- PRINT_STRING_WITH_LITERAL_STRING("string",text,3000,true);
- }
- void create_vehicle(uint vehicle, float veh_x, float veh_y, float veh_z, float veh_h, Vehicle *veh_handle)
- {
- if (IS_MODEL_IN_CDIMAGE(vehicle))
- {
- REQUEST_MODEL(vehicle);
- while (!HAS_MODEL_LOADED(vehicle))
- WAIT(0);
- CREATE_CAR(vehicle, veh_x, veh_y, veh_z, veh_handle, true);
- SET_CAR_COORDINATES_NO_OFFSET(*veh_handle, veh_x, veh_y, veh_z);
- SET_CAR_HEADING(*veh_handle, veh_h);
- SET_CAR_VISIBLE(*veh_handle, true);
- SET_NEEDS_TO_BE_HOTWIRED(*veh_handle, false);
- SET_CAR_CAN_BE_DAMAGED(*veh_handle, false);
- SET_CAR_CAN_BE_VISIBLY_DAMAGED(*veh_handle, false);
- SET_CAN_BURST_CAR_TYRES(*veh_handle, false);
- SET_SIREN_WITH_NO_DRIVER(*veh_handle,true);
- SWITCH_CAR_SIREN(*veh_handle,true);
- FREEZE_CAR_POSITION(*veh_handle, true);
- LOCK_CAR_DOORS(*veh_handle, VEHICLE_DOOR_LOCKED);
- MARK_MODEL_AS_NO_LONGER_NEEDED(vehicle);
- }
- else
- print("~y~Error! ~s~Vehicle could not be found.");
- }
- void main(void){
- THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
- #ifdef BLIPCOORDS
- blip_location();
- #endif
- #ifdef TITLE
- print(TITLE); WAIT(2000);
- #endif
- #ifdef AUTHOR
- print(AUTHOR);
- #endif
- create_vehicle(0x79FBB0C5, 2210.5361, 673.8120, 5.4584, 76.65865, &map_veh[0]);
- create_vehicle(0x79FBB0C5, 2205.8098, 676.4973, 5.4525, 225.01962, &map_veh[1]);
- create_vehicle(0x79FBB0C5, 2343.3457, 514.7433, 5.6282, 151.7543, &map_veh[2]);
- create_vehicle(0x79FBB0C5, 2343.2981, 509.3909, 5.6375, 16.6462, &map_veh[3]);
- create_vehicle(0x79FBB0C5, 2344.7078, 266.1087, 5.6339, 39.2763, &map_veh[4]);
- create_vehicle(0x79FBB0C5, 2342.4180, 271.1690, 5.6463, 187.9399, &map_veh[5]);
- create_vehicle(0x79FBB0C5, 2232.6040, 179.6122, 5.6778, 1.7554, &map_veh[6]);
- create_vehicle(0x79FBB0C5, 2232.5017, 180.0079, 5.6907, 0.7203, &map_veh[7]);
- create_vehicle(0x8EB78F5A, 2238.2612, 181.1858, 5.4599, 275.7892, &map_veh[8]);
- while(true)
- WAIT(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment