Plugin Info:
|
Modification: Counter-Strike
Category: Fun Stuff
|
Veteran Member
|
![Old](images/statusicon/post_old.svg)
04-30-2013
, 23:41
Donations v2.0.1 ( 24/04/2014 )
|
#1
|
( Frags | Money | Weapons | Health | Armor | NVision | Defuse Kit )
v2.0.1
By Blizzard.
ThreadStart
![](https://forums.alliedmods.net/image-proxy/187f2e7f440e5f6d3b2f086cdbfa8e5410632110/687474703a2f2f692e696d6775722e636f6d2f377141684f45482e706e67) Note: Complete Rewrite, Must Have Latest Version Of Amxx 1.8.3 For Compiling!
With this plugin your able to donate almost every item in a players inventory, { Health, Armor, Money, Weapons, Frags, Night Vision, Defuse Kit } ( Excluding Knife ).
From v2.0.0 you are no longer able to set the minimum limit, this ive hardcoded into the plugin to Prevent Bugs/Glitches with donation amounts.
Ive added a Calculator for the categories with amounts, example: if player (B) has $12000 and player (A) donates $6000, then only $4000 will be donated.
prevents player (A) losing $6000 when only $4000 is required to reach player (B) max.
Ive removed the Ask For Donation feature as you can request by using chat.
Ive added feature where if a player is already in the process of recieving a donation no other players can interfere by overlapping the donations.
New: I've added Maximum donation limits.
![](https://forums.alliedmods.net/image-proxy/d52e32d4ddcf0f80ffb12e4904477479783fd8fb/687474703a2f2f692e696d6775722e636f6d2f3035456c31627a2e706e67) Say Commands:
*donate ( Opens Donations Main Menu )
*toggledonate ( Toggles Recieving Donations On/Off For Player )
* = "/", "!", "."
![](https://forums.alliedmods.net/image-proxy/3ebf9f2887015ac80f38e0147393c04581fc7f20/687474703a2f2f692e696d6775722e636f6d2f4442746d4a487a2e706e67) donate_flags "abcdefg" ( default all enabled )
- a = health
- b = armor
- c = money
- d = frags
- e = weapons
- f = night vision
- g = defuse kit
donate_limit "-1" ( default unlimited )
- -1 = unlimited
- 0 = player either used up all donations that round or plugin is disabled
- 1 or greater = the amount of times player can donate in one round.
donate_team "0" ( default 0 both teams )
- 0 = both teams
- 1 = your team only
donate_admin "0" ( default 0 all players can use )
- 0 = all players can use menu
- 1 = only admins with BAN flag "d" can use
donate_hp_max "90" ( default 90 )
donate_ap_max "100" ( default 100 )
donate_money_max "16000" ( default 16000 )
donate_frag_max "10" ( default 10 ) ![](https://forums.alliedmods.net/image-proxy/6c84b22a5851677a29a40fc0233ade1e988a9ca4/687474703a2f2f692e696d6775722e636f6d2f554544507476542e706e67) Find this section close to top of file line 107
Code:
/*-----------------------
- EDIT MAX VALUES HERE -
-----------------------*/
#define MAX_HP 100
#define MAX_AP 100
#define MAX_MONEY 16000
/*-----------------------
- DONT EDIT BELOW HERE -
-----------------------*/
Edit the Values For Maximum Amount Allowed In Total ( This Is Different To Max Donation Limit ).
In the case of ZP you should set the max HP to what your plugin is set to.
![](https://forums.alliedmods.net/image-proxy/e3c2837a0b6f0ac93acbfcbb14f3895752b461ca/687474703a2f2f692e696d6775722e636f6d2f7a6b38673155792e706e67) roymor - Amount Of Donations Idea
Jhob94 - for extra donation types idea
hornet - for majorly helping with optimizing transfer weapons more effectively.
black rose - pointing out places for optimization.
Servers Using This Plugin Here
ThreadEnd
.
__________________
Last edited by Blizzard_87; 05-03-2015 at 09:31.
|
|
|
|