View Single Post
Plugin Info:     Modification:          Category:          Approver:   twistedeuphoria (82)
OneEyed
AMX Mod X Beta Tester
Join Date: Jun 2005
Old 07-14-2005 , 04:27   CS Armor Drop (on death)
Reply With Quote #1

Title:
CS Armor Drop (on death)

Summary:
When a player dies, if they have armor, they will drop their armor on the ground next to their corpse.
A player can then walk over it and pick it up, letting them get a "percentage" of the armor left behind.
Also, the player will recieve the same armor type as what they picked up.
All armor will be deleted when round ends. Or on specified time (see cvars).

Cvars:
armor_pct - (Default 20%) This is percentage of armor that will be received when its picked up.
armor_max - (Default 100) This is the max amount of armor a user can get from picking up.
armor_min - (Default 15) Minimum armor needed, for player to drop when killed.
armor_removetime - (Default 2min) Time before armor is removed from map (unless round ends).


Requires : AMXX 1.60
Modules : Engine, FakeMeta
Tested : Win32 (Linux untested)

Author: OneEyed
Version: 1.1


Thanks to ccnncc99, sXy-Schreck, phear of rice, and Aunt Friggin' Connie, for helping me test and fix this plugin!

- Change Log:
-v1.1
- Fixed to work on AMXX 1.60
- Added "Armor Drop" CVAR for queries to pick up.


Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
Attached Files
File Type: sma Get Plugin or Get Source (armordrop.sma - 7688 views - 8.5 KB)
__________________
OneEyed is offline