AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Donate System (Like Twitch) (ZephStore) (https://forums.alliedmods.net/showthread.php?t=323790)

vortex. 04-28-2020 15:17

[CSGO] Donate System (Like Twitch) (ZephStore)
 
It was a plugin sought by many people. Some Turkish coders (im not sure if they are real coders or something :)) they sell this plugin.

I just wrote this plugin and I just wanted share this for free.

For now, I didnt make English messages or translations. I will do this in soon.

This plugin have client settings like donate images and donate musics.
According to the users' settings, the picture (overlay) and audio file selected by the user can be played when donated.

If anyone interested, just feel free to check source :)

If there is errors or logs, you can open a new issue on Github.

Source.

hennyumut01 04-28-2020 15:19

Re: Donate System (Like Twitch) (ZephStore)
 
as if it is a necessary plugin for Turkish server owners xd

vortex. 04-28-2020 15:22

Re: Donate System (Like Twitch) (ZephStore)
 
Quote:

Originally Posted by hennyumut01 (Post 2696749)
as if it is a necessary plugin for Turkish server owners xd

enjoy :3

ShD3luxe 04-28-2020 20:51

Re: [CSGO] Donate System (Like Twitch) (ZephStore)
 
Instead of using the else if syntax you can use a loop, makes the code more clear and easier to read.

An example:
Code:

                char SOUNDS_PACK[][] = {
                        "",
                        "TurkModders/Donate/ses_1.mp3",
                        "TurkModders/Donate/ses_2.mp3",
                        "TurkModders/Donate/ses_3.mp3",
                        "TurkModders/Donate/ses_4.mp3",
                        "TurkModders/Donate/ses_5.mp3",
                        "TurkModders/Donate/ses_6.mp3",
                        "TurkModders/Donate/ses_7.mp3",
                        "TurkModders/Donate/ses_8.mp3",
                        "TurkModders/Donate/ses_9.mp3",
                        "TurkModders/Donate/ses_10.mp3"
                };

                for(int i = 0;i < sieof(SOUNDS_PACK)-1;i++)
                {
                        if(StrEqual(ses[client],SOUNDS_PACK[i]))
                        {
                                FormatEx(ses[client], sizeof(ses[]), SOUNDS_PACK[i+1]);
                                break;
                        }
                }
                EmitSoundToClient(client, ses[client]);


vortex. 04-29-2020 18:59

Re: [CSGO] Donate System (Like Twitch) (ZephStore)
 
Quote:

Originally Posted by ShD3luxe (Post 2696791)
Instead of using the else if syntax you can use a loop, makes the code more clear and easier to read.

An example:
Code:

                char SOUNDS_PACK[][] = {
                        "",
                        "TurkModders/Donate/ses_1.mp3",
                        "TurkModders/Donate/ses_2.mp3",
                        "TurkModders/Donate/ses_3.mp3",
                        "TurkModders/Donate/ses_4.mp3",
                        "TurkModders/Donate/ses_5.mp3",
                        "TurkModders/Donate/ses_6.mp3",
                        "TurkModders/Donate/ses_7.mp3",
                        "TurkModders/Donate/ses_8.mp3",
                        "TurkModders/Donate/ses_9.mp3",
                        "TurkModders/Donate/ses_10.mp3"
                };

                for(int i = 0;i < sieof(SOUNDS_PACK)-1;i++)
                {
                        if(StrEqual(ses[client],SOUNDS_PACK[i]))
                        {
                                FormatEx(ses[client], sizeof(ses[]), SOUNDS_PACK[i+1]);
                                break;
                        }
                }
                EmitSoundToClient(client, ses[client]);


tbh, I even didnt check the plugin after its done. I just wanted share it for free :D

But thanks for the info :3

ShD3luxe 05-01-2020 15:45

Re: [CSGO] Donate System (Like Twitch) (ZephStore)
 
It was just an advice for future changes. Good job for making something free for others . :bacon!:

SnowHP 05-01-2020 17:23

Re: [CSGO] Donate System (Like Twitch) (ZephStore)
 
Quote:

Originally Posted by vortex. (Post 2696748)
It was a plugin sought by many people. Some Turkish coders (im not sure if they are real coders or something :)) they sell this plugin.

I just wrote this plugin and I just wanted share this for free.

For now, I didnt make English messages or translations. I will do this in soon.

This plugin have client settings like donate images and donate musics.
According to the users' settings, the picture (overlay) and audio file selected by the user can be played when donated.

If anyone interested, just feel free to check source :)

If there is errors or logs, you can open a new issue on Github.

Source.

People can donate credits to the server?

ShD3luxe 05-01-2020 19:57

Re: [CSGO] Donate System (Like Twitch) (ZephStore)
 
Quote:

Originally Posted by SnowHP (Post 2697476)
People can donate credits to the server?

No, people can donate shop points to each others.

Afaik the Store_SetClientCredits is from warden.inc, you can change those lines with your server currency.

Code:

Store_SetClientCredits(client, Store_GetClientCredits(client) - miktar);
Store_SetClientCredits(target, Store_GetClientCredits(target) + miktar);


vortex. 10-02-2020 19:33

Re: [CSGO] Donate System (Like Twitch) (ZephStore)
 
Quote:

Originally Posted by ShD3luxe (Post 2697499)
No, people can donate shop points to each others.

Afaik the Store_SetClientCredits is from warden.inc, you can change those lines with your server currency.

Code:

Store_SetClientCredits(client, Store_GetClientCredits(client) - miktar);
Store_SetClientCredits(target, Store_GetClientCredits(target) + miktar);


Thanks for the answer and contributing :3


All times are GMT -4. The time now is 04:14.

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