Raised This Month: $ Target: $400
 0% 

[HELP] Check of weapons in certain slot and deployment.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JackEyedJones
New Member
Join Date: Jan 2019
Old 01-02-2019 , 09:27   [HELP] Check of weapons in certain slot and deployment.
Reply With Quote #1

Greetings to the Alliedmods community.

I've created a plugin that allows you to pick up weapons from the ground using IN_USE button, but there is the issue coming with it. Carrying of multiple weapons in same slot. Because of the method im using and also causes a loss of weapon in slots. I'd like to avoid it but im not sure how to build such code.

I'll be glad if someone could help me with creating a code that checks weapon in certain slot and if there is a weapon in this slot the code to Deploy it so it could get stripped with fm_strip_user_gun(id, get_user_weapon(id)).
Attached Files
File Type: sma Get Plugin or Get Source (pickweapons_on_use.sma - 291 views - 1.9 KB)
JackEyedJones is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-02-2019 , 10:14   Re: [HELP] Check of weapons in certain slot and deployment.
Reply With Quote #2

You probably should work with m_rgpPlayerItems.

AMX Mod X 1.8.3 (1.9.0 now):
Spoiler


AMX Mod X 1.8.2:
Spoiler
__________________









Last edited by CrazY.; 01-02-2019 at 10:22.
CrazY. is offline
Old 01-02-2019, 20:28
EFFx
This message has been deleted by EFFx. Reason: nvm
Reply


Thread Tools
Display Modes

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 07:39.


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