Raised This Month: $ Target: $400
 0% 

Server IP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 04-25-2013 , 20:52   Re: Server IP
Reply With Quote #1

Quote:
Originally Posted by Jhob94 View Post
Thanks all.
But fysiks are you sure get_user_ip(0,...) will show server ip?
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; }
__________________
Blizzard_87 is offline
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 10:54.


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