Raised This Month: $51 Target: $400
 12% 

No Weapon Drop Allowed! v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
iNickel
Member
Join Date: Mar 2014
Location: Here.
Old 04-01-2014 , 07:28   No Weapon Drop Allowed! v1.0
Reply With Quote #1

this plugin has been deleted.

Last edited by iNickel; 08-04-2017 at 12:46.
iNickel is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 04-01-2014 , 07:41   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #2

When Player die, weapon dropped?
Phant is offline
Send a message via ICQ to Phant
iNickel
Member
Join Date: Mar 2014
Location: Here.
Old 04-01-2014 , 07:50   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #3

Yes, the weapons will drop, but if you don't want, you can just install this plugin too: https://forums.alliedmods.net/showthread.php?p=202171
iNickel is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-01-2014 , 08:13   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #4

No comment on that code..
__________________
Kia is offline
iNickel
Member
Join Date: Mar 2014
Location: Here.
Old 04-01-2014 , 08:47   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #5

hey, I'm a beginner ;)
iNickel is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-01-2014 , 09:40   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #6

Quote:
Originally Posted by iNickel View Post
hey, I'm a beginner ;)
That's why you should not release plugins.
__________________
Kia is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-01-2014 , 14:58   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #7

whats the difference between your plugin to this one https://forums.alliedmods.net/showth...=49323?t=49323

??
__________________
Blizzard_87 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-21-2015 , 11:37   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #8

To block drop hook Ham_CS_Item_CanDrop, alter the return value to 0 and supercede. That way the restriction message will also appear.
Your way of removing entities is wrong, you don't actually remove them, just make them untouchable and invisible. What you should do is to call remove_entity on armoury_entity and to call think on weaponbox entities. Forcing them to think will make the game to remove all the weapons & the box automatically. But, why are you removing armoury_entities ? Your plugin is supposed to block drop, only that.

Btw, it seems you are hidding all weaponbox entities, so even if player die the weapon won't be saw. So, it looks like a copy/paste from VEN's one.

Unapproved.
__________________

Last edited by HamletEagle; 09-21-2015 at 12:19.
HamletEagle is offline
iNickel
Member
Join Date: Mar 2014
Location: Here.
Old 08-04-2017 , 12:52   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
To block drop hook Ham_CS_Item_CanDrop, alter the return value to 0 and supercede. That way the restriction message will also appear.
Your way of removing entities is wrong, you don't actually remove them, just make them untouchable and invisible. What you should do is to call remove_entity on armoury_entity and to call think on weaponbox entities. Forcing them to think will make the game to remove all the weapons & the box automatically. But, why are you removing armoury_entities ? Your plugin is supposed to block drop, only that.

Btw, it seems you are hidding all weaponbox entities, so even if player die the weapon won't be saw. So, it looks like a copy/paste from VEN's one.

Unapproved.
It was based on his plugin, but I tried to do something different.

This plugin was total crap. Deleted the source code so nobody will ever see my mistake. xD

If you still want a plugin like this, just use VEN's one.
iNickel is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-04-2017 , 12:58   Re: No Weapon Drop Allowed! v1.0
Reply With Quote #10

Quote:
Originally Posted by iNickel View Post
It was based on his plugin, but I tried to do something different.

This plugin was total crap. Deleted the source code so nobody will ever see my mistake. xD

If you still want a plugin like this, just use VEN's one.
09-21-15

You're late, were you traveling in the future?
__________________

Last edited by edon1337; 08-04-2017 at 12:58.
edon1337 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 17:36.


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