PC (TUTORIAL) How to Add Freeze Gun Protection To Your Own MD Essentials Source

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

PPRX

Member
Oct 8, 2017
51
49
78
PPRX's GTA:IV Simple Script Coding Tutorial
for Script Beginners

* Sorry for My Bad English :( *

In this tutorial used Sublime Text 3.

Hi guys. today i will show you how to add simple freeze gun protection to MD Essentials source.
There is no detailed explanation of the native function in this tutorial.

1. Go to MD_Menu_Contents Folder
kPZELTn.png


2. Next, Create New C File. / File Name: MC_Protection_Loop.c
wJeOXix.png


3. Next, Open MC_Protection_Loop.c with your own text editor and add protection code
SC1kAs1.png

This code must be in a loop. If it detects that the player have "WEAPON ROCKET", it will be deleted automatically.

4. Next, go up the directory, open MD_Essentials.c and include "MC_Protection_Loop.C
yu88oVv.png


5. Next, Place "MC_Protection_Loop" inside the loop of the menu. Protection is not needed offline, so place it inside "IS_NETWORK_SESSION".
RXhOyRa.png


6. Next, go to the MD_Menu_Config folder and open "MD_Vars.h" with your own text editor.
2qiNOaV.png


7. Next, Add a new bool for freeze gun protection. since it is set to "true", protection is set ON by default. by setting it to "false" you can set it to OFF by default.
MTLSkeT.png


8. Next, go to MD_Menu Contents folder, open MC_Menu_Settins.c with your own text editor and add new code.
In this example, I will create freeze gun protection bool in the menu setting. This will make can protection OFF and ON.
DGp0M8W.png


This code is needed for make protection OFF & ON. please note the number of "Selected Item". if you make a mistake number, bool does not work.
KAZj57b.png


OK. freeze gun protection has been added to MD Essentials. Next, compile. For compiling, use the attached Motions97 Compiler.
UpJeeX9.png


When compiling is completed normally, the SCO file is output. If you work from a clean MD Essential, the SCO size will be 249 KB.
SCO can be compressed and there is no problem.
5Dah1Pp.png



That's all. Thanks :)
I hope this tutorial will help as many script beginners.

Credits:
PPRX
DEVILSDESIGN (MD Essential Menu Base)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • @ QM|T_JinX:
    nah where you put your thumbs press that to open a update menu
  • @ QM|T_JinX:
    on the second picture can you scroll donw ? i dont see temp folder in there
  • @ Cr1ms:
    QM|T_JinX said:
    nah where you put your thumbs press that to open a update menu
    i see this
  • @ Cr1ms:
    I see “tmp”
  • @ Cr1ms:
    In second url 2 picture
  • @ QM|T_JinX:
    thats good try to put those other 2 files and put it in there
  • @ Cr1ms:
    And i can play?
  • @ QM|T_JinX:
    if im correct yea
  • @ Cr1ms:
    I join in game, but mod dont work
  • @ QM|T_JinX:
    did you check the update number of the menu and the update number from the game ?
  • @ Cr1ms:
    How?
  • @ QM|T_JinX:
    when you downloaded the menu it should have said on what update
  • @ Cr1ms:
    do you have a mod for the latest tbogt update?
  • @ Cr1ms:
    How check version gta ;?
  • @ QM|T_JinX:
    me nah never modded tbogt so not sure on what update it is
  • @ QM|T_JinX:
    best bet is to google gta tbogt mod menu hen bc i cant seem to find anything i can link to you
  • @ QM|T_JinX:
    or change is to look on Youtube but alot of things wont work so it wont be the first thing you find
  • @ QM|T_JinX:
    things ike this
  • @ QM|T_JinX:
    sorry cant be more of help but i hope you will find something
  • Chat Bot:
    flexovh is our newest member. Welcome!
  • Chat Bot:
    188betctcom is our newest member. Welcome!
  • Chat Bot:
    Cr1ms has joined the room.
    Chat Bot: Cr1ms has joined the room.