Raised This Month: $51 Target: $400
 12% 

Make a plugin run only if server IP = 1.1.1.1


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 04-04-2016 , 19:27   Re: Make a plugin run only if server IP = 1.1.1.1
#11

This isnt a laughing matter.

You are disrespecting the entire sourcemod community.

Play by the rules / LICENSE or go away.
__________________
Neuro Toxin is offline
doze
Senior Member
Join Date: Mar 2012
Old 04-04-2016 , 19:42   Re: Make a plugin run only if server IP = 1.1.1.1
#12

It really amazes me that you 2 gentlemen have nothing better to do than to come in a thread of someone asking for help with something extremely simple and wasting your time and mine posting useless information.

Go do something useful with your time instead.

Who are you to speak in the name of the entire sourcemod community btw?, if the entire sourcemod community was like you 2, you would be the only members.

Lets cut the crap please and get on point, i'll stop replying to you 2 and similar posts.

Last edited by doze; 04-04-2016 at 19:53.
doze is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 04-04-2016 , 19:45   Re: Make a plugin run only if server IP = 1.1.1.1
#13

Dont expect further help after blatantly stating you dont care about the licence and you will be releasing binaries without source.

GGWP
__________________
Neuro Toxin is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-04-2016 , 19:56   Re: Make a plugin run only if server IP = 1.1.1.1
#14

Even if you have wanton disregard for the license (which would indeed result in likely banning here and potential plugin blacklisting), it's not prohibitively difficult to decompile SourceMod plugins and then tidy up code, remove such checks, and recompile.

I suggest reconsidering your strategy.
psychonic is offline
doze
Senior Member
Join Date: Mar 2012
Old 04-04-2016 , 21:10   Re: Make a plugin run only if server IP = 1.1.1.1
#15

Good points about the decompile psychonic, thanks for the input.


---

I'd still like some code that will do what i've originally requested help with though, would be very appreciated.

I've changed my mind and i want to use it for a different purpose now since this code can have a variety of uses, using it for what i've initially intended is useless now since i've learned the plugin can be decompiled, i have no more use for it for that purpose.

I want to make sure i don't upload the plugin to another one of my servers by mistake, i need it to stop the plugin from executing so it doesn't interfere with other plugins on the server and print an alert in the chat informing me of my mistake so i can rectify it ASAP.

I am not sure what to do with the code Bailando has posted however, would be great if more input could be given on it.

I've tried to basically copy-paste the source over "PrintToChatAll("Server IP is 1.1.1.1 and plugin is loaded");" , no luck, not really sure what to do next.

Last edited by doze; 04-04-2016 at 21:16.
doze is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 04-04-2016 , 22:34   Re: Make a plugin run only if server IP = 1.1.1.1
#17

You could also SetFailState which will display errors in the logs. This doesnt require you to know the plugin filename or to unload it manually.
__________________
Neuro Toxin is offline
doze
Senior Member
Join Date: Mar 2012
Old 04-04-2016 , 23:16   Re: Make a plugin run only if server IP = 1.1.1.1
#18

If i knew how to code, i'd do it myself, wouldnt be requesting simple plugins like this, i don't know what to do with those things, they arent of any use to me.

This is like asking someone for a spoon and him giving me metal bars to melt and some other stuff to design the mold for them + other tools required.

Last edited by doze; 04-04-2016 at 23:22.
doze is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-04-2016 , 23:20   Re: Make a plugin run only if server IP = 1.1.1.1
#19

Sorry, usually requests go in the requests section, the scripting section is for people who do know some basic coding. I'd type up an example but I'm on my mobile.
__________________

Last edited by ddhoward; 04-04-2016 at 23:20.
ddhoward is offline
doze
Senior Member
Join Date: Mar 2012
Old 04-04-2016 , 23:28   Re: Make a plugin run only if server IP = 1.1.1.1
#20

We could design a small game if all the useless posts in this thread were code.
doze is offline
Closed Thread



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 06:24.


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