AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Server ip (https://forums.alliedmods.net/showthread.php?t=54714)

Blue One 05-02-2007 04:06

Server ip
 
hey Guys,

i need some help over here, because of i have created an plugin like WC3 with an Global MYSQL-DB all is running but now i want to list above the Playerslist the Serverip where the Skript is running, how i can get the ip of the server and save it in MYSQL ?

dutchmeat 05-02-2007 04:36

Re: Server ip
 
I think you can use get_cvar_string,

Code:

new NetIp[64]
get_cvar_string("net_address",NetIp,63)
//now do something funky with it



All times are GMT -4. The time now is 06:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.