Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help] Mus Commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Zodiak" data-source="post: 383349" data-attributes="member: 9300"><p>I'll c+p you my mus function once I've finished backing up all of my files, give me a few</p><p>[doublepost=1472618019,1472607840][/doublepost]Completely forgot about this.</p><p>[PHP]function sendMUS($command, $data = '') {</p><p> $MUSdata = $command . chr(1) . $data;</p><p> $socket = socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp'));</p><p> socket_connect($socket, '127.0.0.1', '30001');</p><p> socket_send($socket, $MUSdata, strlen($MUSdata), MSG_DONTROUTE); </p><p> socket_close($socket);</p><p> } [/PHP]</p><p></p><p>Usage</p><p>[PHP]sendMUS('joincorp', $user->id . ':' . $corp->id);[/PHP]</p><p></p><p>[PHP]sendMUS('musCommand', 'param1');</p><p></p><p>sendMUS('musCommand', 'param1:param2');</p><p></p><p>sendMUS('musCommand', 'param1:param2:param3');</p><p></p><p>sendMUS('musCommand', 'param1:param2:param3:param4');[/PHP]</p></blockquote><p></p>
[QUOTE="Zodiak, post: 383349, member: 9300"] I'll c+p you my mus function once I've finished backing up all of my files, give me a few [doublepost=1472618019,1472607840][/doublepost]Completely forgot about this. [PHP]function sendMUS($command, $data = '') { $MUSdata = $command . chr(1) . $data; $socket = socket_create(AF_INET, SOCK_STREAM, getprotobyname('tcp')); socket_connect($socket, '127.0.0.1', '30001'); socket_send($socket, $MUSdata, strlen($MUSdata), MSG_DONTROUTE); socket_close($socket); } [/PHP] Usage [PHP]sendMUS('joincorp', $user->id . ':' . $corp->id);[/PHP] [PHP]sendMUS('musCommand', 'param1'); sendMUS('musCommand', 'param1:param2'); sendMUS('musCommand', 'param1:param2:param3'); sendMUS('musCommand', 'param1:param2:param3:param4');[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help] Mus Commands
Top