Raised This Month: $ Target: $400
 0% 

Attach dead player's weapons to you


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sekac
Senior Member
Join Date: Nov 2016
Old 06-03-2018 , 04:22   Attach dead player's weapons to you
Reply With Quote #1

So I need to attach all weapons of a dead player to someone alive. Like when someone dies I can just call a command and get that person's weapons.
sekac is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-03-2018 , 05:04   Re: Attach dead player's weapons to you
Reply With Quote #2

Execute touch between the weaponboxes and the player.
__________________
HamletEagle is offline
sekac
Senior Member
Join Date: Nov 2016
Old 06-03-2018 , 05:08   Re: Attach dead player's weapons to you
Reply With Quote #3

Yeah I know that much, but I failed at getting the weaponbox id of the dead player.
sekac is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-03-2018 , 05:15   Re: Attach dead player's weapons to you
Reply With Quote #4

If you want to give the weapons right when the player died you can simply hook Ham_Killed as pre, get all player weapons with get_user_weapons and use give_item on another player.
If you want to give the weapons after they were dropped you need to do what I said in my previous post.

So, what are you trying to do?
__________________
HamletEagle is offline
sekac
Senior Member
Join Date: Nov 2016
Old 06-03-2018 , 05:33   Re: Attach dead player's weapons to you
Reply With Quote #5

I need to give the weapons after they are dropped. I just need to know how to get that weaponbox that's on the ground by a specific player so I can use fake_touch.
sekac is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-03-2018 , 07:22   Re: Attach dead player's weapons to you
Reply With Quote #6

Try with FM_SetModel.
__________________
HamletEagle is offline
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 04:41.


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