Sending hotel alert from website?

Results 1 to 8 of 8
  1. #1
    Member Tuuttihotel is offline
    MemberRank
    Jan 2008 Join Date
    65Posts

    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.


  2. #2
    Lurking around Clawed is offline
    Grand MasterRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    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.

  3. #3
    Member Tuuttihotel is offline
    MemberRank
    Jan 2008 Join Date
    65Posts

    Re: Sending hotel alert from website?

    Im using Phoenix edit by quenzo 3.0. Yes, i have MUS Command ha.

  4. #4
    Lurking around Clawed is offline
    Grand MasterRank
    Jun 2012 Join Date
    RaGEZONELocation
    785Posts

    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_INETSOCK_STREAMgetprotobyname('tcp'));
        @
    socket_connect($sock$ipintval($port));
        @
    socket_send($sock$musDatastrlen($musData), MSG_DONTROUTE);
        @
    socket_close($sock);
    }

    Mus("ha""This is an example message."); 

  5. #5
    Member Tuuttihotel is offline
    MemberRank
    Jan 2008 Join Date
    65Posts

    Re: Sending hotel alert from website?

    Not work... :/

  6. #6
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: Sending hotel alert from website?

    You dont need to change the $ip variable as it is executed server side.

  7. #7
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,486Posts

    Re: Sending hotel alert from website?

    Quote Originally Posted by HillBilly View Post
    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.

  8. #8
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Sending hotel alert from website?

    Quote Originally Posted by Quackster View Post
    If it was then the MUS could be spammed by the outside world.
    Only if you portforward the "mus" port... which most idiots do.



Advertisement