Fixed the symlink situation
This commit is contained in:
parent
d88c4c6524
commit
a286f4faba
2 changed files with 38 additions and 2 deletions
|
@ -1 +0,0 @@
|
||||||
/mnt/disk3/TF2DS/tf/addons/sourcemod/scripting/include//tf2p.inc
|
|
15
sourcepawn/include/tf2p.inc
Normal file
15
sourcepawn/include/tf2p.inc
Normal 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);
|
|
@ -1 +0,0 @@
|
||||||
/mnt/disk3/TF2DS/tf/addons/sourcemod/scripting/tf2p-network-control.sp
|
|
23
sourcepawn/tf2p-network-control.sp
Normal file
23
sourcepawn/tf2p-network-control.sp
Normal 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);
|
||||||
|
}
|
Loading…
Reference in a new issue