Jump to content

I need some help with my script


TheRemix

Recommended Posts

I made a Michael Myers Cleo mod with Sanny Builder and I have a few problems.

 

 

1. He is supposed to spawn at Midnight-2:00 am,but instead he spawns whenever.

 

2. After I kill him he immediately spawns again. I want it were he will only respawn if I come back to the area.

 

3. After I kill him his body immediately disappears. I want it were I can see his body laying on the ground.

 

4. How do I make him walk like Michael Myers? You know that slow walk.

 

Here is the script

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

 

{$VERSION 3.1.0027}

{$CLEO .cs}

 

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

0000: NOP

00BF: 0@ = current_time_hours, 1@ = current_time_minutes

0006: 1@ = 0

 

:Noname_17

0001: wait 20 ms

00D6: if and

0256: player $PLAYER_CHAR defined

03EE: player $PLAYER_CHAR controllable

00EC: actor $PLAYER_ACTOR 0 near_point -1634.487 -2233.259 radius 150.0 150.0

004D: jump_if_false @Noname_332

if or

0@ == 23

0019: 0@ > 3

004D: jump_if_false @Noname_332

0006: 0@ = 0

0247: load_model #KNIFECUR

023C: load_special_actor "MICHAEL" as 1 // models 290-299

038B: load_requested_models

 

:Noname_108

0001: wait 10 ms

00D6: if and

0248: model #KNIFECUR available

023D: special_actor 1 loaded

004D: jump_if_false @Noname_139

0002: jump @Noname_146

 

:Noname_139

0002: jump @Noname_108

 

:Noname_146

009A: 0@ = create_actor_pedtype 7 model #SPECIAL01 at -1634.487 -2233.259 31.4766

0223: set_actor 0@ health_to 50000

035F: actor 0@ armour += 25000

0446: set_actor 0@ immune_to_headshots 0

060B: set_actor 0@ decision_maker_to 1500

07DD: set_actor 0@ temper_to 1500 // see pedstats.dat

01B2: give_actor 0@ weapon 4 ammo 1 // Load the weapon model before using this

05E2: AS_actor 0@ kill_actor $PLAYER_ACTOR

0249: release_model #KNIFECUR

0296: unload_special_actor 1

 

:Noname_236

0001: wait 20 ms

00D6: if or

8256: not player $PLAYER_CHAR defined

0118: actor $PLAYER_ACTOR dead

004D: jump_if_false @Noname_280

034F: destroy_actor_with_fade 0@

01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian

01B7: release_weather

0002: jump @Noname_332

 

:Noname_280

00D6: if

0118: actor 0@ dead

004D: jump_if_false @Noname_325

034F: destroy_actor_with_fade 0@

01C2: remove_references_to_actor 0@ // Like turning an actor into a random pedestrian

0109: player $PLAYER_CHAR money += 0

01B7: release_weather

0002: jump @Noname_332

 

:Noname_325

0002: jump @Noname_236

 

:Noname_332

0002: jump @Noname_17

0000: NOP

0000: NOP

0A93: end_custom_thread

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.