Raised This Month: $ Target: $400
 0% 

Know server IP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 11-09-2009 , 13:52   Know server IP
Reply With Quote #1

How can I have the server ip where my plugin is working?
Its possible?
Mxnn is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-09-2009 , 13:59   Re: Know server IP
Reply With Quote #2

get_user_ip(0,

or retrieving from the cvar 'ip'
__________________
Arkshine is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 11-09-2009 , 14:07   Re: Know server IP
Reply With Quote #3

Oh thanks!
Mxnn is offline
GIGS
BANNED
Join Date: Nov 2009
Old 11-12-2009 , 05:36   Re: Know server IP
Reply With Quote #4

can u show me full code i want to use it like /ipofmyserver than my ip display in chat
GIGS is offline
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 11-12-2009 , 05:53   Re: Know server IP
Reply With Quote #5

Quote:
Originally Posted by GIGS View Post
can u show me full code i want to use it like /ipofmyserver than my ip display in chat
Make yourself.
Arkshine said how.
__________________

floatman is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 11-12-2009 , 07:39   Re: Know server IP
Reply With Quote #6

Quote:
Originally Posted by Mxnn View Post
How can I have the server ip where my plugin is working?
Its possible?
Add something like this in plugin_init()

PHP Code:
register_cvar("Mxnn'""PluginName"FCVAR_SERVER|FCVAR_SPONLY
And then you can track using game-monitor and the name of that variable

It's that what you are looking for?
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply



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 17:43.


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