Make a plugin run only if server IP = 1.1.1.1
Hello,
Some help will be very appreciated with this. Do you guys know how i can make a sourcemod plugin run only if the server IP = 1.1.1.1 If the server IP is another one than the listed one, i would like the plugin to not run any of its code and instead print a public chat message. Thank you.:bacon!: |
Re: Make a plugin run only if server IP = 1.1.1.1
Easy, but the question is WHY?
|
Re: Make a plugin run only if server IP = 1.1.1.1
Quote:
How can i do it ? |
Re: Make a plugin run only if server IP = 1.1.1.1
1 Attachment(s)
Code:
|
Re: Make a plugin run only if server IP = 1.1.1.1
Quote:
But ServerCommand("sm plugins unload PluginName"); will only work as long as the plugin name is kept ? I'd like it to unload it regardless of the name the plugin has. Also, where will i put my existing code for the plugin that i want to modify, i am guessing i will copy paste the entire plugin over PrintToChatAll("Server IP is 1.1.1.1 and plugin is loaded"); , correct ? |
Re: Make a plugin run only if server IP = 1.1.1.1
Quote:
|
Re: Make a plugin run only if server IP = 1.1.1.1
Quote:
|
Re: Make a plugin run only if server IP = 1.1.1.1
Quote:
|
Re: Make a plugin run only if server IP = 1.1.1.1
I feel the ban hammer coming down.
|
Re: Make a plugin run only if server IP = 1.1.1.1
Quote:
http://i3.kym-cdn.com/photos/images/...80/696/abe.jpg |
All times are GMT -4. The time now is 20:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.