Page 1 of 1

CoD4 Promod - Making guns have no ammo?

Posted: April 21st, 2011, 6:57 am
by madcrab
Hey guys,
I'm looking at trying to make a knife only server for promod, yet i've tried to disable all the guns withing the custom_public file in the promod folder and it makes it so you cannot knife and funnily enough everyone becomes invisible too. I know the codjumper mod has a gun without any ammo in it, how can i make this possible? Any help would be greatly appreciated thanks!

Re: CoD4 Promod - Making guns have no ammo?

Posted: April 21st, 2011, 10:40 am
by Rezil

Code: Select all

self SetWeaponAmmoStock(self getCurrentWeapon(), 0);
Something along these lines. Get all players on server, loop this in a seperate thread.