Satyr22cz Posted November 13, 2008 Share Posted November 13, 2008 please how to create PED and bonus imune to headshot create weapon and animation many thanks for CODE and request Link to comment Share on other sites More sharing options...
spaceeinstein Posted November 13, 2008 Share Posted November 13, 2008 Do you want this topic merged with your other topic? Link to comment Share on other sites More sharing options...
Satyr22cz Posted November 13, 2008 Author Share Posted November 13, 2008 cleo mod Link to comment Share on other sites More sharing options...
james227uk Posted November 13, 2008 Share Posted November 13, 2008 {$CLEO .cs}thread 'SKINCHANGE':STARTwait 0 msifPlayer.Defined($PLAYER_CHAR)jf @STARTif00E1: player 0 pressed_key 67jf @STARTModel.Load(#[Choose Ped]):SECONDwait 0 msifModel.Available(#[Choose Ped])jf @THIRDjump @FOURTH:THIRDwait 0 msModel.Load(#[Choose Ped])jump @SECOND:FOURTHwait 1000 ms09C7: change_player $PLAYER_CHAR model_to #LAPD1070D: rebuild_player $PLAYER_CHARwait 1000 msModel.Destroy(#[Choose ped])0A93: end_custom_thread Got it off James, Run > Compile to CLEO Folder run game, press C to change to ped He wants to spawn a ped, not change into one Link to comment Share on other sites More sharing options...
Deji Posted November 13, 2008 Share Posted November 13, 2008 009A: [email protected] = create_actor_pedtype 4 model #MODELNAME at 0.0 0.0 0.0 Knock yourself out. Don't forget to request the model unless you use model numbers. Link to comment Share on other sites More sharing options...
Doomed_Space_Marine Posted November 13, 2008 Share Posted November 13, 2008 Don't forget to request the model unless you use model numbers. Actually you have to load the model with model numbers too. Link to comment Share on other sites More sharing options...
Deji Posted November 13, 2008 Share Posted November 13, 2008 Don't forget to request the model unless you use model numbers. Actually you have to load the model with model numbers too. Meh... It's worked whenever I've done it Link to comment Share on other sites More sharing options...
spaceeinstein Posted November 14, 2008 Share Posted November 14, 2008 Before posting a code to help someone make sure it works for you first. I have made a little code snippet in the GTAModding wiki for spawning a ped. Link to comment Share on other sites More sharing options...
Satyr22cz Posted November 14, 2008 Author Share Posted November 14, 2008 (edited) thanks boys main Doctor emett L.brown but {$CLEO .cs} //-------------MAIN---------------thread 'PED'0A95: enable_thread_savingwait 100009A: [email protected] = create_actor_pedtype 4 model #(MODELNAME GOES HERE!) at 0.0 0.0 0.00A93: end_custom_thread dont work Edited November 14, 2008 by Satyr22cz Link to comment Share on other sites More sharing options...
NotAvailableToday Posted November 14, 2008 Share Posted November 14, 2008 {$CLEO .cs}:LABEL_003A4: name_thread 'ACTTE01' :LABEL_1 0247: load_model #HFORI //PED 01 038B: load_requested_models 009A: $MY_ACTOR_01 = create_actor_pedtype 4 model #HFORI at 1.0 0.0 0.0 0173: set_actor $MY_ACTOR_01 Z_angle_to 262.0 :LABEL_END004E: end_thread THX ASCHRATT AND GREETZ!!! Link to comment Share on other sites More sharing options...
Donny78 Posted November 14, 2008 Share Posted November 14, 2008 {$CLEO .cs}:SPED03A4: name_thread 'SPED'var $PLAYER_CHAR: Player $PLAYER_ACTOR: Actorend:SPED0wait 500if and Player.Defined($PLAYER_CHAR) 0AB0: key_pressed 0x6A // (numpad) * [email protected] < 20 //limit it to 20 extra spawns else_jump @SPED0 :SPED1wait 0Model.Load(#HFORI)if Model.Available(#HFORI)else_jump @SPED1:SPED2wait 00208: [email protected] = random_float_in_ranges 3.0 9.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 [email protected] 2.0 0172: [email protected] = actor $PLAYER_ACTOR [email protected] += 180.0Actor.Create([email protected], 4, #HFORI, [email protected], [email protected], [email protected])Actor.Angle([email protected]) = [email protected] Model.Destroy(#HFORI)[email protected] += 1jump @SPED0 A little example which shows a few things, model handling, key press and limiting the amounts. I don't know if loading the model each time is good but i figured if you aren't using it then destroy it and load it when you next want it. Link to comment Share on other sites More sharing options...
Satyr22cz Posted November 14, 2008 Author Share Posted November 14, 2008 thanks donny please once more full script CODE create ped+gun nothing animation nothing gang member only PED + PED gun coordinate: 1362.67 -610.14 109.13 dwmylc2 - model mp5 - weapon big please thanks all Link to comment Share on other sites More sharing options...
Donny78 Posted November 14, 2008 Share Posted November 14, 2008 {$CLEO .cs}:SPED03A4: name_thread 'SPED'var $PLAYER_CHAR: Playerend:SPED0wait 500if and Player.Defined($PLAYER_CHAR) 0AB0: key_pressed 0x6A // (numpad) * [email protected] < 20else_jump @SPED0 :SPED1wait 0Model.Load(#DWMYLC2)Model.Load(#MP5LNG)if Model.Available(#DWMYLC2) Model.Available(#MP5LNG)else_jump @SPED1:SPED2wait 0Actor.Create([email protected], 4, #DWMYLC2, 1362.67, -610.14, 109.13)Actor.Angle([email protected]) = 97.258101B2: give_actor [email protected] weapon 29 ammo 99999 //unlimited ammo, change this to your needs01B9: set_actor [email protected] armed_weapon_to 29 Model.Destroy(#DWMYLC2)Model.Destroy(#MP5LNG)[email protected] += 1jump @SPED0 Link to comment Share on other sites More sharing options...
Satyr22cz Posted November 14, 2008 Author Share Posted November 14, 2008 very thanks pls what SPED? Link to comment Share on other sites More sharing options...
Deji Posted November 14, 2008 Share Posted November 14, 2008 very thanks pls what SPED? just a name... you should read up some tutorials Link to comment Share on other sites More sharing options...
coin-god Posted November 14, 2008 Share Posted November 14, 2008 very thanks pls what SPED? Its the name of the Thread. Dont pay attention to that. Link to comment Share on other sites More sharing options...
Satyr22cz Posted November 14, 2008 Author Share Posted November 14, 2008 (edited) pls and no prassed normal in street go to Mad Dog house and PED in pool and end pls how create more PED pls full code Edited November 14, 2008 by Satyr22cz Link to comment Share on other sites More sharing options...
Donny78 Posted November 15, 2008 Share Posted November 15, 2008 In Sannybuilder press ctrl+alt+2 and type in "actor", take a look down the list for opcodes which look like they may help you and then come on here and take a look in the documentation for opcodes and try to find out what it does and how to use it. That's all I do, trial and error after researching the tasks and possible methods. If you can't figure it out then post in the requests topic what you want but as a finished script not just snippets then maybe some kind person will make it for you. Other than that you will just have to learn like we all are, nobody is going to do all your stuff for you, I'm nice and don't mind the odd example or help but seriously I'm not a service lol. By the way try to use a translator in future so you are easier to understand. Link to comment Share on other sites More sharing options...
Satyr22cz Posted November 15, 2008 Author Share Posted November 15, 2008 thanks donny sorry 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