Raised This Month: $12 Target: $400
 3% 

[CSGO] Donate System (Like Twitch) (ZephStore)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Plugin ID:
7070
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 04-28-2020 , 15:17   [CSGO] Donate System (Like Twitch) (ZephStore)
    Reply With Quote #1

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

    Last edited by vortex.; 04-28-2020 at 15:25.
    vortex. is offline
    hennyumut01
    New Member
    Join Date: Mar 2019
    Old 04-28-2020 , 15:19   Re: Donate System (Like Twitch) (ZephStore)
    Reply With Quote #2

    as if it is a necessary plugin for Turkish server owners xd
    hennyumut01 is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 04-28-2020 , 15:22   Re: Donate System (Like Twitch) (ZephStore)
    Reply With Quote #3

    Quote:
    Originally Posted by hennyumut01 View Post
    as if it is a necessary plugin for Turkish server owners xd
    enjoy
    __________________
    vortex. is offline
    ShD3luxe
    Member
    Join Date: Aug 2019
    Location: Localhost
    Old 04-28-2020 , 20:51   Re: [CSGO] Donate System (Like Twitch) (ZephStore)
    Reply With Quote #4

    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]);

    Last edited by ShD3luxe; 04-28-2020 at 20:52.
    ShD3luxe is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 04-29-2020 , 18:59   Re: [CSGO] Donate System (Like Twitch) (ZephStore)
    Reply With Quote #5

    Quote:
    Originally Posted by ShD3luxe View Post
    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

    But thanks for the info
    __________________
    vortex. is offline
    ShD3luxe
    Member
    Join Date: Aug 2019
    Location: Localhost
    Old 05-01-2020 , 15:45   Re: [CSGO] Donate System (Like Twitch) (ZephStore)
    Reply With Quote #6

    It was just an advice for future changes. Good job for making something free for others .
    ShD3luxe is offline
    SnowHP
    Senior Member
    Join Date: Sep 2016
    Location: Porto, Portugal
    Old 05-01-2020 , 17:23   Re: [CSGO] Donate System (Like Twitch) (ZephStore)
    Reply With Quote #7

    Quote:
    Originally Posted by vortex. View Post
    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?
    __________________
    SnowHP is offline
    ShD3luxe
    Member
    Join Date: Aug 2019
    Location: Localhost
    Old 05-01-2020 , 19:57   Re: [CSGO] Donate System (Like Twitch) (ZephStore)
    Reply With Quote #8

    Quote:
    Originally Posted by SnowHP View Post
    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);
    ShD3luxe is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 10-02-2020 , 19:33   Re: [CSGO] Donate System (Like Twitch) (ZephStore)
    Reply With Quote #9

    Quote:
    Originally Posted by ShD3luxe View Post
    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
    __________________
    vortex. is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


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


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