Joni2030 6 Posted April 15, 2012 I want change my skin in stripped main scm but i dont know how so can somebody tell me i want change it for Ryder i want example for how i change it Quote Share this post Link to post Share on other sites
Bad.boy! 9 Posted April 15, 2012 Learn coding before you start screwing around with your main.scm Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 15, 2012 I started edit new main.scm there is mutch defined unique jumps and pickups and carls/weapons/save pickups Quote Share this post Link to post Share on other sites
Ashwin.Star 35 Posted April 16, 2012 (edited) 0352: set_actor $PLAYER_ACTOR skin_to 'PLAYER' where 'PLAYER' is skin/model name, but i think you asked it for SA, ::Ryder:: you have to find 'Ryder's model name in SCM & then replace it with another Model name Edited April 16, 2012 by Ashwin the new boy Quote Share this post Link to post Share on other sites
MichaelKnight1 3 Posted April 16, 2012 (edited) 0352: set_actor $PLAYER_ACTOR skin_to 'PLAYER' where 'PLAYER' is skin/model name, but i think you asked it for SA, ::Ryder:: you have to find 'Ryder's model name in SCM & then replace it with another Model name @Ashwin Ryder is A Special Actor It is not random you .And surely you know this rule . @Joni2030 023C: load_special_actor 'RYDER1' as 1 // models 290-299 038B: load_requested_models 09C7: change_player $PLAYER_CHAR model_to #SPECIAL01 SPECIAL = as 1 == SPECIAL01 Edited April 16, 2012 by MichaelKnight1 Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 16, 2012 Okey now i have to know where to put it know it i have to put it to main.scm but where there? Quote Share this post Link to post Share on other sites
Silent 15,339 Posted April 16, 2012 Well, if you can use CLEO (YES, you can use CLEO opcodes inside main.scm if only CLEO is installed), there is a MUCH better way to do this, as it doesn't need special actors loading (means, nothing gets f*cked up if you'll load another actor on the same slot). http://www.gta-mods.pl/artykuly/57/zmiana-modelu-gracza ("Dla Zaawansowanych" section) The only thing is that site is in Polish, but code is full and you don't really need to understand the language. The only thing you might want to know is that "NAZWA MODELU" means "model name". Quote Share this post Link to post Share on other sites
MichaelKnight1 3 Posted April 16, 2012 Okey now i have to know where to put it know it i have to put it to main.scm but where there? There is no difficulty, such as Cleo just you create thread of course , 004F: create_thread @PLAYER Load Special Actor ( Ryder ) befor changer player 023C: load_special_actor 'RYDER1' as 1 // models 290- Then Changer it To Ryder !! 09C7: change_player $PLAYER_CHAR model_to #SPECIAL01 Check This : :PLAYER_LOAD03A4: name_thread 'PLAYER' 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @PLAYER_LOAD 023C: load_special_actor 'RYDER1' as 1 // models 290-299 038B: load_requested_models :PLAYER_CHANGE0001: wait 0 ms 00D6: if and 023D: special_actor 1 loaded 09C7: change_player $PLAYER_CHAR model_to #SPECIAL01 004E: end_thread Quote Share this post Link to post Share on other sites
Silent 15,339 Posted April 16, 2012 Wrong code, as usual. Quote Share this post Link to post Share on other sites
MichaelKnight1 3 Posted April 16, 2012 Wrong code, as usual. NO Quote Share this post Link to post Share on other sites
Silent 15,339 Posted April 16, 2012 Yes, it won't work properly. C'mon, you think you're a good coder, fix your errors. Or better yet, stop "helping" people. Quote Share this post Link to post Share on other sites
MichaelKnight1 3 Posted April 16, 2012 Yes, it won't work properly. C'mon, you think you're a good coder, fix your errors. Or better yet, stop "helping" people. so. i don't want to fight , sorry , anyways peace Quote Share this post Link to post Share on other sites
Frank.s 833 Posted April 16, 2012 ^Lol he's such a fail. @SilentPL, as i have no knowledge of what those memory addresses do, could you/someone who knows give a brief description of what the polish code does differently than a traditional skin change opcode? Quote Share this post Link to post Share on other sites
Silent 15,339 Posted April 16, 2012 It mostly recreates "load_special_actor" stuff, with the only difference being that the model will be loaded to ID 0 - means, only player will use it. And yeah, that's my code, rewritten in SCM from EXE Quote Share this post Link to post Share on other sites
Frank.s 833 Posted April 16, 2012 Ah nice, ty. Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 16, 2012 Ah it´s not work Michael, and michael did you ever read tutorials or did you just start coding? i have created all the modt i want i maybe create missions i am not sure but the player IS RYDER becayse i like Eazy-E he is old and dead but She is GOOD Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 16, 2012 SilentP First I am not sure if i used cleo opcodes i think i didn´t. Two I dont learn nothing IF i always copy of somewhere so i started Read tutorials again and again because i can´t do nothing else. But if somebody get for me the answer i will give him my first main.scm release But that is in progress now so i dont know how long there can be go. Quote Share this post Link to post Share on other sites
Silent 15,339 Posted April 16, 2012 This code can't be just explained. But, if you want a straight and easy way, just put something like Knight showed (BUT CORRECT) after creaitng the player and, even beter, before the first rebuild. It should be fine. Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 16, 2012 But witch 023C: load_special_actor 'RYDER1' as 1 // models 290-299038B: load_requested_models 09C7: change_player $PLAYER_CHAR model_to #SPECIAL01 Or :PLAYER_LOAD03A4: name_thread 'PLAYER'0001: wait 0 ms00D6: if0256: player $PLAYER_CHAR defined004D: jump_if_false @PLAYER_LOAD023C: load_special_actor 'RYDER1' as 1 // models 290-299038B: load_requested_models:PLAYER_CHANGE0001: wait 0 ms00D6: if and023D: special_actor 1 loaded 09C7: change_player $PLAYER_CHAR model_to #SPECIAL01004E: end_thread Quote Share this post Link to post Share on other sites
Silent 15,339 Posted April 16, 2012 First variant + special actor releasing is better. Quote Share this post Link to post Share on other sites
Rapier 0 Posted April 16, 2012 (edited) I want change my skin in stripped main scm but i dont know how so can somebody tell me i want change it for Ryder i want example for how i change it This code is part of a mod I made some time ago. It changes CJ model by another randomly. :LabelChangeModelwait 00209: [email protected] = random_int_in_ranges 9 289 if and not [email protected] == [email protected] // (int) not [email protected] == 42 not [email protected] == 65 not [email protected] == 74 not [email protected] == 86 not [email protected] == 119 not [email protected] == 149 jf @LabelChangeModelif and not [email protected] == 208 not [email protected] == 265 not [email protected] == 266 not [email protected] == 267 not [email protected] == 268 not [email protected] == 269 not [email protected] == 270 jf @LabelChangeModelif and not [email protected] == 271 not [email protected] == 272 not [email protected] == 273 jf @LabelChangeModel003B: [email protected] = [email protected] // (int) Model.Load([email protected])038B: load_requested_models :LabelChangeModel02wait 0 if Model.Available([email protected])jf @LabelChangeModel02// You can do some fade efects here...09C7: change_player $PLAYER_CHAR model_to [email protected]($PLAYER_CHAR)Model.Destroy([email protected])jump @LabelStart You will have to make a way to enable this script. An option would be to create something like this: :LabelStartif and Player.Defined($PLAYER_CHAR) Player.Controllable($PLAYER_CHAR) not Actor.Driving($PLAYER_ACTOR)8965: not actor $PLAYER_ACTOR swimmingjf @LabelWaitwait 0if 00E1: player 0 pressed_key 4 //ACTION KEY jf @LabelStartjump @LabelChangeModel:LabelWaitwait $DEFAULT_WAIT_TIME jump @LabelStart:LabelChangeModel... Hope this helps! Edited April 16, 2012 by Rapier Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 17, 2012 Okey thanks, but i dont want use cleo codes because i try make full scm Quote Share this post Link to post Share on other sites
Rapier 0 Posted April 18, 2012 But I haven't used any of the Cleo codes! Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 19, 2012 Ah sorry i didn´t watch these codes so i try soon it thanks Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 19, 2012 Rapier i watched key press code i dont want key press i want it to comes when i spawn i want my normal skin is ryder. Quote Share this post Link to post Share on other sites
Rapier 0 Posted April 19, 2012 Okay, I understand. But this is a bit more complex... Quote Share this post Link to post Share on other sites
Joni2030 6 Posted April 20, 2012 I know it´s omplex but i want it Quote Share this post Link to post Share on other sites
Silent 15,339 Posted April 20, 2012 Okay, I understand. But this is a bit more complex... Actually, not. You just have to add some extra code before the main loop, and that's all. The answer was given here at least 2 times already. Quote Share this post Link to post Share on other sites