Sending hotel alert from website?
Hello! Can someone create a php script when i can but it to my website where my hotel players can send the hotelalert from the website every 15-30min?
My retro have +100 users online every day, and the hotelalert spam is massive...
Sorry about my bad english.
Re: Sending hotel alert from website?
Yes, if your EMU has MUS command ha then yes, might need coding in some emus depends on what emu you have.
Most of them have it.
Re: Sending hotel alert from website?
Im using Phoenix edit by quenzo 3.0. Yes, i have MUS Command ha.
Re: Sending hotel alert from website?
PHP Code:
function Mus($header, $data = '')
{
$port = 30001;
$ip = "127.0.0.1";
$musData = $header . chr(1) . $data;
$sock = @socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));
@socket_connect($sock, $ip, intval($port));
@socket_send($sock, $musData, strlen($musData), MSG_DONTROUTE);
@socket_close($sock);
}
Mus("ha", "This is an example message.");
Re: Sending hotel alert from website?
Re: Sending hotel alert from website?
You dont need to change the $ip variable as it is executed server side.
Re: Sending hotel alert from website?
Quote:
Originally Posted by
HillBilly
You dont need to change the $ip variable as it is executed server side.
If it was then the MUS could be spammed by the outside world.
Re: Sending hotel alert from website?
Quote:
Originally Posted by
Quackster
If it was then the MUS could be spammed by the outside world.
Only if you portforward the "mus" port... which most idiots do.