Raised This Month: $ Target: $400
 0% 

Server ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blue One
Junior Member
Join Date: May 2006
Location: Germany , Sarlhusen
Old 05-02-2007 , 04:06   Server ip
Reply With Quote #1

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 ?
__________________
Scripter of the ; Lord of the Rings and Hunter/Hunted Mod

iam search some Testers here

Helpfulideas was been Sponsored of Peoples of my 10th Schoolclass in Germany.... Big Thanks here
Blue One is offline
Send a message via ICQ to Blue One Send a message via MSN to Blue One
dutchmeat
Senior Member
Join Date: Sep 2006
Old 05-02-2007 , 04:36   Re: Server ip
Reply With Quote #2

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
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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