Current version: 1.6 | Last Update: 15 of June 2016
Table of Contents
Description
Admin Commands
Installation
Cvars
Credits
Changelog
Description
When you touch a weapon from the ground, if that weapon exist in vault, this plugin will block picking-up it or will remove it( depends of the cvar ).
You can add or remove weapons in the vault by using commands.
Example to block m4a1:
'm4a1' is a key wich blocks the weapon M4a1 to be picked up or can be removed on touch(dependes on cvar ).amx_cspum_addkey "m4a1"
For list of all keys check the 'Admin commands' section.
Admin Command
Installation;this command add a new weapon in the vault
amx_cspum_addkey < Weapon key >
;this command remove a weapon from the vault
amx_cspum_remkey < Weapon key >
;this command will show you a a list with all weapons avaible to block them
amx_cspum_keylist
;block all the weapons from the list
amx_cspum_blocklist
;reset all the weapons from the list
amx_cspum_resetlist
;show a list with all the blocked weapons
amx_cspum_blockedlist
;show a list with all cspum admin commands
amx_cspum
;admin chat command
;open a menu to directly block each weapon you wanne.
.pickupmenu
To install the plugin:
Download cspum.sma and cspum.amxx and cspum.txt
Go to cstrike/amxmodx/plugins and open plugins.ini , please add at the end of the file: "cspum.amxx" ( without quotes ).
Leave cspum.txt in cstrike/amxmodx/data/lang.
Optionaly You could take cspum.sma and leave it in addons/amxmodx/scripting/ , but it's not a must...
Change map/Open the server and enjoy life.
Cvars
Creditscspum_type: What happened with the entity when a player touch it.
"1" - Remove the weapon when you touch it.
"2" - Just blocking picking up the weapon.
cspum_team: The only team who is allowed to pickup weapons even if is blocked
"1" - Terrorists.
"2" - Counter-Terrorists.
"Other Value" - No one.
cspum_admins: Allow admins to pickup even if the weapons is blocked ?
"1" - Yes.
"0" - No.
I wanne special thanks to Bugsy and HamletEagle for their hard contribution.
But also to the next people:
ConnorMcLeod
Addonszz
Arkshine
Changelog
- cspum.txtv1.0 - first launch
v1.1
+ Added amx_cspum_blocklist
+ Added amx_cspum_resetlist
v1.2
+ Added amx_cspum_blockedlist
+ Posibility now of blocking the armor when you touch it
+ Lot of code optimizations (the list it to big).
+ Everything repaired and optimizated.
v1.3
+ Style re-arranget
Hamlet modification added, removed '( )' from sizeof usage
All Hamlet modification added.
Remove gIgnoreWeapons, code more improved, thanks to Hamlet.
Blocking armor now it is possibile ( key: vesthelm ) , thanks to hamlet.
Added a new command. ( amx_cspum )
v1.4
added multi-language.
Removed bitfield, we use an boolean array for checking true/false weapons
from GetWeaponIndex, we replaced containi() with equali().
GetWeaponIndex optimized.
Added pragma semicolon 1
v1.5
Added ".pickupmenu" command wich show you a menu to directly block or deblock Weapons from the list.
v1.6
Added new 2 cvars.
A little indentations about code.
getplugin
getsource