AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Multiple Primary Weapons (https://forums.alliedmods.net/showthread.php?t=29932)

Wilson [29th ID] 06-19-2006 01:21

Multiple Primary Weapons
 
Hello, I'm trying to make my server give the Bazooka class give the player an M1 Carbine in DoD 1.6 - similar to DoD: Source. I'm also planning on giving him only two magazines to make it less of an advantage.

Whenever I give_user_weapon the m1carbine, if the user already has a primary weapon it does not give it to him until he drops his primary weapon. I'd like to either be able to give multiple primary weapons or, preferrably, strip him of his pistol and give him the carbine as his secondary weapon - but i'd have to modify the carbine object as a secondary weapon.

I'm new to amx mod scripting but I know C based languages so I get the concepts just don't know the commands off the top of my head. What will I need to do this?

v3x 06-19-2006 05:41

strip_user_weapons and give_item

Fun module required.

Wilson [29th ID] 06-20-2006 00:25

Thank you for your reply, v3x, but I have actually tried that. I can effectively strip the user's weapons and give them one primary weapon, but if I give them another primary weapon, it does not actually give it to them as they already have one. It simply does nothing.


All times are GMT -4. The time now is 08:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.