WARNING: THIS PROJECT IS DEPRECATED. USE THIS INSTEAD!
A simple PHP wrapper for Arcturus Emulator RCON. Perfect for implementing in your cms.
Just download and put it in your cms. Edit line 7 in index.php with the same RCON host and port which arcturus uses.
# Send a alert to all users. Optionally with an URL.
$hotelAlert('message', 'url')
# Send a alert to all staffs.
$staffAlert('message')
# Send a alert to a user.
$userAlert(userId, 'message')
# Mute a user.
$mute(userId, duration)
# Disconnect a user.
$disconnect(userId)
# Send credits to a user.
$sendCredit(userId, amount)
# Send pixels to a user. (aka. Duckets)
$sendPixel(userId, amount)
# Send points to a user. (aka. Diamonds)
$sendPoint(userId, amount)
# Send a badge to a user.
$sendBadge(userId, badgeName)
# Send a gift to a user. Optionally with a message.
$sendGift(userId, itemId, 'message')
Sending a hotelAlert.
socket_write($socket, $hotelAlert('hello world'));
Giving a user 10k credits.
socket_write($socket, $sendCredit(5, 10000));