Remove weapon dropped by a CERTAIN player
Can anyone show me an example of removing a weapon that gets dropped upon death (or with "drop" command but that's blocked anyway) by a certain player (for example, player whose team is CT etc, I don't want all the weapons to be removed)? I tried doing it with FM_SetModel, or something like that though the weapon model has always been 'weaponbox.mdl' and I wasn't successful. I want only to remove a dropped desert eagle.
Thanks. |
Re: Remove weapon dropped by a CERTAIN player
if you know a bit C++, you can see CSDM source, native csdm_remove_weapon;
maybe it can help you |
Re: Remove weapon dropped by a CERTAIN player
How could that help me?
|
Re: Remove weapon dropped by a CERTAIN player
Hook Ham_Touch with "weaponbox", and check if weaponbox is not on the ground, touching player should be the droping one.
|
Re: Remove weapon dropped by a CERTAIN player
I'm actually using your plugin ( http://forums.alliedmods.net/showthread.php?p=761924 ) and I figured out the hooks I used before (like FM_SetModel) didn't work because of that. Can you be that kind and show me an example of doing it within your plugin? I don't want Deagle to be dropped.
I tried checking if iWeapon's ID is CSW_DEAGLE and if it was, I'd use 'continue' in the loop, but it was crashing the server. |
Re: Remove weapon dropped by a CERTAIN player
Try hooking FM_Think through FakeMeta
|
Re: Remove weapon dropped by a CERTAIN player
Your thread is about filtering dropped weapon by player (assuming it is not on death else it makes no sense),
and now you are asking to filter by weapon type and on death. |
Re: Remove weapon dropped by a CERTAIN player
Why just don't strip that weapon from the player on Ham_Killed ?
|
Re: Remove weapon dropped by a CERTAIN player
@Connor:
Quote:
@Alekkkk: Thank you, it works. Don't know why I didn't think about it before O.o |
Re: Remove weapon dropped by a CERTAIN player
Quote:
|
| All times are GMT -4. The time now is 06:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.