1) First you will need a file to open the MOD itself, use notepad++
Google "notpad++", I am feeling lucky, because it's 1st on every google on earth.
2) Now, you probably want to edit a MOD by yourself, don't start making MODs without editing them, I'd say use a long written MOD, and easy to understand, like NHZM.
3) After you saw how everything works, you might want to create your own MOD, you will need a clean
_rank.gsc file to do that, then start!
Well here are some examples:
If you want to have infinite ammo + infinite health use this code:
Code:
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" )
{
if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
{
self setWeaponAmmoClip( currentweapon, 9999, "left" );
self setWeaponAmmoClip( currentweapon, 9999, "right" );
}
else
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 999999;
self.health = self.maxhealth;
for( ;; )
{
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
wait 0.5;
}
}
Copy that where ever you want on your _rank.gsc file, after then add this code to onPlayerSpawned:
Code:
self thread doAmmo();
self thread doGod();
Now, it should look like this:
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self thread doAmmo();
self thread doGod();
}
}
That will make
everyone have infinite ammo + infinite health, if you want to be a selfish nab

use this:
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
if(self isHost())
{
self thread doAmmo();
self thread doGod();
}
}
}
Which gives the host infinite ammo + infinite health, if you did not understood how I did that, I added
The
if is a question.
The self, is you.
isHost is the question that you asked with
if
That is the basic, very basics.
Also, if you don't want to enter that inf ammo + health to your _rank.gsc for a reason create a new file, rename it to:
_Name.gsc
add this code to _Name.gsc
Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" )
{
if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
{
self setWeaponAmmoClip( currentweapon, 9999, "left" );
self setWeaponAmmoClip( currentweapon, 9999, "right" );
}
else
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 999999;
self.health = self.maxhealth;
for( ;; )
{
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
wait 0.5;
}
}
Save it, after then in your _rank.gsc (onPlayerSpawned)
Code:
self thread _FILE_LOCATION::doGod();
self thread _FILE_LOCATION::doAmmo();
file location is where your _Name.gsc is at.
I do not mean C:\blablabla, I mean in your MOD folder.