want to check server ip, to load plugin
So from what I am aware of is that i need to use this
get_user_ip(0, SERVER_IP, 31) I wanted to make a check where, if the server ip does not match the #define SERVER_IP, then the plugin will not run, and if it does plugin will run. Any help? |
Re: want to check server ip, to load plugin
search. Asked and answered many times.
|
Re: want to check server ip, to load plugin
Use this check in plugin_precache
PHP Code:
|
Re: want to check server ip, to load plugin
Quote:
|
Re: want to check server ip, to load plugin
Ok but how would I actually check.. Like the condition?
Like this? #define IPCHECK 1.1.1.1:27015 new serverip = get_user_ip(0, 0) if( IPCHECK = serverip) plugin_continue Else plugin_handled |
Re: want to check server ip, to load plugin
Code:
|
Re: want to check server ip, to load plugin
Thx alot yami +rep
|
| All times are GMT -4. The time now is 06:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.