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.