.:EmZ04:. Posted June 26, 2016 Share Posted June 26, 2016 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 More sharing options...
ZAZ Posted June 26, 2016 Share Posted June 26, 2016 (edited) 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 June 26, 2016 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
.:EmZ04:. Posted June 26, 2016 Author Share Posted June 26, 2016 (edited) 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 June 26, 2016 by .:EmZ04:. Link to comment Share on other sites More sharing options...
ZAZ Posted June 26, 2016 Share Posted June 26, 2016 (edited) 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 June 26, 2016 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
.:EmZ04:. Posted June 26, 2016 Author Share Posted June 26, 2016 Ohh... Ok! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now