Raised This Month: $ Target: $400
 0% 

Server IP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-25-2013 , 22:48   Re: Server IP
Reply With Quote #8

get the fuc*ing net_address! its always shows a real IP..

the ip cvar its only works if used in command line of HLDS like: ./hlds_run -game cstrike +ip xxx.xxx.xxx.xxx

Ps.
For get a: xxx.xxx.xxx.xxx:27015 for example, you need to get 2 cvars: ip cvar and port cvar

And later use in a string or in a format() funcions... net_address its only use one cvar

>>
Quote:
Originally Posted by Blizzard_87 View Post
yep its how I check that my plugin is loaded on my server and noone elses.

Code:
public Check_Legal() {     new szIp[22];     get_user_ip(0, szIp, charsmax(szIp));     if(!equal(szIp, SERVERIP))     {         Plugin_Protection()         return PLUGIN_HANDLED;     }     console_print(0, "* Registered Server Detected *");     console_print(0, "* Registered Server Detected *");     console_print(0, "* Registered Server Detected *");         return PLUGIN_HANDLED; }

Send-me any plugin with using this and i will be breaking whole file using a fake cvars..
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 04-25-2013 at 22:51.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 10:54.


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