MR.GRAND

Global Chat - Servers System

Recommended Posts

Hello everyone 9_9
Today I've finished my new script : GCSS

Details about this script : This is a system which allows you to chatting with other players on another server
So when you open the panel, you will see on the left : The players on your current server
On the right it's the Messages box, You will receive the messages from the players on your server and the players on the second server
And in : Manage GCSS Tab which is for admins you will see a place to update admin message & Check new updates of the script
Also you've a smiles in the script : Emoji window

Note : Minimum MTA:SA Version to run all features is : 1.5.4

_________________________________________________________________________________________________

Other Features :

You can customize your messages color, All players will see the new color on each servers ( Default color is White ).
You can press on "Do Not Disturb[ Silent Mode ]" checkBox to mute the alerts of the system and chatBox messages.
_________________________________________________________________________________________________


Tutorial about how to use the script :

Note : Do not edit the resource name, to avoid issues.

1- Write this code in a blank space in the ACL file for each servers :


 

<group name="OutRPCGroup">
    <acl name="OutRPC" />
    <object name="resource.GCSS_Professional" />
</group>
<acl name="OutRPC">
    <right name="function.callRemote" access="true" />
</acl>
<group name="InRPCGroup">
    <acl name="InRPC" />
    <object name="user.http_guest" />
</group>
<acl name="InRPC">
    <right name="resource.GCSS_Professional.http" access="true" />
</acl>

2- Go to "Settings.lua" file and edit the following :
 


adminGroup_Permissions = 'Admin'; -- ***Edit this group name to your Admins group to give full permissions / leave if it's the same name.

ManageGCSS_AccessTable = { 'Console', 'Admin', 'GCSS_Manager' }; -- ***Edit : This is the groups which can access "Manage GCSS" tab.

local server_ip = '127.000.0.000:22005'; -- ***Put the server ip & port for each server you want to communicate with.

-- Do not edit the codes below.

addEvent( 'onServerSendMessage', true )
addEventHandler( 'onServerSendMessage', root,
function( message )
	local name = getPlayerName( source )
		local data = getElementData( source, 'GCSS:MessageColor' )
			local message = '[onPort:'..getServerPort(  )..'][ '..name..' ] : '..message
		callRemote( server_ip, 'default', 10, 10000, getResourceName( getThisResource( ) ), 'SendGlobalMessage', callBack, message, data[1], data[2], data[3] )
	triggerClientEvent( root, 'onClientReceiveMessage', source, message, data[1], data[2], data[3] )
end )

Note : You need to install the resource on each servers by use the following :
On the first server : Write the ip & port of the second server & Run the resource
On the second server : Write the ip & port of the first server & Run the resource

_________________________________________________________________________________________________

Note : You can found the key to open the script in : "OpenKey.lua" file.

_________________________________________________________________________________________________

Some pictures :

Main panel & Customize panel & Emoji panel
o4waaij83h5ix6jzg.jpg
__________
Manage GCSS Tab
voxzyr31b83g8vdzg.jpg

_________________________________________________________________________________________________

Note : All shared GCSS Scripts are Demo, To Purchase full open source script or get a special edits :
Contact the programmer[Me] on E-mail : ka1888868@gmail.com or us.luapro@gmail.com .
*Purchase Price :
$5 

*Current version is : 1.0.0 

*Download : Press on me :). 

Note : If you have any issues, please write a comment.

If you have a new ideas to develop the script, please write a comment on the topic
Do not forget to rate the script by percentage% in a comment 
:cool:
Thanks.

Edited by MR.GRAND
Download link updated
  • Like 5

Share this post


Link to post
On 10/1/2017 at 13:32, MR.StoRm said:

Nice System
Keep Going .. 

Thanks for comment bro :) .

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.