[FilterScript] Discord Chat - Real time chatting ( Discord + In Game)
#1

Discord-Chat v0.1


Hey, I made this filterscript 4 months ago, This is an easy filterscript to make but since there's no filterscript like this. I'm releasing it. Please do not remove the credits

Note:
Change the #define CHANNEL_ID "Your channel id here" the channel id is the channel which you want the messages to be sent from/appear from. You can get this by enabling the developer mode and right clicking on the channel.

This requires the (Please do read the discord connector topic if you want to make it work.)
discord-connector plugin by maddinat0r - https://sampforum.blast.hk/showthread.php?tid=631562
YSI - https://sampforum.blast.hk/showthread.php?tid=570884
sscanf - https://sampforum.blast.hk/showthread.php?tid=602923
zcmd - https://sampforum.blast.hk/showthread.php?tid=91354

Download: https://www.solidfiles.com/v/2AgGVxYP8rAYx
Commands
/dchaton-/dchatoff to toggle the discord chat. /dchat to send messages from ingame to discord.
Credits:
maddinat0r.
******.
Zeex.
Inn0cent
and Me - Inferno.

Report any bugs that you find.
Reply
#2

- Is this just a chat?
- can i use a microphone?
Reply
#3

Quote:
Originally Posted by nguyenthanhdanhsamp
View Post
- Is this just a chat?
- can i use a microphone?
This filterscript is just to chat with the people in game or chat with the people from ingame to discord.

You can use discord for voice chat separately
Reply
#4

Looks nice.
Reply
#5

Great! I'll try to implement it on our friends server.
Reply
#6

Won't work for me
Reply
#7

Quote:
Originally Posted by DarkMythHunter
View Post
Won't work for me
You must be having problems setting up the discord connector plugin. Read the plugin's topic again and make sure your bot comes online when you start your server. After that make sure you have the correct channel id. If you still face problems contact me on discord. #Inferno7135
Reply
#8

Quote:
Originally Posted by Exhibit
View Post
You must be having problems setting up the discord connector plugin. Read the plugin's topic again and make sure your bot comes online when you start your server. After that make sure you have the correct channel id. If you still face problems contact me on discord. #Inferno7135
I need the Discord connector plugin but, on ".so" file so I can upload it to the host...
Reply
#9

Quote:
Originally Posted by DarkMythHunter
View Post
I need the Discord connector plugin but, on ".so" file so I can upload it to the host...
https://github.com/maddinat0r/samp-d...ector/releases

Download the linux version.. Make sure you put all the files correctly including logcore
Reply
#10

Can you post a pastbin link or any open source that show your code please?
Reply
#11

Quote:
Originally Posted by Dayrion
View Post
Can you post a pastbin link or any open source that show your code please?
It's a .pwn file you just need to download it..
Reply
#12

Quote:
Originally Posted by Dayrion
View Post
Can you post a pastbin link or any open source that show your code please?
There is, otherwise it would be against the rules of this forum, since it is required for any program or script to be open source.
In case you were looking for the actual code that does the connection work, you can find the source code for the Discord Connector DLL here
Reply
#13

Pastebin link added.
Reply
#14

Quote:
Originally Posted by Sasino97
View Post
There is, otherwise it would be against the rules of this forum, since it is required for any program or script to be open source.
Quote:
Originally Posted by Exhibit
View Post
It's a .pwn file you just need to download it..
+
I just want to take a look at it and then I, if needed, download it.
Well, your 'filterscript' need to be really optimized. Brb

Edit: Here is an optimized version of yours. Using YSI is a good thing so use it completely ;p
(I hope there is no errors if then, apologize!)
https://pastebin.com/AaDYx6yU
Reply
#15

The Filterscript is well made, it works for me, and I liked it, so thank you so much for it.
Also, I would like to suggest you some suggestions to put them in the next version if you are gonna make it:
- Permission to check all the messages in-game (example: creating a new channel where we can see all the chat in-game (If you allow us to see the commands that players are using in-game), and be able to reply them from the channel where the players in-game can send a message with /Dchat ).
- If possible, permission to use some commands in-game (As I have used Filterscript for my Training server, I would like to be able to start clanwars from Discord when there is no admin in-game to start it).
Reply
#16

Quote:
Originally Posted by TroS
View Post
The Filterscript is well made, it works for me, and I liked it, so thank you so much for it.
Also, I would like to suggest you some suggestions to put them in the next version if you are gonna make it:
- Permission to check all the messages in-game (example: creating a new channel where we can see all the chat in-game (If you allow us to see the commands that players are using in-game), and be able to reply them from the channel where the players in-game can send a message with /Dchat ).
- If possible, permission to use some commands in-game (As I have used Filterscript for my Training server, I would like to be able to start clanwars from Discord when there is no admin in-game to start it).
Well it's pretty easy to edit these filterscripts, you can edit it / re-release it as you like.
Reply
#17

Quote:
Originally Posted by Dayrion
View Post
Edit: Here is an optimized version of yours. Using YSI is a good thing so use it completely ;p
(I hope there is no errors if then, apologize!)
https://pastebin.com/AaDYx6yU
I looked at your code and I would say that your use of YSI iterators makes the code much cleaner.
Reply
#18

nice
Reply
#19

g00d g00d
Reply
#20

Many errors.....




C:\Users\Rajat's\Desktop\mG\STAGE 12\mG New\pawno\dc.pwn(39) : error 025: function heading differs from prototype
C:\Users\Rajat's\Desktop\mG\STAGE 12\mG New\pawno\dc.pwn(49) : error 017: undefined symbol "DCC_GetUserName"
C:\Users\Rajat's\Desktop\mG\STAGE 12\mG New\pawno\dc.pwn(69) : error 017: undefined symbol "ReturnPlayerName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)