How to code a basic bind patch

RGH

New Member
Reputation
0
this is a tutorial on how to setup a cod4 patch

Step 1-Download NITRAMS clean cod4 patch
http://www.mediafire.com/?azf6h2x823r6em6

Step 2-Download FF.Viewer
http://www.mediafire.com/?xexm55s9qt1b746

Step 3-In the .gsc patch/made/by/__NITRAM__.gsc, you shoud find this code.
Code:
#include common_scripts/utility;
 #include maps\mp\_utility:
 
Init () // stands for initiation
 { //syntaxes
 enter the bind where this text is here
 } //sytaxes

Step 4-delete "enter the bind where this text is here" and add
Code:
self setClientDvar( "ui_mapname", "mp_shipment;

Step 5-Choose the button to activate the mods
Code:
button_back 
button_start 
if you want to use another one, just ask and i will post it.

Step 6- then add this code to add text (optional)
Code:
say ^1 enter your text here

Your patch so far should look like this:
Code:
#include common_scripts/utility;
#include maps\mp\_utility:

whatever ()
{
self setClientDvar( "ui_mapname", "mp_shipment;bind button_back;say ^1thank you "Mod" for this tut;
}

Step 7- Add your Dvars
Code:
self setClientDvar( "ui_mapname", "mp_shipment;bind button_back;say ^1thank you "Mod" for this tut;(insert dvars here);

How to end the binds
the code is ended with the ");
also make sure when adding new bind codes that between each one u add this ; so if i was changing between two codes like this example... aimbot_code;uav_code always make sure you have that in the end code does not need it all you need for the end is ");

Your finished patch
Code:
How your finished Patch Binds should look like
self setClientDvar( "ui_mapname", "mp_shipment;bind button_back;say ^1thank you "Mod" for this tut;(insert dvars here)");


Colour Dvars:
Code:
^1 - RED 
^2 - GREEN 
^3 - YELLOW 
^4 - BLUE 
^5 - CYAN 
^6 - PINK 
^7 - WHITE 
^8 - DEFAULT MAP COLOR 
^9 - GREY OR DEFAULT MAP COLOR 
^0 - BLACK

Enjoy, this is a really basic tutorial for beginner coders.[/php]
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…