woocommerce plugin/product to execute rcon command when is purchased 2
$10-30 USD
Completed
Posted over 5 years ago
$10-30 USD
Paid on delivery
I need a product/plugin for reselling VIP in Rust game over the woocommerce.
I use this [login to view URL] websocket to communicate with Rcon game server. so the final command on woocommerce will be <?php
header('Content-Type: text/plain; charset=utf-8');
require_once __DIR__ . '/websocket-php/lib/[login to view URL]';
require_once __DIR__ . '/websocket-php/lib/[login to view URL]';
require_once __DIR__ . '/websocket-php/lib/[login to view URL]';
require_once __DIR__ . '/websocket-php/lib/[login to view URL]';
require_once __DIR__ . '/websocket-php/lib/[login to view URL]';
require_once __DIR__ . '/websocket-php/lib/[login to view URL]';
require_once __DIR__ . '/websocket-php/lib/[login to view URL]';
use WebSocket\Client;
$ip = "[login to view URL]"; // server IP-address
$rcon_port = "28016"; // server RCON-port
$rcon_pass = "fvfcbhfh!"; // server RCON-password
$client = new Client("ws://{$ip}:{$rcon_port}/{$rcon_pass}");
$data = array(
'Identifier' => 0,
'Message' => 'addgroup <steamID> vip 7d', // command
'Stacktrace' => '',
'Type' => 3
);
$client->send(json_encode($data));
$result = json_decode($client->receive());
echo $result->Message;
Hello Sir
I can add this code to final success page to make an call to remote server as per the given code.
I am willing to start right away and can complete by today itself..
Please check my profile for work and experience.
Regards
Ashwin