Raised This Month: $32 Target: $400
 8% 

[L4D1] Drop Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-05-2018 , 18:01   [L4D1] Drop Weapon
Reply With Quote #1

Description:
Allows players to drop the weapon they are holding, or another items they have
Settings:
l4d_drop_specify - Allow people to drop weapons they have, but are not using (1 - On / 0 - Off)
l4d_drop_mininterval - def.: 1 - Minimum allowed interval between each drop (in sec.)
l4d_drop_restrict - def.: 10 - Number of times / in minute allowed for player to use drop command (0 - to disable restriction)
l4d_drop_timeviolation - def.: 60 - Number of seconds to violate player for using drop command too often
Using:
Copy l4ddrop.smx to addons/sourcemod/plugins
Copy drop.phrases.txt to addons/sourcemod/translations
Translations:
English, Russian
Author:
Frustian, Figa, (edited by Dragokas & SilverShot)
ChangeLog:
Quote:
1.7
- Converted to a new syntax and methodmaps.
- Fixed potential crash caused by too often usage of drop command (see new ConVars).

1.6.
- Update for previous exploit: removed dependency on specific player model (thanks to SilverShot)
- Updated translation file.

1.5.
- Fixed exploit for infinite pipe/molotov (thanks to SilverShot)

1.3.
- Removed F3 key binding

1.3
- Added IsClientInGame() check.

1.2 ...
- Original version by Frustian & Figa
Attached Files
File Type: txt drop.phrases.txt (3.0 KB, 169 views)
File Type: sp Get Plugin or Get Source (l4ddrop.sp - 505 views - 10.6 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 10-18-2019 at 18:04.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-18-2019 , 18:05   Re: [L4D1] Drop Weapon
Reply With Quote #2

Updated
Quote:
1.8
- Added support for "Prototype Grenades" plugin. This require "preferences" to set other than 1.
- Added immunity for root admin "z" to limits on using drop command.
- Fixed entities leak (thanks to SilverShot).
- Added some safe checks, code optimizations.
- Translation is optimized and appended.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
LineStorm
New Member
Join Date: Jan 2021
Location: Russia
Old 01-29-2021 , 14:21   Re: [L4D1] Drop Weapon
Reply With Quote #3

Quote:
Originally Posted by Dragokas View Post
Updated
Great job good plugins

Last edited by LineStorm; 01-29-2021 at 14:29.
LineStorm is offline
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 05:43.


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