AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO/CS:S][Gangs] Credits Donation (v1.2, 10/19/2018) (https://forums.alliedmods.net/showthread.php?t=307607)

plock 05-17-2018 18:33

[CS:GO/CS:S][Gangs] Credits Donation (v1.2, 10/19/2018)
 
3 Attachment(s)
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.

j1gg 06-05-2018 03:54

Re: [CS:GO/CS:S][Gangs] Credits Donation (v1.0, 05/17/2017)
 
Can you add support for credits from myjailbreakshop?

plock 06-05-2018 09:07

Re: [CS:GO/CS:S][Gangs] Credits Donation (v1.0, 05/17/2017)
 
Quote:

Originally Posted by j1gg (Post 2595365)
Can you add support for credits from myjailbreakshop?

Yes, I'll do that as soon as I have some free time. I'm quite busy for next two weeks.

plock 06-13-2018 10:11

Re: [CS:GO/CS:S][Gangs] Credits Donation (v1.0, 05/17/2017)
 
Quote:

Originally Posted by j1gg (Post 2595365)
Can you add support for credits from myjailbreakshop?

Done. :)

I mistakenly removed the translation file, but nothing was changed on the translation.

EDIT: Let me know if you have issues with the credits, I couldn't test with the other shop modules, but the changes were simple and I used the same method as Headline did on his plugin.

plock 10-19-2018 21:11

Re: [CS:GO/CS:S][Gangs] Credits Donation (v1.2, 10/19/2018)
 
Updated to Version 1.2
Quote:

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

Luck_Power 10-19-2018 21:18

Re: [CS:GO/CS:S][Gangs] Credits Donation (v1.2, 10/19/2018)
 
Nice!

*Ty for the help about natives


All times are GMT -4. The time now is 06:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.