Fixed the symlink situation

This commit is contained in:
TheLie0 2020-04-03 20:00:28 +02:00
parent d88c4c6524
commit a286f4faba
2 changed files with 38 additions and 2 deletions

View file

@ -1 +0,0 @@
/mnt/disk3/TF2DS/tf/addons/sourcemod/scripting/include//tf2p.inc

View file

@ -0,0 +1,15 @@
/**
* @brief Sends th buffer "ping to specified ip over udp.
*
* @param ip ip adress to send to.
* @return nothing.
*/
native void Rust_Send_Ping(const char[] ip);
/**
* @brief Spawns a udp socket reader thread
*
* @param ip ip adress of the server.
* @param port port of the server.
* @return nothing.
*/
native void Rust_Start_Manager(const char[] ip, int s_port);

View file

@ -1 +0,0 @@
/mnt/disk3/TF2DS/tf/addons/sourcemod/scripting/tf2p-network-control.sp

View file

@ -0,0 +1,23 @@
#include <sourcemod>
#include <tf2p>
public Plugin:myinfo = {
name = "rust listen",
author = "Daniel Mowitz",
description = "Observes.",
version = "1.1.0"
};
ConVar ip;
ConVar s_port;
public OnPluginStart() {
char buf [20];
ip = FindConVar("ip");
ip.GetString(buf, 20);
s_port = FindConVar("hostport");
Rust_Start_Manager(buf, s_port.IntValue);
}