Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Happy Holidays from the GTANet team!

How I can make that an actor kill the player and OTHER ACTORS just spa


.:EmZ04:.
 Share

Recommended Posts

Hi. How could you read the title, I want someone to resolve me that doubt. What happens is that I am creating a CLEO mission in which to activate it, the player have to go to a checkpoint, and when the player stop below the checkpoint, basically will spawn 10 Ballas and 10 Grove St members, and Ballas go directly attack the Grove Street an then they'll attack each other. But I don't know how to do it :/. Is there an opcode or a code to do this?

I expect an answer. Thanks :):):)...

Link to comment
Share on other sites

Learn coding by writing small and simple scripts, test it ingame to see what happens and if you have problems with your script, then you can post here, but it's important that you show us your script

Edited by ZAZ
Link to comment
Share on other sites

Learn coding by writing small and simple scripts, test it ingame to see what happens and if you have problems with your script, then you can post here, but it's important that you show us your script

 

 

There go the code (It's unfinished btw):

{$CLEO .cs}:ATTACKERSthread 'ATTACKERS':ATTACKERS_0001wait 0if0256:   player $PLAYER_CHAR definedjf @ATTACKERS_000102A8: [email protected] = create_marker 59 at 2482.3579 -1690.1196 [email protected] = 1//PED MODELS0247: load_model #BALLAS10247: load_model #BALLAS20247: load_model #BALLAS30247: load_model #FAM10247: load_model #FAM20247: load_model #FAM3//WEAPON MODELS 0247: load_model #COLT450247: load_model #TEC9:ATTACKERS_0013wait 0if and0248:   model #BALLAS1 available0248:   model #BALLAS2 available0248:   model #BALLAS3 available0248:   model #FAM1 available0248:   model #FAM2 available0248:   model #FAM3 available0248:   model #COLT45 available0248:   model #TEC9 availablejf @[email protected] = 1:ATTACKERS_0045wait 0if and0102:   actor $PLAYER_ACTOR in_sphere 2482.3579 -1690.1196 13.5151 radius 2.5 2.5 3.0 sphere 1 [email protected] == 1jf @ATTACKERS_004508EA: enable_gangs_spawn 001B4: set_player $PLAYER_CHAR can_move 0fade 0 500//BALLAS009A: [email protected] = create_actor_pedtype 7 model #BALLAS2 at 2476.917 -1722.6958 13.54690173: set_actor [email protected] Z_angle_to 267.00446: set_actor [email protected] dismemberment_possible 001B2: give_actor [email protected] weapon 32 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500081A: set_actor [email protected] weapon_skill_to 20446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS3 at 2475.6775 -1722.6958 13.54690173: set_actor [email protected] Z_angle_to 267.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS1 at 2475.0479 -1722.6958 13.54690173: set_actor [email protected] Z_angle_to 267.001B2: give_actor [email protected] weapon 32 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS2 at 2473.9045 -1722.6958 13.54690173: set_actor [email protected] Z_angle_to 267.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500081A: set_actor [email protected] weapon_skill_to 20446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS3 at 2473.1675 -1722.6958 13.54690173: set_actor [email protected] Z_angle_to 267.001B2: give_actor [email protected] weapon 32 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS1 at 2485.0161 -1724.603 13.54690173: set_actor [email protected] Z_angle_to 93.001B2: give_actor [email protected] weapon 32 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS3 at 2485.99 -1724.603 13.54690173: set_actor [email protected] Z_angle_to 93.001B2: give_actor [email protected] weapon 30 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS1 at 2485.6426 -1724.603 13.54690173: set_actor [email protected] Z_angle_to 93.001B2: give_actor [email protected] weapon 32 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS2 at 2485.4531 -1724.603 13.54690173: set_actor [email protected] Z_angle_to 93.001B2: give_actor [email protected] weapon 30 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0009A: [email protected] = create_actor_pedtype 7 model #BALLAS1 at 2485.0645 -1724.603 13.54690173: set_actor [email protected] Z_angle_to 93.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 5000446: set_actor [email protected] dismemberment_possible 0//GROVE STREET009A: [email protected] = create_actor_pedtype 8 model #FAM2 at 2479.8381 -1679.0476 13.33920173: set_actor [email protected] Z_angle_to 175.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM3 at 2482.2405 -1677.2662 13.33520173: set_actor [email protected] Z_angle_to 175.001B2: give_actor [email protected] weapon 30 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM1 at 2483.772 -1680.0598 13.33530173: set_actor [email protected] Z_angle_to 175.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM2 at 2486.4741 -1679.1427 13.3360173: set_actor [email protected] Z_angle_to 175.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM3 at 2481.3577 -1684.7183 13.50780173: set_actor [email protected] Z_angle_to 175.001B2: give_actor [email protected] weapon 30 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM1 at 2486.6289 -1683.6033 13.33460173: set_actor [email protected] Z_angle_to 175.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM3 at 2479.2 -1680.8041 13.33760173: set_actor [email protected] Z_angle_to 175.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM1 at 2486.7451 -1687.3137 13.51060173: set_actor [email protected] Z_angle_to 90.001B2: give_actor [email protected] weapon 22 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM2 at 2486.7451 -1686.3137 13.51060173: set_actor [email protected] Z_angle_to 90.001B2: give_actor [email protected] weapon 32 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500009A: [email protected] = create_actor_pedtype 8 model #FAM1 at 2486.7451 -1685.3137 13.51060173: set_actor [email protected] Z_angle_to 90.001B2: give_actor [email protected] weapon 32 ammo 2000 // Load the weapon model before using this0223: set_actor [email protected] health_to 500fade 1 1000repeatwait 0until not fading01B4: set_player $PLAYER_CHAR can_move 1end_thread
Edited by .:EmZ04:.
Link to comment
Share on other sites

Go to cleo tutorial, i posted a reply to your post, read it, correct your script, then post it again

Also, i said "Learn coding by writing small and simple scripts", so remove the most part of actors and make a script with only 2 actors

Edited by ZAZ
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
 Share

  • 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.