ItsMods

Full Version: Famas War
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys im new and this is my first mod please don't flame its just test how im good newbie.


This mod including :

-Every spawn with famas reflex dualclip , m1911 , stun grenade , sticky grenade
-Text

That is all for now!

CLick to see my video


ivankec

thanks for this mod. a youtube link would be nice
Glad that you're making mods!
But some things are to keep for yourself until you get a little better at it, unless you want us to expel you from the society like a certain other person.

- At least you haven't stole one of my mods....

..yet
(03-12-2011, 21:04)AZUMIKKEL Wrote: [ -> ]Glad that you're making mods!
But some things are to keep for yourself until you get a little better at it, unless you want us to expel you from the society like a certain other person.

- At least you haven't stole one of my mods....

..yet

lol Shy

Good job for a beginner. Haven't ran it but I've looked at the code. Some suggestions:

Code:
ModInfo()
{
self endon( "disconnect" );
info = self createFontString("hudbig", 2.0);
//while loop not necessary because the text is not moving
while(true)
{
info setPoint(...);
info setText(...);
wait .5;
}
}

Correct me if I'm wrong but a while loop in modinfo() is not necessary because the text is static.

Also you should move your new code such as:

Code:
    self takeAllWeapons();
       self giveWeapon ("famas_reflex_extclip_mp", 0, false );
       ...

Into separate functions. Also you should add a function that checks to make sure that the only weapons used are the ones you listed. Example:

Code:
while(true){
  if((self getCurrentWeapon()=="famas_reflex_extclip_mp")||
  (self getCurrentWeapon()=="sticky_grenade_mp")||
  (self getCurrentWeapon()=="concussion_grenade_mp")||
  (self getCurrentWeapon()=="m1911_extclip_mp"))
  {
     self takeAllWeapons();
         self giveWeapon ("famas_reflex_extclip_mp", 0, false );
    self giveweapon("sticky_grenade_mp");
    self giveweapon("concussion_grenade_mp");
    self giveweapon("m1911_extclip_mp");
  }
}

That should keep anybody from trying to pick up any weapon. Hope this helps.