Raised This Month: $68 Target: $400
 17% 

CS 1.6 Simple Discord Connect Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
LtIbrahim
Member
Join Date: Feb 2014
Old 10-04-2018 , 07:23   CS 1.6 Simple Discord Connect Plugin
Reply With Quote #1

Version: 1.0
Tested Amxmodx version: 1.9.0
Cvar Commands:
dc_enabled 0 to 1(default 1): Enable/Disable discord connect plugin
dc_serverid #: Your discord invide id(e.g dc_serverid SpHCM3C)
dc_waittime <sec>(default 3): Cllient wait until X seconds to connect in motd message.
dc_lang 0 to 1(0: Turkish, 1: English(Default)): Set Motd descripting language

Say Commands:
/dc
/discord

Client can connect automaticly(meta) your discord group using /dc and /discord chat commands.
You can must be set first dc_serverid cvar to use this addons.
E.g if your invide adress is: https://discordapp.com/invite/SpHCM3C, you can set dc_serverid SpHCM3C
(https://discordapp.com/invite/iaddress, dc_serverid iaddress)

Attached Images
File Type: jpg dc1.jpg (70.9 KB, 246 views)
File Type: jpg dc2.jpg (50.9 KB, 317 views)
Attached Files
File Type: sma Get Plugin or Get Source (discord.sma - 592 views - 3.0 KB)

Last edited by LtIbrahim; 10-05-2018 at 06:45.
LtIbrahim is offline
Old 10-04-2018, 09:32
thEsp
This message has been deleted by thEsp.
LtIbrahim
Member
Join Date: Feb 2014
Old 10-04-2018 , 10:17   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #2

Quote:
Originally Posted by thEsp View Post
I don't use discord to much, but I think this plugin is useful!
Should be approved imo.

Edit: You writed "#include <amxmodx>" twice. But not a big problem.
Cok gyzel
Thanks bro.
it's fixed.
LtIbrahim is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Location: Muslim and proud!
Old 10-04-2018 , 11:19   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #3

The plugin is kind useless.
__________________
@Jailbreak MOD [Alot of features + API] 100% done !
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Blizzard_87
AlliedModders Donor
Join Date: Oct 2012
Old 10-04-2018 , 23:48   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
The plugin is kind useless.
Agreed if this only shows an MOTD with a link... would be better if you could directly hook a chat command to connect to discord server. if thats even possible.
__________________
Blizzard_87 is offline
LtIbrahim
Member
Join Date: Feb 2014
Old 10-05-2018 , 06:46   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #5

Added simple usage video
LtIbrahim is offline
thEsp
Veteran Member
Join Date: Aug 2017
Location: Albania
Old 10-05-2018 , 13:27   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #6

Quote:
Originally Posted by Blizzard_87 View Post
Agreed if this only shows an MOTD with a link... would be better if you could directly hook a chat command to connect to discord server. if that's even possible.
I have seen some plugins using inputs. Just like "say" and "team_say".
Maybe that's possible. And another possibilty is using
Code:
register_clcmd
.
But good request tho. And, would be cool to have that.
__________________
Inactive on this forum due to work and busy personal life. Will definitely miss most of y'all, farewell!
thEsp is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Location: Muslim and proud!
Old 10-05-2018 , 16:23   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #7

Quote:
Originally Posted by Blizzard_87 View Post
Agreed if this only shows an MOTD with a link... would be better if you could directly hook a chat command to connect to discord server. if thats even possible.
Its achievable by creating a module for that.
__________________
@Jailbreak MOD [Alot of features + API] 100% done !
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Last edited by Natsheh; 10-05-2018 at 16:24.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Location: Derbent, Caucasian
Old 10-06-2018 , 00:49   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #8

Look Awesome but...

Is it like SlowHack?
How do I open a DISCORD by link??
And if someone does not have the software?
__________________
Quote:
Learning Application Development /Pyhton/

Last edited by Fuck For Fun; 10-06-2018 at 00:50.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
LtIbrahim
Member
Join Date: Feb 2014
Old 10-06-2018 , 05:53   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #9

Quote:
Originally Posted by Fuck For Fun View Post
Look Awesome but...

Is it like SlowHack?
How do I open a DISCORD by link??
And if someone does not have the software?
The plugin is automaticly redirect to Discord program(if has installed) with html meta redirect.
Link only show for information(link has no effect - info only).
LtIbrahim is offline
quLeryuzz
Member
Join Date: May 2010
Location: Istanbul
Old 10-10-2018 , 05:03   Re: CS 1.6 Simple Discord Connect Plugin
Reply With Quote #10

I think it could be better like this

PHP Code:
#include <amxmodx>
#include <reapi_reunion>

#define DiscordKodu "btQfgq3" //csduragi discord

new cvar_kod,motd[642],kod[32];
public 
plugin_init() {
    
register_plugin("Discord Baglantisi""1.0""Yek'-ta")

    
register_clcmd("say /dc","DiscordGidis")
    
register_clcmd("say !dc","DiscordGidis")
    
register_clcmd("say .dc","DiscordGidis")
    
register_clcmd("say /discord","DiscordGidis")
    
register_clcmd("say !discord","DiscordGidis")
    
register_clcmd("say .discord","DiscordGidis")
    
cvar_kod register_cvar("discord_baglantikodu",DiscordKodu)
    
birkereayarla()

}
public 
birkereayarla(){
    
get_pcvar_string(cvar_kod,kod,charsmax(kod))
    
formatex(motdcharsmax(motd),"<html><head><meta http-equiv=^"Refresh^" content=^"0;url=discord:///invite/%s^"></head><body text=^"#C0C0C0^" bgcolor=^"#000000^"><p align=^"center^"><font size=^"6^" face=^"Trebuchet MS^">[ Discord Sunucusuna Baglaniliyor. ]</font><br><font size=^"5^" color=^"#FF0000^" face=^"Trebuchet MS^">[ Oyun alta alinip programi acilacak ve baglanilacak. ]</font><br><font face=^"Trebuchet MS^"><font size=^"5^">Eger program kurulu degil ise baglanir iken hata alacaksiniz.<br>> <a href=^"https://discordapp.com/api/download?platform=win^"><font color=^"#808080^"> Programi indirmek icin tiklayiniz.</font></a> < </font></p></body></html>",kod);
}
//forum.csduragi.com
public DiscordGidis(oyuncu) {
    if(
is_user_steam(oyuncu)){
        
client_print_color(oyuncuprint_team_red"^4Steam oyuncu oldugunuz icin sunucuya dogrudan ^3baglanamiyorsunuz.")
        
client_print_color(oyuncuprint_team_blue"^4Davet kodumuz ^3%s ^4, ^3https://discord.gg/%s",kod,kod)
    }
    else {
        
show_motd(oyuncumotd);
    }

https://forum.csduragi.com/eklentile...si-t29739.html

If I use steam, don't show me MOTD, because I can't see. But if I don't use steam, show me MOTD.
But this forum says "NO STEAM = NO SUPPORT"
__________________

csduragi.com
quLeryuzz 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 02:13.


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