View Single Post
Plugin Info:     Modification:          Category:         
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-30-2013 , 23:41   Donations v2.0.1 ( 24/04/2014 )
Reply With Quote #1


( Frags | Money | Weapons | Health | Armor | NVision | Defuse Kit )
v2.0.1
By Blizzard.

ThreadStart
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.

Say Commands:
*donate ( Opens Donations Main Menu )
*toggledonate ( Toggles Recieving Donations On/Off For Player )

* = "/", "!", "."

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 )
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.

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

Change Log

ThreadEnd
.
Attached Files
File Type: sma Get Plugin or Get Source (donations.sma - 1243 views - 30.5 KB)
__________________

Last edited by Blizzard_87; 05-03-2015 at 09:31.
Blizzard_87 is offline