AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Gameserver Chat to Browser (https://forums.alliedmods.net/showthread.php?t=285246)

mazdarx8 07-15-2016 08:38

Gameserver Chat to Browser
 
Hello,

I need a plugin where the chat shows on homepage.

Example:

[SERVER XYZ] NICKNAME: Text1 Text2
[SERVER XYZ] NICKNAME: Text1 Text2
[SERVER XYZ2] NICKNAME: Text1 Text2

Etc,.

Can anyone help me? :)

Arkarr 07-15-2016 14:27

Re: Gameserver Chat to Browser
 
What ?

ddhoward 07-15-2016 18:27

Re: Gameserver Chat to Browser
 
Quote:

Originally Posted by Arkarr (Post 2436959)
What ?

He wants a plugin that publishes the in-game chat onto a page on his website, probably updating in real time.

Arkarr 07-16-2016 02:40

Re: Gameserver Chat to Browser
 
Quote:

Originally Posted by ddhoward (Post 2437004)
He wants a plugin that publishes the in-game chat onto a page on his website, probably updating in real time.

MMmmmMm sockets :D ! I'll try to do it.

EDIT: Sh*t. I don't think there is anyway to do that with only sockets, since PHP is not asynch and NodeJS require a PC to install (so it won't be web-only). Any idea ?

Toastbrot_290 07-17-2016 03:53

Re: Gameserver Chat to Browser
 
NodeJS and PHP need to be installed, but PHP is allready installed on the most webservers. PHP can do sockets too, but nodejs fits better for that usecase. Although you can use simple HTTP requests and PHP based API.

Arkarr 07-17-2016 07:32

Re: Gameserver Chat to Browser
 
Quote:

Originally Posted by Toastbrot_290 (Post 2437209)
NodeJS and PHP need to be installed, but PHP is allready installed on the most webservers. PHP can do sockets too, but nodejs fits better for that usecase. Although you can use simple HTTP requests and PHP based API.

I didn't wanted to do it using NodeJs since you can't install it Everywhere. Any exemple about how you would do it only using PHP ?

MFS 07-17-2016 19:18

Re: Gameserver Chat to Browser
 
Use API GameMe, if TS uses it.

Toastbrot_290 07-18-2016 17:35

Re: Gameserver Chat to Browser
 
I would set up a REST api using PHP. It wouldn't need many commands. You could call that api within your sourcemod plugin using http requests by curl ext.

ZAGOR 07-19-2016 16:37

Re: Gameserver Chat to Browser
 
U can see it here is there anyone who can?

Deathknife 07-19-2016 19:09

Re: Gameserver Chat to Browser
 
Why not insert messages into MySQL(either directly or http requests) and then just load the messages on web page with auto-refresh using jquery/ajax?


All times are GMT -4. The time now is 23:41.

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