From a286f4fabaa93690a27cd95a6b06b2d13eb48b5a Mon Sep 17 00:00:00 2001 From: TheLie0 Date: Fri, 3 Apr 2020 20:00:28 +0200 Subject: [PATCH] Fixed the symlink situation --- sourcepawn/include/tf2p.inc | 16 +++++++++++++++- sourcepawn/tf2p-network-control.sp | 24 +++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) mode change 120000 => 100644 sourcepawn/include/tf2p.inc mode change 120000 => 100644 sourcepawn/tf2p-network-control.sp diff --git a/sourcepawn/include/tf2p.inc b/sourcepawn/include/tf2p.inc deleted file mode 120000 index 9505296..0000000 --- a/sourcepawn/include/tf2p.inc +++ /dev/null @@ -1 +0,0 @@ -/mnt/disk3/TF2DS/tf/addons/sourcemod/scripting/include//tf2p.inc \ No newline at end of file diff --git a/sourcepawn/include/tf2p.inc b/sourcepawn/include/tf2p.inc new file mode 100644 index 0000000..d92350a --- /dev/null +++ b/sourcepawn/include/tf2p.inc @@ -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); diff --git a/sourcepawn/tf2p-network-control.sp b/sourcepawn/tf2p-network-control.sp deleted file mode 120000 index 1c46fd2..0000000 --- a/sourcepawn/tf2p-network-control.sp +++ /dev/null @@ -1 +0,0 @@ -/mnt/disk3/TF2DS/tf/addons/sourcemod/scripting/tf2p-network-control.sp \ No newline at end of file diff --git a/sourcepawn/tf2p-network-control.sp b/sourcepawn/tf2p-network-control.sp new file mode 100644 index 0000000..a2ed361 --- /dev/null +++ b/sourcepawn/tf2p-network-control.sp @@ -0,0 +1,23 @@ +#include +#include + +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); +}