#1 Re: Вопросы по скриптингу » Один вопрос » 01-10-2011 17:03

Помогите разобраться,что в этом скрипте не так?не работает sad

:NONAME
02DD: 1@ = get_random_ped_in_zone 'SAN_AND' with_pedtype_civilian 1 gang 0 criminal/prostitute 1 
   not 1@ == -1 
jf @NONAME 
Actor.StorePos(1@, 2@, 3@, 4@)
Actor.DestroyInstantly(1@)
Actor.RemoveReferences(1@)
Model.Load(#SWAT)
Model.Load(#KNIFECUR)
038B: load_requested_models 

:NONAME_70
wait 0 
if and
   Model.Available(#SWAT)
   Model.Available(#KNIFECUR)
jf @NONAME_70 
1@ = Actor.Create(Special, #SWAT, 2@, 3@, 4@)
Actor.Armour(1@) = 1500
0446: set_actor 1@ immune_to_headshots 0 
01B2: give_actor 1@ weapon 4 ammo -1 // Load the weapon model before using this 
087E: set_actor 1@ weapon_droppable 0 
060A: create_decision_maker_type 0 store_to 8@ // decision\allowed\m_.ped files 
060B: set_actor 1@ decision_maker_to 8@ 
077A: set_actor 1@ acquaintance 4 to_actors_pedtype 0 // see ped.dat 
07A5: AS_actor 1@ attack_actor $PLAYER_ACTOR -1 ms 

:NONAME_179
wait 0 
if or
   not Player.Defined($PLAYER_CHAR)
   Actor.Dead(1@)
jf @NONAME_226 
Actor.RemoveReferences(1@)
065C: release_decision_maker 8@ 
wait 10000 
jump @NONAME 

:NONAME_226
if 
   Actor.Driving($PLAYER_ACTOR)
07A5: AS_actor 1@ attack_actor $PLAYER_ACTOR -1 ms 
jump @NONAME_179

Board footer

Powered by FluxBB