Autor Wiadomość
CarThief
PostWysłany: Nie 23:11, 24 Gru 2006   Temat postu: Bot Script! >:(

Every time i try to make one, it CRASHES mid game! But i keep trying.
Just wondering, does someone know a solution?

Ive tryed alot of different things.

The script is 400+ lines, not too big, for something... with a system.
(The script used to be for a Team map, but that didnt work out)
(I made all unneeded things, or things for more then 1 player commented with //'s. Its a 1P script.)

How the script works is plain that bots get orders to attack the people, and i recently made a little different needs to their respawns, but it didnt stop the crashing... Also generators are loaded, like any other map, and a train.
And the map has a few objects, and Radio Stations.

Cytat:
///Team 1 BLACK Base///
PLAYER_PED player1 = ( 132.5 , 137.5 , 2.0 ) 4 0
//PLAYER_PED player2 = ( 133.5 , 137.5 , 2.0 ) 8 0
//PLAYER_PED player3 = ( 134.5 , 137.5 , 2.0 ) 13 0
//PLAYER_PED player4 = ( 132.5 , 138.5 , 2.0 ) 10 0
//PLAYER_PED player5 = ( 133.5 , 138.5 , 2.0 ) 11 0
//PLAYER_PED player6 = ( 134.5 , 138.5 , 2.0 ) 7 0
//
CAR_DATA team1FBIcar = ( 106.5 , 139.5 , 2.0 ) 2 180 EDSELFBI
CAR_DATA team1benson = ( 107.5 , 139.5 , 2.0 ) 2 180 MERC
CAR_DATA team1armoredcar = ( 108.5 , 139.5 , 2.0 ) 2 180 BANKVAN
OBJ_DATA team1bin1 = ( 103.5 , 139.5 , 2.0 ) 0 BIN_LID
OBJ_DATA team1bin2 = ( 107.5 , 141.5 , 3.0 ) 0 BIN_LID
OBJ_DATA team1antenna = ( 107.5 , 142.5 , 4.0 ) 0 ANTENNA
OBJ_DATA team1tower = ( 107.5 , 142.5 , 3.0 ) 0 TOWER
///Team 2 RED Base///
CAR_DATA team2bulwark = ( 142.5 , 155.5 , 4.0 ) 28 90 BUICK
CAR_DATA team2armoredIV = ( 142.5 , 156.5 , 4.0 ) -1 90 ICECREAM
CAR_DATA team2APC = ( 142.5 , 157.5 , 4.0 ) -1 90 APC
OBJ_DATA team2bin1 = ( 137.5 , 155.5 , 5.0 ) 0 BIN_LID
OBJ_DATA team2bin2 = ( 137.5 , 159.5 , 4.0 ) 0 BIN_LID
OBJ_DATA team2antenna = ( 138.5 , 155.5 , 6.0 ) 0 ANTENNA
OBJ_DATA team2tower = ( 138.5 , 155.5 , 5.0 ) 0 TOWER
///Team 3 GREEN Base///
//
//
CAR_DATA team3car = ( 146.5 , 132.5 , 5.0 ) -1 0 EDSELFBI
CAR_DATA team3limo = ( 145.5 , 132.5 , 5.0 ) 16 0 LIMO
CAR_DATA team3firetruck = ( 146.5 , 129.5 , 5.0 ) -1 180 FIRETRUK
OBJ_DATA team3bin1 = ( 152.5 , 132.5 , 5.0 ) 0 BIN_LID
OBJ_DATA team3object = ( 150.5 , 129.5 ) 0 TANKTOP
OBJ_DATA team3antenna = ( 151.5 , 128.5 , 7.0 ) 0 ANTENNA
OBJ_DATA team3tower = ( 151.5 , 128.5 , 6.0 ) 0 TOWER
////////////////////////////////////////////////////
CHAR_DATA GOD = ( 253.5 , 2.5 , 2.0 ) -1 0 TANK_DRIVER
RADIO_STATION ST1 = STATION_REDNECK ( 40.5 , 55.5 )
RADIO_STATION ST2 = STATION_RESIDENTIAL ( 180.5 , 72.5 )
RADIO_STATION ST3 = STATION_RUSSIAN ( 21.5 , 173.5 )
RADIO_STATION ST4 = STATION_KRISHNA ( 166.5 , 152.5 )
DECLARE_POLICELEVEL ( 5 )
OBJ_DATA bollard1 = ( 169.1 , 146.5 , 2.0 ) 90 BOLLARD
OBJ_DATA bollard2 = ( 169.1 , 147.5 , 2.0 ) 90 BOLLARD
/////////
OBJ_DATA bollard4 = ( 106.1 , 145.5 , 2.0 ) 90 BOLLARD
OBJ_DATA bollard5 = ( 106.1 , 146.5 , 2.0 ) 90 BOLLARD
OBJ_DATA bollard6 = ( 106.5 , 134.9 , 2.0 ) 90 BOLLARD
//////////
OBJ_DATA bollard7 = ( 113.9 , 133.5 , 2.0 ) 90 BOLLARD
//////////
////CARSHOPS////
OBJ_DATA bombshop = ( 134.5 , 125.5 , 2.0 ) 0 CAR_SHOP BOMB_SHOP
OBJ_DATA oilshop = ( 132.5 , 125.5 , 2.0 ) 0 CAR_SHOP OILSLICK_SHOP
OBJ_DATA paintshop = ( 130.5 , 125.5 , 2.0 ) 0 CAR_SHOP 2
////////////////
SET_STATION_INFO ( trak00 , 2 , 1 , 1 )
SET_STATION_INFO ( trak01 , NO_TRAIN )
SET_STATION_INFO ( trak10 , NO_TRAIN )
SET_STATION_INFO ( trak11 , 2 , 1 , 1 )
///Cars///
CAR_DATA beamer = ( 137.0 , 138.3 , 2.0 ) 2 135 BMW
CAR_DATA truckcab = ( 129.5 , 139.5 , 2.0 ) 17 90 TRUKCAB2 TRUKTRNS
CAR_DATA bus1 = ( 133.5 , 129.5 , 2.0 ) -1 90 KRSNABUS
CAR_DATA benson1 = ( 107.5 , 145.5 , 2.0 ) 3 0 MERC
CAR_DATA gunjeep1 = ( 159.5 , 167.5 , 2.0 ) -1 0 GUNJEEP
CAR_DATA publicbus1 = ( 167.5 , 119.5 , 2.0 ) 2 270 BUS
CAR_DATA TVvan1 = ( 142.5 , 129.5 , 2.0 ) 2 180 TVVAN
//truckcabs and trailers//
CAR_DATA parkedcab1 = ( 160.5 , 162.5 , 2.0 ) 1 0 TRUKCAB1 TANKER
CAR_DATA parkedcab2 = ( 162.5 , 162.5 , 2.0 ) 16 0 TRUKCAB2 TRUKTRNS
CAR_DATA parkedcab3 = ( 164.5 , 162.5 , 2.0 ) 15 0 TRUKCAB1 TANKER
CAR_DATA parkedcab4 = ( 161.5 , 164.5 , 2.0 ) 21 0 TRUKCAB2 TRUKTRNS
CAR_DATA parkedcab5 = ( 163.5 , 164.5 , 2.0 ) 3 0 TRUKCAB1 TANKER
//////weapons//////
GENERATOR machinegun1 = ( 155.5 , 142.5 , 2.0 ) 0 COLLECT_01 1800 2990 20
GENERATOR machinegun2 = ( 155.5 , 142.5 , 2.0 ) 0 COLLECT_01 1800 2990 20
GENERATOR shotgun1 = ( 111.5 , 140.5 , 5.0 ) 0 COLLECT_06 1800 2990 20
GENERATOR molotov1 = ( 109.5 , 119.5 , 5.0 ) 0 COLLECT_04 1800 2990 30
GENERATOR grenades1 = ( 171.5 , 126.5 , 2.0 ) 0 COLLECT_05 1800 2990 30
GENERATOR Smachinegun1 = ( 146.5 , 131.5 , 5.0 ) 0 COLLECT_09 1800 2990 20
GENERATOR pistol1 = ( 103.5 , 133.5 , 4.0 ) 0 COLLECT_00 1800 2990 40
GENERATOR machinegun3 = ( 110.5 , 144.5 , 2.0 ) 0 COLLECT_01 1800 2990 20
GENERATOR doubledamage1 = ( 155.5 , 146.5 , 5.0 ) 0 COLLECT_35 1800 2990 1
GENERATOR fastreload1 = ( 119.5 , 142.5 , 5.0 ) 0 COLLECT_36 1800 2990 1
GENERATOR shotgun2 = ( 137.5 , 156.5 , 4.0 ) 0 COLLECT_06 1800 2990 20
GENERATOR shotgun3 = ( 144.5 , 169.5 , 2.0 ) 0 COLLECT_06 1800 2990 20
GENERATOR molotov2 = ( 165.5 , 166.5 , 2.0 ) 0 COLLECT_04 1800 2990 30
GENERATOR copbribe1 = ( 92.5 , 156.5 , 4.0 ) 0 COLLECT_33 1800 2990 30
GENERATOR carbomb1 = ( 133.5 , 135.5 , 2.0 ) 0 COLLECT_15 1800 2990 40
GENERATOR armor1 = ( 166.5 , 144.5 , 6.0 ) 0 COLLECT_31 1800 2990 1
GENERATOR armor2 = ( 116.5 , 124.5 , 5.0 ) 0 COLLECT_31 1800 2990 1
GENERATOR health1 = ( 153.5 , 142.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR health2 = ( 163.5 , 160.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR instantcarbomb1 = ( 124.5 , 154.5 , 2.0 ) 0 COLLECT_23 1800 2990 1
GENERATOR instantcarbomb2 = ( 177.5 , 177.5 , 2.0 ) 0 COLLECT_23 1800 2990 1
GENERATOR health3 = ( 119.5 , 144.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR health4 = ( 108.5 , 124.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR health5 = ( 128.5 , 136.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR armor3 = ( 108.5 , 140.5 , 2.0 ) 0 COLLECT_31 1800 2990 1
GENERATOR dualpistol1 = ( 140.5 , 130.5 , 2.0 ) 0 COLLECT_10 1800 2990 25
GENERATOR dualpistol2 = ( 170.5 , 147.5 , 2.0 ) 0 COLLECT_10 1800 2990 25
GENERATOR instantgang1 = ( 120.5 , 152.5 , 2.0 ) 0 COLLECT_40 1800 2990 1
GENERATOR instantgang2 = ( 163.5 , 173.5 , 2.0 ) 0 COLLECT_40 1800 2990 1
GENERATOR instantgang3 = ( 144.5 , 173.5 , 2.0 ) 0 COLLECT_40 1800 2990 1
GENERATOR Smachinegun2 = ( 139.5 , 126.5 ) 0 COLLECT_09 1800 2990 20
GENERATOR Smachinegun3 = ( 96.5 , 118.5 , 5.0 ) 0 COLLECT_09 1800 2990 20
GENERATOR carbomb2 = ( 110.5 , 119.5 , 2.0 ) 0 COLLECT_15 1800 2990 40
CRANE_DATA basiccrane1 = ( 161.5 , 173.5 ) 0 NO_HOMECRANE
CRANE_DATA basiccrane2 = ( 118.5 , 146.5 ) 0 NO_HOMECRANE
///////////////////////////////////////
///team 2 camp generators///
GENERATOR team2armor = ( 140.5 , 156.5 , 4.0 ) 0 COLLECT_31 1800 2990 1
GENERATOR team2molotov = ( 135.5 , 155.5 , 4.0 ) 0 COLLECT_04 1800 2990 25
GENERATOR team2health = ( 137.5 , 155.5 , 4.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR team2machinegun = ( 138.5 , 155.5 , 4.0 ) 0 COLLECT_01 1800 2990 20
///////////////////////////////////////
GENERATOR team1health = ( 106.5 , 142.5 , 2.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR team1machinegun = ( 107.5 , 142.5 , 2.0 ) 0 COLLECT_01 1800 2990 20
GENERATOR team1grenades = ( 102.5 , 141.5 , 2.0 ) 0 COLLECT_05 1800 2990 30
GENERATOR team1dualpistol = ( 104.5 , 142.5 , 2.0 ) 0 COLLECT_10 1800 2990 25
///////////////////////////////////////
GENERATOR team3health = ( 150.5 , 128.5 , 5.0 ) 0 COLLECT_30 1800 2990 1
GENERATOR team3armor = ( 151.5 , 128.5 , 5.0 ) 0 COLLECT_31 1800 2990 1
GENERATOR team3Smachinegun = ( 148.5 , 129.5 , 5.0 ) 0 COLLECT_09 1800 2990 22
GENERATOR team3grenades = ( 148.5 , 132.5 , 5.0 ) 0 COLLECT_05 1800 2990 25
///////////////////////////////////////
CHAR_DATA TVman
CHAR_DATA FBIagent
CHAR_DATA cop
CHAR_DATA icecreamman
CHAR_DATA soldier
CHAR_DATA SWATman
///////////////////////////////////////
ARROW_DATA TVarrow
ARROW_DATA FBIarrow
ARROW_DATA coparrow
ARROW_DATA icecreamarrow
ARROW_DATA soldierarrow
ARROW_DATA SWATarrow
///////////////////////////////////////
CHAR_DATA tankman
CHAR_DATA fireman1
ARROW_DATA tankarrow
ARROW_DATA firearrow
///////////////////////////////////////
///////////////////////////////////////
LEVELSTART/////////////////////////////
///////////////////////////////////////
///////////////////////////////////////
TVman = CREATE_CHAR ( 159.5 , 171.5 , 2.0 ) 2 0 PSYCHO END
SET_CHAR_THREAT_SEARCH ( TVman , AREA )
SET_CHAR_THREAT_REACTION ( TVman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( TVman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( TVman , TVVAN )
GIVE_WEAPON ( TVman , MACHINE_GUN )
POINT_ARROW_AT ( TVarrow , TVman )
SET_ARROW_COLOUR ( TVarrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( TVman , ON )
///////////////////////////////////////
FBIagent = CREATE_CHAR ( 174.5 , 143.5 , 2.0 ) -1 0 FBI END
SET_CHAR_THREAT_SEARCH ( FBIagent , AREA )
SET_CHAR_THREAT_REACTION ( FBIagent , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( FBIagent , CRACK_SHOT )
SET_FAVOURITE_MODEL ( FBIagent , EDSELFBI )
GIVE_WEAPON ( FBIagent , SILENCED_MACHINE_GUN )
POINT_ARROW_AT ( FBIarrow , FBIagent )
SET_ARROW_COLOUR ( FBIarrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( FBIagent , ON )
///////////////////////////////////////
cop = CREATE_CHAR ( 132.5 , 121.5 , 2.0 ) 0 0 POLICE END
SET_CHAR_THREAT_SEARCH ( cop , AREA )
SET_CHAR_THREAT_REACTION ( cop , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( cop , CRACK_SHOT )
SET_FAVOURITE_MODEL ( cop , COPCAR )
GIVE_WEAPON ( cop , SHOTGUN )
POINT_ARROW_AT ( coparrow , cop )
SET_ARROW_COLOUR ( coparrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( cop , ON )
///////////////////////////////////////
icecreamman = CREATE_CHAR ( 154.5 , 135.5 , 2.0 ) 12 0 BANK_ROBBER END
SET_CHAR_THREAT_SEARCH ( icecreamman , AREA )
SET_CHAR_THREAT_REACTION ( icecreamman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( icecreamman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( icecreamman , ICECREAM )
GIVE_WEAPON ( icecreamman , FLAME_THROWER )
POINT_ARROW_AT ( icecreamarrow , icecreamman )
SET_ARROW_COLOUR ( icecreamarrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( icecreamman , ON )
///////////////////////////////////////
soldier = CREATE_CHAR ( 123.5 , 132.5 , 2.0 ) 4 0 ARMY END
SET_CHAR_THREAT_SEARCH ( soldier , AREA )
SET_CHAR_THREAT_REACTION ( soldier , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( soldier , CRACK_SHOT )
SET_FAVOURITE_MODEL ( soldier , GUNJEEP )
GIVE_WEAPON ( soldier , MACHINE_GUN )
POINT_ARROW_AT ( soldierarrow , soldier )
SET_ARROW_COLOUR ( soldierarrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( soldier , ON )
///////////////////////////////////////
SWATman = CREATE_CHAR ( 146.5 , 122.5 , 2.0 ) 3 0 SWAT END
SET_CHAR_THREAT_SEARCH ( SWATman , AREA )
SET_CHAR_THREAT_REACTION ( SWATman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( SWATman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( SWATman , SWATVAN )
GIVE_WEAPON ( SWATman , MACHINE_GUN )
POINT_ARROW_AT ( SWATarrow , SWATman )
SET_ARROW_COLOUR ( SWATarrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( SWATman , ON )
///////////////////////////////////////
tankman = CREATE_CHAR ( 165.5 , 150.5 , 2.0 ) 24 0 TANK_DRIVER END
SET_CHAR_THREAT_SEARCH ( tankman , AREA )
SET_CHAR_THREAT_REACTION ( tankman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( tankman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( tankman , TANK )
GIVE_WEAPON ( tankman , MOLOTOV )
POINT_ARROW_AT ( tankarrow , tankman )
SET_ARROW_COLOUR ( tankarrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( tankman , ON )
///////////////////////////////////////
fireman1 = CREATE_CHAR ( 131.5 , 121.5 , 2.0 ) 14 0 FIREMAN END
SET_CHAR_THREAT_SEARCH ( fireman1 , AREA )
SET_CHAR_THREAT_REACTION ( fireman1 , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( fireman1 , CRACK_SHOT )
SET_FAVOURITE_MODEL ( fireman1 , FIRETRUK )
GIVE_WEAPON ( fireman1 , FLAME_THROWER )
POINT_ARROW_AT ( firearrow , fireman1 )
SET_ARROW_COLOUR ( firearrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( fireman1 , ON )
///////////////////////////////////////
SWITCH_GENERATOR ( team3health , ON )
SWITCH_GENERATOR ( team3armor , ON )
SWITCH_GENERATOR ( team3Smachinegun , ON )
SWITCH_GENERATOR ( team3grenades , ON )
///////////////////////////////////////
SWITCH_GENERATOR ( team2armor , ON )
SWITCH_GENERATOR ( team2molotov , ON )
SWITCH_GENERATOR ( team2health , ON )
SWITCH_GENERATOR ( team2machinegun , ON )
///////////////////////////////////////
SWITCH_GENERATOR ( team1health , ON )
SWITCH_GENERATOR ( team1machinegun , ON )
SWITCH_GENERATOR ( team1grenades , ON )
SWITCH_GENERATOR ( team1dualpistol , ON )
///////////////////////////////////////
SET_CAR_BULLETPROOF ( team1armoredcar , ON )
SET_CAR_ROCKETPROOF ( team1armoredcar , ON )
SET_CAR_BULLETPROOF ( team2armoredIV , ON )
///////////////////////////////////////
SET_CAR_BULLETPROOF ( truckcab , ON )
SET_CAR_BULLETPROOF ( parkedcab1 , ON )
SET_CAR_BULLETPROOF ( parkedcab2 , ON )
SET_CAR_BULLETPROOF ( parkedcab3 , ON )
SET_CAR_BULLETPROOF ( parkedcab4 , ON )
SET_CAR_BULLETPROOF ( parkedcab5 , ON )
SET_CAR_ROCKETPROOF ( bus1 , ON )
SET_CAR_BULLETPROOF ( publicbus1 , ON )
SET_CAR_BULLETPROOF ( TVvan1 , ON )
SET_CAR_NO_COLLIDE ( publicbus1 )
SET_CAR_NO_COLLIDE ( TVvan1 )
///////////////////////////////////////
SET_CAR_BULLETPROOF ( team3firetruck , ON )
SET_CAR_ROCKETPROOF ( team3limo , ON )
///////////////////////////////////////
SWITCH_GENERATOR ( machinegun1 , ON )
SWITCH_GENERATOR ( machinegun2 , ON )
SWITCH_GENERATOR ( shotgun1 , ON )
SWITCH_GENERATOR ( molotov1 , ON )
SWITCH_GENERATOR ( grenades1 , ON )
SWITCH_GENERATOR ( Smachinegun1 , ON )
SWITCH_GENERATOR ( pistol1 , ON )
SWITCH_GENERATOR ( machinegun3 , ON )
SWITCH_GENERATOR ( doubledamage1 , ON )
SWITCH_GENERATOR ( fastreload1 , ON )
SWITCH_GENERATOR ( shotgun2 , ON )
SWITCH_GENERATOR ( shotgun3 , ON )
SWITCH_GENERATOR ( molotov2 , ON )
SWITCH_GENERATOR ( copbribe1 , ON )
SWITCH_GENERATOR ( carbomb1 , ON )
SWITCH_GENERATOR ( armor1 , ON )
SWITCH_GENERATOR ( armor2 , ON )
SWITCH_GENERATOR ( health1 , ON )
SWITCH_GENERATOR ( health2 , ON )
SWITCH_GENERATOR ( instantcarbomb1 , ON )
SWITCH_GENERATOR ( instantcarbomb2 , ON )
SWITCH_GENERATOR ( health3 , ON )
SWITCH_GENERATOR ( health4 , ON )
SWITCH_GENERATOR ( health5 , ON )
SWITCH_GENERATOR ( armor3 , ON )
SWITCH_GENERATOR ( dualpistol1 , ON )
SWITCH_GENERATOR ( dualpistol2 , ON )
SWITCH_GENERATOR ( instantgang1 , ON )
SWITCH_GENERATOR ( instantgang2 , ON )
SWITCH_GENERATOR ( instantgang3 , ON )
SWITCH_GENERATOR ( Smachinegun2 , ON )
SWITCH_GENERATOR ( Smachinegun3 , ON )
SWITCH_GENERATOR ( carbomb2 , ON )

EXPLODE ( TVman )
EXPLODE ( FBIagent )
EXPLODE ( cop )
EXPLODE ( icecreamman )
EXPLODE ( soldier )
EXPLODE ( SWATman )
EXPLODE ( tankman )
EXPLODE ( fireman1 )

WHILE_EXEC ( NOT ( HAS_CHARACTER_DIED ( GOD ) ) )

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 159.5 , 171.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( TVman ) )
REMOVE_ARROW ( TVarrow )
DELETE_ITEM ( TVman )
TVman = CREATE_CHAR ( 159.5 , 171.5 , 2.0 ) 2 0 PSYCHO END
SET_CHAR_THREAT_SEARCH ( TVman , AREA )
SET_CHAR_THREAT_REACTION ( TVman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( TVman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( TVman , TVVAN )
GIVE_WEAPON ( TVman , MACHINE_GUN )
POINT_ARROW_AT ( TVarrow , TVman )
SET_ARROW_COLOUR ( TVarrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( TVman , ON )
SET_CHAR_OBJECTIVE ( TVman , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( TVman , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( TVman , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( TVman , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( TVman , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( TVman , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 174.5 , 143.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( FBIagent ) )
REMOVE_ARROW ( FBIarrow )
DELETE_ITEM ( FBIagent )
FBIagent = CREATE_CHAR ( 174.5 , 143.5 , 2.0 ) -1 0 FBI END
SET_CHAR_THREAT_SEARCH ( FBIagent , AREA )
SET_CHAR_THREAT_REACTION ( FBIagent , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( FBIagent , CRACK_SHOT )
SET_FAVOURITE_MODEL ( FBIagent , EDSELFBI )
GIVE_WEAPON ( FBIagent , SILENCED_MACHINE_GUN )
POINT_ARROW_AT ( FBIarrow , FBIagent )
SET_ARROW_COLOUR ( FBIarrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( FBIagent , ON )
SET_CHAR_OBJECTIVE ( FBIagent , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( FBIagent , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( FBIagent , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( FBIagent , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( FBIagent , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( FBIagent , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 132.5 , 121.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( cop ) )
REMOVE_ARROW ( coparrow )
DELETE_ITEM ( cop )
cop = CREATE_CHAR ( 132.5 , 121.5 , 2.0 ) 0 0 POLICE END
SET_CHAR_THREAT_SEARCH ( cop , AREA )
SET_CHAR_THREAT_REACTION ( cop , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( cop , CRACK_SHOT )
SET_FAVOURITE_MODEL ( cop , COPCAR )
GIVE_WEAPON ( cop , SHOTGUN )
POINT_ARROW_AT ( coparrow , cop )
SET_ARROW_COLOUR ( coparrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( cop , ON )
SET_CHAR_OBJECTIVE ( cop , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( cop , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( cop , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( cop , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( cop , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( cop , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 154.5 , 135.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( icecreamman ) )
REMOVE_ARROW ( icecreamarrow )
DELETE_ITEM ( icecreamman )
icecreamman = CREATE_CHAR ( 154.5 , 135.5 , 2.0 ) 12 0 BANK_ROBBER END
SET_CHAR_THREAT_SEARCH ( icecreamman , AREA )
SET_CHAR_THREAT_REACTION ( icecreamman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( icecreamman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( icecreamman , ICECREAM )
GIVE_WEAPON ( icecreamman , FLAME_THROWER )
POINT_ARROW_AT ( icecreamarrow , icecreamman )
SET_ARROW_COLOUR ( icecreamarrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( icecreamman , ON )
SET_CHAR_OBJECTIVE ( icecreamman , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( icecreamman , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( icecreamman , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( icecreamman , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( icecreamman , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( icecreamman , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 123.5 , 132.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( soldier ) )
REMOVE_ARROW ( soldierarrow )
DELETE_ITEM ( soldier )
soldier = CREATE_CHAR ( 123.5 , 132.5 , 2.0 ) 4 0 ARMY END
SET_CHAR_THREAT_SEARCH ( soldier , AREA )
SET_CHAR_THREAT_REACTION ( soldier , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( soldier , CRACK_SHOT )
SET_FAVOURITE_MODEL ( soldier , GUNJEEP )
GIVE_WEAPON ( soldier , MACHINE_GUN )
POINT_ARROW_AT ( soldierarrow , soldier )
SET_ARROW_COLOUR ( soldierarrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( soldier , ON )
SET_CHAR_OBJECTIVE ( soldier , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( soldier , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( soldier , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( soldier , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( soldier , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( soldier , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 146.5 , 122.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( SWATman ) )
REMOVE_ARROW ( SWATarrow )
DELETE_ITEM ( SWATman )
SWATman = CREATE_CHAR ( 146.5 , 122.5 , 2.0 ) 3 0 SWAT END
SET_CHAR_THREAT_SEARCH ( SWATman , AREA )
SET_CHAR_THREAT_REACTION ( SWATman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( SWATman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( SWATman , SWATVAN )
GIVE_WEAPON ( SWATman , MACHINE_GUN )
POINT_ARROW_AT ( SWATarrow , SWATman )
SET_ARROW_COLOUR ( SWATarrow , GREEN )
SET_CHAR_TO_USE_CAR_WEAPON ( SWATman , ON )
SET_CHAR_OBJECTIVE ( SWATman , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( SWATman , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( SWATman , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( SWATman , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( SWATman , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( SWATman , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 165.5 , 150.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( tankman ) )
REMOVE_ARROW ( tankarrow )
DELETE_ITEM ( tankman )
tankman = CREATE_CHAR ( 165.5 , 150.5 , 2.0 ) 24 0 TANK_DRIVER END
SET_CHAR_THREAT_SEARCH ( tankman , AREA )
SET_CHAR_THREAT_REACTION ( tankman , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( tankman , CRACK_SHOT )
SET_FAVOURITE_MODEL ( tankman , TANK )
GIVE_WEAPON ( tankman , MOLOTOV )
POINT_ARROW_AT ( tankarrow , tankman )
SET_ARROW_COLOUR ( tankarrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( tankman , ON )
SET_CHAR_OBJECTIVE ( tankman , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( tankman , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( tankman , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( tankman , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( tankman , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( tankman , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

IF ( NOT ( LOCATE_CHARACTER_ANY_MEANS ( player1 , 131.5 , 121.5 , 2.0 , 3.0 , 3.0 ) ) )
IF ( HAS_CHARACTER_DIED ( fireman1 ) )
REMOVE_ARROW ( firearrow )
DELETE_ITEM ( fireman1 )
fireman1 = CREATE_CHAR ( 131.5 , 121.5 , 2.0 ) 14 0 FIREMAN END
SET_CHAR_THREAT_SEARCH ( fireman1 , AREA )
SET_CHAR_THREAT_REACTION ( fireman1 , NO_REACTION )
SET_CHAR_SHOOTING_SKILL ( fireman1 , CRACK_SHOT )
SET_FAVOURITE_MODEL ( fireman1 , FIRETRUK )
GIVE_WEAPON ( fireman1 , FLAME_THROWER )
POINT_ARROW_AT ( firearrow , fireman1 )
SET_ARROW_COLOUR ( firearrow , RED )
SET_CHAR_TO_USE_CAR_WEAPON ( fireman1 , ON )
SET_CHAR_OBJECTIVE ( fireman1 , KILL_CHAR_ANY_MEANS , player1 )
//SET_CHAR_OBJECTIVE ( fireman1 , KILL_CHAR_ANY_MEANS , player2 )
//SET_CHAR_OBJECTIVE ( fireman1 , KILL_CHAR_ANY_MEANS , player3 )
//SET_CHAR_OBJECTIVE ( fireman1 , KILL_CHAR_ANY_MEANS , player4 )
//SET_CHAR_OBJECTIVE ( fireman1 , KILL_CHAR_ANY_MEANS , player5 )
//SET_CHAR_OBJECTIVE ( fireman1 , KILL_CHAR_ANY_MEANS , player6 )
ENDIF
ENDIF

ENDWHILE

LEVELEND

Powered by phpBB © 2001/3 phpBB Group