eminem 2ka9 Posted January 4, 2012 Share Posted January 4, 2012 (edited) I'm looking for pro modder or someone with some experience with Sanny Builder 3. This is the code i used to spawn 1 minigun {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'WEAP' :WEAP_11wait 0 if Player.Defined($PLAYER_CHAR)else_jump @WEAP_11 if not Actor.Driving($PLAYER_ACTOR)else_jump @WEAP_11 if 0AB0: key_pressed 50 else_jump @WEAP_11 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 Model.Load(#MINIGUN)038B: load_requested_models [i HAVE NO EXPERIENCE WITH SANNY] The game ends up crashing when i use this code when clicking 2. Also how do i change the hotkey that brings up the mod. I'm not sure if this is even correct, i only want to spawn a minigun right away when i click 2, no page or nothing. Would what i'm doing even need a .fxt file? Thanks Everyone. EDIT Code tags added by Adler Edited January 4, 2012 by Adler Link to comment Share on other sites More sharing options...
Silent Posted January 4, 2012 Share Posted January 4, 2012 This code only loads the model and does nothing more. I believe you wanted it to be like that: {$CLEO}0000: WEAPONSwhile true 0001: wait 0 ms if 0256: player 0 defined then if 80DF: not actor $PLAYER_ACTOR driving then if 0AB0: key_pressed 50 // It's the hotkey then 0247: load_model #MINIGUN 038B: load_requested_models 01B2: give_actor $PLAYER_ACTOR weapon 38 ammo 1500 // You may want to change amount of ammo here 0249: release_model #MINIGUN while 0AB0: key_pressed 50 // Prevents from minigun spawning again and again when you have the button pressed 0001: wait 0 ms end end end endend Link to comment Share on other sites More sharing options...
eminem 2ka9 Posted January 4, 2012 Author Share Posted January 4, 2012 Awh thank u so much you are my life saver dude I Won't need a .fxt file then! 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