Raised This Month: $ Target: $400
 0% 

Multiple Primary Weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 06-19-2006 , 01:21   Multiple Primary Weapons
Reply With Quote #1

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?
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-19-2006 , 05:41  
Reply With Quote #2

strip_user_weapons and give_item

Fun module required.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 06-20-2006 , 00:25  
Reply With Quote #3

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.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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