Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    darkangel1's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    San Diego, CA
    Posts
    542
    Reputation
    15
    Thanks
    153

    How to make/Edit scripts/Put them into menus

    So lately there's been a lot of people asking how to make scripts, Edit them, And put them into menus, So I decided I'd make a thread to help people.

    Here's a list of scripting commands from Bohemia Interactive,
    https://community.bistudio.com/wiki/C...Commands_ArmA2

    So, What do you do with this?
    Well, You can either make your own scripts which you might have to research how to do, Or you can edit your own. Here's how to edit.
    Take this script, or any other you may have, and find below the editable part which will show to people, Shown below in red text.
    Code:
    if (isNil "atext") then
    {
    	atext = 0;
    };
    
    if (atext == 0) then
    {
    	atext = 1;
    	hint "3D Text ON";
    	_3d = "[] spawn
    	{
    		disableSerialization;
    		if (isNil ""BIS_fnc_3dCredits_n"") then {BIS_fnc_3dCredits_n = 2733;};
    		BIS_fnc_3dCredits_n cutRsc [""rscDynamicText"", ""PLAIN""];
    		BIS_fnc_3dCredits_n = BIS_fnc_3dCredits_n + 1;
    		_ctrl = ((uiNamespace getvariable ""BIS_dynamicText"") displayctrl 9999);
    		_ctrl ctrlShow true; _ctrl ctrlEnable true; _ctrl ctrlSetFade 0;
    		tdtext = true;
    		while {tdtext} do
    		{
    			if !(tdtext) exitWith {};
    			_pos = [(getPosATL player) select 0, (getPosATL player) select 1, ((getPosATL player) select 2) + 2];
    			_pos2D = worldToScreen _pos;
    			if (count _pos2D > 0) then
    			{
    				_ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1), safezoneW, safezoneH];
    				_text = parseText ""<t size='0.8' color='#FF00FF'>MPGH EXAMPLE<3</t>"";
    				_ctrl ctrlSetStructuredText _text;
    				_ctrl ctrlCommit 0;
    			};
    		};
    		_ctrl ctrlShow false;
    		_ctrl ctrlEnable false;
    	};";
    	[_3d] execVM "scr\exec.sqf";
    }
    
    else
    {
    	atext = 0;
    	hint "3D Text OFF";
    	_3d = "tdtext = false; tdtext = nil";
    	[_3d] execVM "scr\exec.sqf";
    };
    Once you have found the red part, You can change it to whatever you want. Multiple lines, etc/Different colored text, By editing the HTML color code which is shown in the #'s or Hashtags. You can find a link to all the color codes for HTML here.
    HTML color codes
    And of course there are a lot more websites out there where you can find better more specific colors to edit the text inside menus/scripts etc.

    Next we will move onto menus and how to edit them.
    Below will be an example of one. What you want to do with this, basically is find, which part of the menu you want to edit.
    An example will be shown in red. Now theres 2 things you can do with this, Copy paste another line into the script, and change what the name of your custom script is, or, you can create another sub line, for the menu and make it more custom to what you want.
    Of course you have to take into account which menu you're editing and how they work.
    For this one, The red part shown below is what you can basically copy/paste/edit to what you want it to say.
    Code:
    /* 
    	SniperOfGod Alternative Menu
    	Using the ********* DayZ Hack
    */
    
    // DayZ Hack Directory
    HMDIR = "C:\Users\Jake\Desktop\";
    // Menu Scripts directory
    HDIR  = "dodger\Menu_Scripts\";
    MENUTITLE = "Alternative AJ-Menu + Custom Scripts";
    
    // Don't touch this!
    option = []; img = [];
    
    
    // Format: hack name, path, togglable, color (should be 0), var (should be 0)
    
    img = img + [""]; option = option + ["HEAL","heal.sqf","1","0","0"];
    img = img + [""]; option = option + ["HEAL others 15m","andere.sqf","1","0","0"];
    img = img + [""]; option = option + ["KeyMenu","KeyMenu.sqf","1","0","0"];
    img = img + [""]; option = option + ["-------- Zombie Scripts --------","empty.sqf","0","0","0"];
    img = img + [""]; option = option + ["Zombie Proof","zombieproof.sqf","1","0","0"];
    img = img + [""]; option = option + ["Zombie Shield","zombieshield.sqf","1","0","0"];
    img = img + [""]; option = option + ["-------- Vehicle Scripts --------","empty.sqf","0","0","0"];
    img = img + [""]; option = option + ["Helicopter spawn","vehicle_Spawn.sqf","1","0","0"];
    img = img + [""]; option = option + ["Car God","CarGodMode.sqf","1","0","0"];
    img = img + [""]; option = option + ["Vehicle Speed","VehicleSpeed.sqf","1","0","0"];
    img = img + [""]; option = option + ["Repair","Repair.sqf","1","0","0"];
    img = img + [""]; option = option + ["Flip Vehicle","flipvehicle.sqf","1","0","0"];
    img = img + [""]; option = option + ["-------- Teleport Scripts --------","empty.sqf","0","0","0"];
    img = img + [""]; option = option + ["Teleport to Player","MeToPlayer.sqf","1","0","0"];
    img = img + [""]; option = option + ["Teleport All","TeleAll.sqf","1","0","0"];
    img = img + [""]; option = option + ["Teleport to Vehicle","SpawnToVehicle.sqf","1","0","0"];
    img = img + [""]; option = option + ["Teleport to Me","TeleportToMe.sqf","1","0","0"];
    img = img + [""]; option = option + ["Vehicle Delivery","VehicleDelivery.sqf","1","0","0"];
    img = img + [""]; option = option + ["-------- Game Kits --------","empty.sqf","0","0","0"];
    img = img + [""]; option = option + ["M4 Kit","AssaultLoadout.sqf","1","0","0"];
    img = img + [""]; option = option + ["Shit Kit","MainLoadout.sqf","1","0","0"];
    img = img + [""]; option = option + ["Sniper Kit","SniperLoadout.sqf","1","0","0"];
    img = img + [""]; option = option + ["-------- Fun Scripts --------","empty.sqf","0","0","0"];
    img = img + [""]; option = option + ["Rains Kill","RainKill.sqf","1","0","0"];
    img = img + [""]; option = option + ["AllTheirVehiclesRBelongToUs","GlueAllVehiclesToMe.sqf","1","0","0"];
    img = img + [""]; option = option + ["Summon A Fuckton Of Crows","caw.sqf","1","0","0"];
    img = img + [""]; option = option + ["Antihacks","Antihacks.sqf","1","0","0"];
    img = img + [""]; option = option + ["Antihacks Invis","Antihacks2.sqf","1","0","0"];
    img = img + [""]; option = option + ["3D Text","3Dtext.sqf","1","0","0"];
    img = img + [""]; option = option + ["Spawn 100 Planes","100Planes.sqf","1","0","0"];
    img = img + [""]; option = option + ["Explosions!","HEBullets.sqf","1","0","0"];
    img = img + [""]; option = option + ["Dance1","Dance1.sqf","1","0","0"];
    img = img + [""]; option = option + ["Dance2","Dance2.sqf","1","0","0"];
    img = img + [""]; option = option + ["Dance3","dance3.sqf","1","0","0"];
    img = img + [""]; option = option + ["Glue","gluetarget.sqf","1","0","0"];
    img = img + [""]; option = option + ["Debug","showdebug.sqf","1","0","0"];
    img = img + [""]; option = option + ["Admin Fucker","AdminFucker.sqf","1","0","0"];
    img = img + [""]; option = option + ["Stats","Stats.sqf","1","0","0"];
    img = img + [""]; option = option + ["Weather Lord","WeatherLord.sqf","1","0","0"];
    img = img + [""]; option = option + ["Box","diebox.sqf","1","0","0"];
    img = img + [""]; option = option + ["NamalskBox","Namalskbox.sqf","1","0","0"];
    img = img + [""]; option = option + ["Remote Box","giveboxremote.sqf","1","0","0"];
    img = img + [""]; option = option + ["3 Bandits Spawn","3bandits.sqf","1","0","0"];
    img = img + [""]; option = option + ["Namalsk Stuff","namalsk.sqf","1","0","0"];
    img = img + [""]; option = option + ["Morph","New1.sqf","1","0","0"];
    img = img + [""]; option = option + ["Rainbow Smoke","sillyflares.sqf","1","0","0"];
    img = img + [""]; option = option + ["Light","lich.sqf","1","0","0"];
    img = img + [""]; option = option + ["Firework","fireworks.sqf","1","0","0"];
    img = img + [""]; option = option + ["Remove Grass","nograss.sqf","1","0","0"];
    img = img + [""]; option = option + ["Thunderdome","thunderdome.sqf","1","0","0"];
    img = img + [""]; option = option + ["Spectate Player (Select)","playerspectate.sqf","1","0","0"];
    img = img + [""]; option = option + ["create Player","createplayer.sqf","1","0","0"];
    img = img + [""]; option = option + ["Fly","safeflying.sqf","1","0","0"];
    img = img + [""]; option = option + ["Minigun and Artillery","gun.sqf","1","0","0"];
    img = img + [""]; option = option + ["Kitty cannon","canon.sqf","1","0","0"];
    img = img + [""]; option = option + ["Game Settings","envi.sqf","1","0","0"];
    img = img + [""]; option = option + ["-------- Player Scripts --------","empty.sqf","0","0","0"];
    img = img + [""]; option = option + ["God Mode","GodMode.sqf","1","0","0"];
    img = img + [""]; option = option + ["Infinite Ammo","InfiniteAmmo.sqf","1","0","0"];
    img = img + [""]; option = option + ["No Recoil","recoil.sqf","1","0","0"];
    img = img + [""]; option = option + ["Invisible","Invisible.sqf","1","0","0"];
    img = img + [""]; option = option + ["PlayerShield","playershield.sqf","1","0","0"];
    img = img + [""]; option = option + ["-------- ESP+Wallhacks --------","empty.sqf","0","0","0"];
    img = img + [""]; option = option + ["2D Map + Teleport Alpmaker","alpm_new","1","0","0"];
    img = img + [""]; option = option + ["2D Map Alaska","alaskamap.sqf","1","0","0"];
    img = img + [""]; option = option + ["2D Map SniperOfGod ","map.sqf","1","0","0"];
    img = img + [""]; option = option + ["Full2D Radar","Full2dRadar.sqf","1","0","0"];
    img = img + [""]; option = option + ["Spawn Weapons (Any) ","menu\weapondialog.sqf","0","0","0"];
    img = img + [""]; option = option + ["Item Spawn","menu\itemdialog.sqf","0","0","0"];
    
    
    
    
    execVM format['%1menu\menu_generate.sqf',HDIR];
    
    // End file
    Take into account when editing a menu, or script, sometimes it is NECESSARY to make a backup of the script file.
    Here's a guide on how to create a script, to have inside whatever you desire.
    Step 1: Open Notepad
    Step 2: Type in the code/copy it in
    Step 3: Click on the file button at the top left.
    Step 4: Click save
    Step 5: A prompt box will come up asking, what you want to save it as.
    Step 6: If you're saving it as an .sqf file which I imagine is what you want, Click the save as type box, Choose all files
    Step 7: Enter the name of what you want the script to be, Example Heal.sqf - Remember don't forget the .sqf part, It's what makes the file a script and not just another .txt document
    Step 8: Save, and choose where you want to put it, Example - Your desktop or a folder.
    You're now done and can import that script into a menu.

    Here's how to import that script into a menu.
    Step 1: Take the script file, Move it into your Arma2OA directory, into whichever folder contains your scripts, usually you'll know this off the top of your head.
    Step 2: Open up the script shown above that is your menu, It can be different for whatever menu you're using but most of the time in the name it contains something along the lines of ----Menu.sqf
    Step 3: Now, Find the lines where it shows scripts, and copy/paste one of them.
    Step 4: You can now edit the line to say the name of your script, Where the menu will execute it from, and name it whatever you want which is what it will show up as in the menu.
    Step 5: Save the new file to whatever you edited it as, but again, I recommend keeping backups just in-case you mess up.
    Step 6: Profit and enjoy editing your menu as custom as you want it

    Hope this guide helps some people and stops some of the threads on this forum asking for scripting help/how to's on how you create scripts.
    The questions have been answered a lot and I felt someone needed to make a help thread about how to's.
    Hopefully I didn't mess up on anything here and if anyone has anything to add it would be appreciated..!
    And of course, No thread can be complete without .
    Want to learn how to customize your own menu's/write your own scripts? Check out my sticky in the help section
    Or click this link -
    https://www.mpgh.net/forum/696-dayz-h...nto-menus.html
    Quote Originally Posted by typh0 View Post
    the only person that can ban you, is the big chief mr battleye himself. no admin or hacker or player can do this. In addition to this the big chief mr battleye will ban you based on the bypasser you're using NOT what scripts you are using.

  2. The Following 15 Users Say Thank You to darkangel1 For This Useful Post:

    Woodhouse (02-10-2013),Chucky132 (02-19-2013),crinklymilk (02-10-2013),Daelso (02-19-2013),denis200191 (05-20-2015),[MPGH]Flengo (02-19-2013),huehuehuehuehue (02-10-2013),ilovedayzlol (03-12-2013),[MPGH]Jim Morrison (02-21-2013),Mizzle420420 (03-01-2013),rodrigotravessa (10-27-2014),SomeGuyTH (08-25-2014),stingswift (07-09-2014),SwaggerMan123 (05-12-2013),turbotim (02-19-2013)

  3. #2
    darkangel1's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    San Diego, CA
    Posts
    542
    Reputation
    15
    Thanks
    153
    Surprised nobody has tried to add anything, I thought it would've helped more people :|
    Want to learn how to customize your own menu's/write your own scripts? Check out my sticky in the help section
    Or click this link -
    https://www.mpgh.net/forum/696-dayz-h...nto-menus.html
    Quote Originally Posted by typh0 View Post
    the only person that can ban you, is the big chief mr battleye himself. no admin or hacker or player can do this. In addition to this the big chief mr battleye will ban you based on the bypasser you're using NOT what scripts you are using.

  4. The Following User Says Thank You to darkangel1 For This Useful Post:

    Mizzle420420 (03-01-2013)

  5. #3
    crinklymilk's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    180
    Reputation
    10
    Thanks
    516
    My Mood
    Relaxed
    Quote Originally Posted by darkangel1 View Post
    Surprised nobody has tried to add anything, I thought it would've helped more people :|
    Probably to lazy :S

    Good post though.
    Last edited by crinklymilk; 02-10-2013 at 04:07 AM.

  6. #4
    Woodhouse's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Swagtown, Yoloville
    Posts
    2,832
    Reputation
    228
    Thanks
    3,247
    My Mood
    Sick
    No. It's the hour of the day.

  7. #5
    Symboliq's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    420.69.1337.7010
    Posts
    1,575
    Reputation
    234
    Thanks
    318
    Quote Originally Posted by darkangel1 View Post
    Surprised nobody has tried to add anything, I thought it would've helped more people :|
    Lol, sorry: 1AM at night.

  8. #6
    sjustin1996's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Always, MPGH
    Posts
    376
    Reputation
    10
    Thanks
    80
    My Mood
    Inspired
    You should rename this to "How to edit scripts/put them into menus" I don't see any "making" anything here.

  9. #7
    Skipsy's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Kamchatka
    Posts
    1,701
    Reputation
    74
    Thanks
    659
    My Mood
    Cynical
    Looking good there. Hopefully this can get a sticky so more people can see.

  10. #8
    darkangel1's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    San Diego, CA
    Posts
    542
    Reputation
    15
    Thanks
    153
    Quote Originally Posted by sjustin1996 View Post
    You should rename this to "How to edit scripts/put them into menus" I don't see any "making" anything here.
    What I meant by "making" scripts, Is showing people how to make a .sqf file and put whatever they want into it. Lol.
    Want to learn how to customize your own menu's/write your own scripts? Check out my sticky in the help section
    Or click this link -
    https://www.mpgh.net/forum/696-dayz-h...nto-menus.html
    Quote Originally Posted by typh0 View Post
    the only person that can ban you, is the big chief mr battleye himself. no admin or hacker or player can do this. In addition to this the big chief mr battleye will ban you based on the bypasser you're using NOT what scripts you are using.

  11. #9
    Distraught's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    California
    Posts
    1,897
    Reputation
    659
    Thanks
    1,355
    I enjoy this post. Most of the posts are releases and/or people complaining about people leeching. If more people get familiar with how to even edit scripts. We are separating those who will put 0 effort into scripting versus those who would like to be a little less of a nuisance. I like the idea. Wish there were more of these posts around.

  12. #10
    darkangel1's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    San Diego, CA
    Posts
    542
    Reputation
    15
    Thanks
    153
    Quote Originally Posted by Distraught View Post
    I enjoy this post. Most of the posts are releases and/or people complaining about people leeching. If more people get familiar with how to even edit scripts. We are separating those who will put 0 effort into scripting versus those who would like to be a little less of a nuisance. I like the idea. Wish there were more of these posts around.
    Thanks for the feedback, I'm surprised at how long the mod has been out and this hack forums been up and there's only a couple stickies.. That are useful anyways. Should have been made a long time ago.
    Want to learn how to customize your own menu's/write your own scripts? Check out my sticky in the help section
    Or click this link -
    https://www.mpgh.net/forum/696-dayz-h...nto-menus.html
    Quote Originally Posted by typh0 View Post
    the only person that can ban you, is the big chief mr battleye himself. no admin or hacker or player can do this. In addition to this the big chief mr battleye will ban you based on the bypasser you're using NOT what scripts you are using.

  13. #11
    Solutions's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    The Deep Web
    Posts
    352
    Reputation
    10
    Thanks
    34
    My Mood
    Blah
    Something similar to this has already been stickied in the disscusion section.
    Use to be BlvckLuxury
    I learned batch in a day.
    [IMG]https://i407.photobucke*****m/albums/pp159/Zyptic_Production/twxey69.gif[/IMG]

  14. #12
    darkangel1's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    San Diego, CA
    Posts
    542
    Reputation
    15
    Thanks
    153
    I never go there so I wouldn't know, Thanks for letting me know.
    Want to learn how to customize your own menu's/write your own scripts? Check out my sticky in the help section
    Or click this link -
    https://www.mpgh.net/forum/696-dayz-h...nto-menus.html
    Quote Originally Posted by typh0 View Post
    the only person that can ban you, is the big chief mr battleye himself. no admin or hacker or player can do this. In addition to this the big chief mr battleye will ban you based on the bypasser you're using NOT what scripts you are using.

  15. #13
    darkangel1's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    San Diego, CA
    Posts
    542
    Reputation
    15
    Thanks
    153
    Feel free to write any helpful additions in the replies, Shameless Bump
    Want to learn how to customize your own menu's/write your own scripts? Check out my sticky in the help section
    Or click this link -
    https://www.mpgh.net/forum/696-dayz-h...nto-menus.html
    Quote Originally Posted by typh0 View Post
    the only person that can ban you, is the big chief mr battleye himself. no admin or hacker or player can do this. In addition to this the big chief mr battleye will ban you based on the bypasser you're using NOT what scripts you are using.

  16. #14
    imzokle's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    298
    Reputation
    51
    Thanks
    60
    My Mood
    Yeehaw
    Thank you so much.

  17. #15
    darkangel1's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    San Diego, CA
    Posts
    542
    Reputation
    15
    Thanks
    153
    Quote Originally Posted by imzokle View Post
    Thank you so much.
    No problem You made my day with that thanks tbh.
    Want to learn how to customize your own menu's/write your own scripts? Check out my sticky in the help section
    Or click this link -
    https://www.mpgh.net/forum/696-dayz-h...nto-menus.html
    Quote Originally Posted by typh0 View Post
    the only person that can ban you, is the big chief mr battleye himself. no admin or hacker or player can do this. In addition to this the big chief mr battleye will ban you based on the bypasser you're using NOT what scripts you are using.

Page 1 of 3 123 LastLast

Similar Threads

  1. How to make Mod and change them?
    By bedi123 in forum Blackshot Help
    Replies: 3
    Last Post: 01-04-2013, 09:07 PM
  2. Is this possible? How to make a script run when something happens in Cheat Engine?
    By LulzCode in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 8
    Last Post: 08-31-2012, 12:16 AM
  3. Teaching You How To Make RSBuddy Scripts
    By ThrowTheCat in forum User Services
    Replies: 5
    Last Post: 09-11-2011, 10:00 AM
  4. [Tutorial] How to make any script into a bot
    By bulzord in forum Vindictus Tutorials
    Replies: 23
    Last Post: 05-27-2011, 05:52 PM
  5. Replies: 37
    Last Post: 09-24-2010, 08:55 PM