#1 Вопросы по скриптингу » Покупка Авто-Салона "Ottos Autos" » 27-07-2008 21:37

Mad Driver
Replies: 5

Здорова! Я недавно сделал скрипт, который даёт возможность купить автосалон "Ottos Autos" При покупке на крыше появится seasparrow, а в самом здании 4 авто, огнемёт с 9999 патронами, пикап сохранения и денег! grin Но SannyBuilder неможет скомпилировать в cleo формат! cry Посмотрите пожалуйста, что не так? Вот скрипт:

{$CLEO .cs}

//-------------MAIN---------------

:OTTOS
model.Load(#SEASPAR)
model.Load(#FLAME)
model.Load(#BUFFALO)
model.Load(#NEBULA)
model.Load(#MERIT)
model.Load(#EUROS)
model.Load(#PICKUPSAVE)
038B: load_requested_models

:OTTOS_1
wait 100
if 6
model.Available(#SEASPAR)
model.Available(#FLAME)
model.Available(#BUFFALO)
model.Available(#NEBULA)
model.Available(#MERIT)
model.Available(#EUROS)
model.Available(#PICKUPSAVE)
jf @OTTOS_1
jump @OTTOS_2

:OTTOS_2
wait 100
if 5
model.Available(#SEASPAR)
model.Available(#FLAME)
model.Available(#BUFFALO)
model.Available(#NEBULA)
model.Available(#MERIT)
model.Available(#EUROS)
model.Available(#PICKUPSAVE)
jf @OTTOS_2
0518: 1@ = create_available_asset_pickup 'PROP_3' at -1637.218 1201.7833 7.2079 price 250000 // Press ~k~~PED_ANSWER_PHONE~ to buy this property.
2@ = Marker.CreateIconWithoutSphere(31, -1637.218 1201.7833 7.2079)

:OTTOS_3
wait 0
if
Pickup.Picked_up(1@)
jf @OTTOS_3
fade 0 400
marker.Disable(2@)
2@ = Marker.CreateIconWithoutSphere(9, -1637.218 1201.7833 7.2079)
5@ = Marker.CreateIconWithoutSphere(35, -1637.218 1201.7833 7.2079)
0213: 10@ = create_pickup #PICKUPSAVE type 3 at -1669.4203 1204.3993 7.2546
014B: $_SEASPAR = init_parked_car_generator #SEASPAR -1 -1 1 alarm 0 door_lock 0 0 10000 at -1664.1903 1216.1267 32.4043 angle 202.2651
014C: set_parked_car_generator $_SEASPAR cars_to_generate_to 101
09E2: $_BUFFALO = init_parked_car_generator_w_numberplate #BUFFALO 3 3 1 alarm 0 door_lock 0 0 10000 plate "MADRIVER" at -1664.83 1205.89 20.95 angle 313.1
014C: set_parked_car_generator $_BUFFALO cars_to_generate_to 101
09E2: $_NEBULA = init_parked_car_generator_w_numberplate #NEBULA color 1 1 1 alarm 0 door_lock 0 0 10000 plate "MBAUTOS" at -1650.47 1206.96 20.95 angle 56.5 
014C: set_parked_car_generator $_NEBULA cars_to_generate_to 101
09E2: $_MERIT = init_parked_car_generator_w_numberplate #MERIT color 0 0 1 alarm 0 door_lock 0 0 10000 plate "MBAUTOS" at -1663.91 1222.65 20.95 angle 200.1 
014C: set_parked_car_generator $_MERIT cars_to_generate_to 101
09E2: $_EUROS = init_parked_car_generator_w_numberplate #EUROS color 0 0 1 alarm 0 door_lock 0 0 10000 plate "KILLER" at -1678.62 1209.76 13.47 angle 222.9 
014C: set_parked_car_generator $_EUROS cars_to_generate_to 101
032B: $_FLAME = create_weapon_pickup #FLAME 15 ammo 9999 at -1658.3413 1207.4832 7.25 
fade 1 400

:OTTOS_3_1
0394: play_music 2
00BA: text_styled 'ASS_ACQ' 4000 ms 6 // Asset acquired!
02A3: toggle_widescreen 1
Camera.SetPosition(-1654.9 1205.896 9.7709, 0.0, 0.0, 0.0)
Camera.PointAt(-1614.6892 1251.5153 7.0469, 131.3366)
wait 4000
04A6: 3@ = create_asset_money_pickup_at -1653.0076 1206.9279 7.25 money 25000 25000
01E5: text_1number_highpriority 'ASS_LUV' 10000 6000 ms 1
Camera.SetPosition(-1654.9 1205.896 9.7709, 0.0, 0.0, 0.0)
Camera.PointAt(-1614.6892 1251.5153 7.0469, 131.3366)
wait 2000
Camera.SetBehindPlayer
Camera.Restore_WithJumpCut
02A3: toggle_widescreen 0

:OTTOS_4
wait 0
if 2
Player.Defined($PLAYER_CHAR)
$ONMISSION == 0 // integer values
Pickup.Picked_up(10@)
jf @OTTOS_3_1
Pickup.Destroy(10@)
fade 0 600
wait 600
Player.CanMove($PLAYER_CHAR) = false
wait 100
00A1: put_actor $PLAYER_ACTOR at -1645.4777 1204.8865 7.25
0173: set_actor $PLAYER_ACTOR z_angle_to 64.885990.0
0223: set_actor $PLAYER_ACTOR health_to 176
Actor.Armour($PLAYER_ACTOR) = 100
Player.CanMove($PLAYER_CHAR) = true
wait 200
03D8: show_save_screen
jump @OTTOS_5

:OTTOS_5
wait 0
if 0
03D9: save_done
jf @OTTOS_5
Camera.SetBehindPlayer
Camera.Restore_WithJumpCut
fade 1 600
wait 1500
0213: 10@ = create_pickup #PICKUPSAVE type 3 at -1669.4203 1204.3993 7.2546
jump @OTTOS_4

:OTTOS_6
wait 0
Pickup.Destroy(10@)
if 0
0038: $ONMISSION == 0 ;; integer values
jf @OTTOS_6
end_thread

#2 Справочная информация » Работа с компонентами машины » 23-07-2008 19:55

Mad Driver
Replies: 180

Привет! Мне нужна помощь. Я хотел бы найти скрипт (или опкод), в котором, при резком старте у любого автомобиля из глушителей шёл огонь! Идея мне пришла из игры Scarface.

Board footer

Powered by FluxBB