Welcome, Guest
Username Password: Remember me

Suggestion Global Chat-Chat with multiple servers
(1 viewing) (1) Guest

Poll: Want it?

Yes! 5 100%
Total number of voters:5 ( whipbone Polaris PieFace Billy Jones Whale )
Only registered users can participate to this poll
  • Page:
  • 1
  • 2

TOPIC: Suggestion Global Chat-Chat with multiple servers

Suggestion Global Chat-Chat with multiple servers 10 years, 8 months ago #158332

Well as you know I know of a shit ton of great addons and stuff and here is my fav!

s seen in key G-mod communities, you can now chat across multiple servers using this MySQL based script


Information:
This is a customizable addon using andyvincent's MySQL module to transmit chat messages over multiple servers.

Features:
  • Customizable refresh rate (how often to recieve new messages from the MySQL)
  • Customizable table deletion time (How often to purge the MySQL table of all messages, to reduce lag and large queries)
  • Anti-Flood (Or anti-spam) with a time setting
  • Countless other script traits and variables I could define as a *feature* ?



This requires your own MySQL Database to use.
This will not work without the gm_mysql module

:siren: This does NOT create a huge chat room with every server running it, nor does it replace normal chat. This is an optional global chat (Used by typing /g <message> by default) used between either multiple servers you own, or between you and other G-mod servers of your choice :siren:


Installation:
Extract the globalchat folder to garrysmod \ addons

Navigate to and open the globalchat \ lua \ autorun \ server \ chat.lua file. You need to edit the MySQL data to your database, and other variables as shown below:
-- Variables --
local serverName = "Server X"   --Name of the server to be displayed in the chat
local trigger    = "/g"         --Trigger to send the global chat
local antiflood  = 30           --How often a client can send a global chat (0 to disable, NOT reccomended)

-- MySQL  Variables --
local host        = "localhost" --Host address
local user        = "username"  --MySQL Username
local pass        = "password"  --MySQL  Password
local database    = "chat"      --Database used to store the chat table
local port        = 3306        --Port to connect to
local persistent  = true        --Use a persistant MySQL  connection?
local updatetime  = 30          --In Seconds, how often to get messages from the MySQL  
local cleantime   = 10          --In MINUTES, how often to delete all records from MySQL table (To prevent the table from growing too large)


The table structure is found in the chat.lua file or here:

Table structure
CREATE TABLE `chat` (
`message` text NOT NULL,
`location` text NOT NULL,
`id` int(11) NOT NULL auto_increment,
PRIMARY KEY (`id`)
)


Screenshots
Not too much to take a screenshot of..

contrasting local to global chat


Anti-flood
  • whipbone
  • OFFLINE
  • Platinum Boarder
  • Diamond VIP
  • FP-TTT is where I belong.
  • Posts: 2275
  • Karma:
  • I Voted in Global Mod 2014
Hiiigh
Last Edit: 10 years, 8 months ago by whipbone.

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 8 months ago #158394

Anyone like it?*Bump*
  • whipbone
  • OFFLINE
  • Platinum Boarder
  • Diamond VIP
  • FP-TTT is where I belong.
  • Posts: 2275
  • Karma:
  • I Voted in Global Mod 2014
Hiiigh

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 8 months ago #158400

The combined amount of our servers and players on each server is a lot of my screen getting spammed, unless I can hide it or turn it off somehow
  • Rake
  • OFFLINE
  • Legendary Member
  • Diamond VIP
  • A Minge's Nightmare!
  • Posts: 3711
  • Karma: 28
  • I Voted in Global Mod 2014

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 8 months ago #158404

Rake wrote:
The combined amount of our servers and players on each server is a lot of my screen getting spammed, unless I can hide it or turn it off somehow
maybe we could make it so people can only write one thing every minute and a half and also be able to hide it client side
  • whipbone
  • OFFLINE
  • Platinum Boarder
  • Diamond VIP
  • FP-TTT is where I belong.
  • Posts: 2275
  • Karma:
  • I Voted in Global Mod 2014
Hiiigh

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 8 months ago #158409

stop making these retarded polls
  • Slappy
  • OFFLINE
  • Platinum Boarder
  • Diamond VIP
  • le penis
  • Posts: 2582
  • Karma: -61
  • I Voted in Global Mod 2014
don't ban me please

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 8 months ago #158414

Slappy wrote:
stop making these retarded polls
Your so disrespectful how is it a retarded poll? Its a suggestion for something to make fp more custom and enjoyable
  • whipbone
  • OFFLINE
  • Platinum Boarder
  • Diamond VIP
  • FP-TTT is where I belong.
  • Posts: 2275
  • Karma:
  • I Voted in Global Mod 2014
Hiiigh

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 6 months ago #175591

I say this would be nice for requesting some staff to a server when there is none....
  • Blitzkrieg_HOSS
  • OFFLINE
  • Platinum Boarder
  • ☭Obey The Communist☭
  • Posts: 789
  • Karma: -13
  • I Voted in Global Mod 2014

And as I've gotten older, I've had more of a tendency to look for people who live by kindness, tolerance, compassion, a gentler way of looking at things.
Martin Scorsese
I have a zero tolerance for sanctimonious morons who try to scare people.
Pat Robertson
The responsibility of tolerance lies with those who have the wider vision. George Eliot

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 6 months ago #175636

We can do it so that the admins can communicate
  • dookeysmathers
  • OFFLINE
  • Platinum Boarder
  • Diamond VIP
  • Where is my free hot meal?
  • Posts: 416
  • Karma: 5
  • I Voted in Global Mod 2014
:pinch: Warning: Spoiler!







:pinch: Warning: Spoiler!

:pinch: Warning: Spoiler!

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 5 months ago #181966

Helps for when other staff from other servers cause trouble on your server. >:L
  • Rocinante
  • OFFLINE
  • Platinum Boarder
  • Diamond VIP
  • I’ll die smiling
  • Posts: 2016
  • Karma: 11
  • I Voted in Global Mod 2014
Steam Name: |FP| Strider (Formerly Professor Titties)
Former TTT Admin for 7 months,TTT staff for a year in total
Former Flood Operator for 4 months


Whenever you feel like arguing

"If religion were true, its followers would not try to bludgeon their young into an artificial conformity; but would merely insist on their unbending quest for truth, irrespective of artificial backgrounds or practical consequences."

H. P. Lovecraft

Re: Suggestion Global Chat-Chat with multiple servers 10 years, 5 months ago #181972

Professor TTz wrote:
Helps for when other staff from other servers cause trouble on your server. >:L

Why did you bring this back.... -_-
  • giovanniz123
  • OFFLINE
  • Banned
  • Da Chang4Life
  • Posts: 757
  • Karma: -134
  • Page:
  • 1
  • 2
Time to create page: 0.21 seconds