From 6580aa368861f186292bb68245891503968956f3 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Wed, 3 May 2023 17:47:43 +0100 Subject: [PATCH] feat: add getiP --- iw4x/iw4x_00/common_scripts/utility.gsc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/iw4x/iw4x_00/common_scripts/utility.gsc b/iw4x/iw4x_00/common_scripts/utility.gsc index fb3fc07..acc4638 100644 --- a/iw4x/iw4x_00/common_scripts/utility.gsc +++ b/iw4x/iw4x_00/common_scripts/utility.gsc @@ -3878,6 +3878,22 @@ getPing() return self.ping; } +/* +============= +///ScriptDocBegin +"Name: getIP()" +"Summary: Returns the current IP Address of the client" +"Module: Utility" +"Example: self getIP();" +"SPMP: multiplayer" +///ScriptDocEnd +============= +*/ +getIP() +{ + return self.address; +} + void() { }