View Single Post
Author Message
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 05-17-2018 , 18:33   [CS:GO/CS:S][Gangs] Credits Donation (v1.2, 10/19/2018)
Reply With Quote #1

Gangs - Credits Donation (v1.2)

About
This plugin is designed to work with Jailbreak Gangs from Headline.

This plugin will work with all the shop modules that are supported by Jailbreak Gangs.

Features
- Setup minimum/maximum allowed donation
- Fee system, define if receiver or sender pay for the fees.
- Change amount of fee if desired

Commands
Quote:
sm_donatecredits nick/#userid amount
CVARs
Quote:
credits_donation_min_amount (Default: 0) - Minimum amount of credits required to donate.
credits_donation_max_amount (Default: 0) - Maximum amount of credits required to donate. 0 = Unlimited.
credits_donation_fee (Default: 0.0) - Fees for the donation.
credits_donation_fee_subtract (Default: 1) - Receiver pays for the fees.
Example: If "credits_donation_fee" is "0.1" and the sender sends 1000 credits.
Quote:
credits_donation_fee_subtract 1 = Receiver will receive 900
credits_donation_fee_subtract 0 = Sender will need 1100 to send 1000 to the receiver, and receiver will receive 1000.
Installation
Drop "hl_gangs_credit_donation.smx" inside Plugins folder.
Drop "hl_gangs_credits_donation.phrases.txt" inside Translations folder.

Change map to generate the .cfg file and setup your cvars.

Dependencies
Jailbreak Gangs by Headline.

Changelog
Quote:
2018-10-19 (v1.2)
- Forget to use the generic function to get the client credits insted of gangs function.

2018-06-13 (v1.1)
- Added support for other shop modules.

2018-05-17 (v1.0)
* Initial Release *
Credits
Thanks to Headline for the Jailbrak Gangs and for the shop modules verification that I used on this plugin.

Requested by j1gg here

If you have any issues, just let me know.
Attached Files
File Type: txt hl_gangs_credits_donation.phrases.txt (958 Bytes, 406 views)
File Type: smx hl_gangs_credit_donation.smx (13.5 KB, 281 views)
File Type: sp Get Plugin or Get Source (hl_gangs_credit_donation.sp - 328 views - 6.6 KB)
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile

Last edited by plock; 10-19-2018 at 21:26. Reason: Version 1.2
plock is offline