AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin Protection (https://forums.alliedmods.net/showthread.php?t=134410)

OvidiuS 08-04-2010 09:55

Plugin Protection
 
i need some help...
i whant to protect my plugins, so i have one idea...
i have 2 plugins...and 1 main plugin...
is there any way to check if main plugin is runing, so if it's runing this 2 plugins will work, but if main plugin ain't runing, this 2 pugins will not work :P
main plugin name "tralala.amxx"
i need code that i will add in that 2 plugins :)
sorry for bad english, i am from serbia :P

YamiKaitou 08-04-2010 12:13

Re: Plugin Protection
 
http://www.amxmodx.org/funcwiki.php?go=func&id=627

OvidiuS 08-04-2010 12:31

Re: Plugin Protection
 
thank you, but one more question?
if main plugin is not found?
will the 2 other plugins work??

YamiKaitou 08-04-2010 12:38

Re: Plugin Protection
 
Depends, you can fail/pause the other plugins if the main one doesn't exist. Unless you tell the plugin to do something when it doesn't detect the main plugin, nothing will happen

joropito 08-04-2010 12:51

Re: Plugin Protection
 
The best way to protect a plugin for illegal use is to make some online check at plugin startup so you can make a central database with servers ip+ports to allow or disallow the use of that plugin.

Of course everything can be cracked.

OvidiuS 08-04-2010 12:58

Re: Plugin Protection
 
could you post code for pausing or any other combined with find_plugin_byfile?
thanks in advance :)
@ thanks joropito, but thats to heavy for me...
i was thinkg also about checking server IP or name...so if name isnt eaqual to "something" plugin will fail but, again i dont know how to code that:)

YamiKaitou 08-04-2010 13:03

Re: Plugin Protection
 
set_fail_state
pause

OvidiuS 08-04-2010 13:05

Re: Plugin Protection
 
thank you very much...i'll try now :)

OvidiuS 08-05-2010 09:39

Re: Plugin Protection
 
help?
Code:

new ip[16], port[8]
 new komplet[30]
 get_cvar_string("ip", ip, charsmax )
 get_cvar_string("port", port, charsmax(port))
 format(komplet,charsmax(komplet), "%s:%s", ip, port)......
....................
..........................
 
{
 if (equal ( komplet, "213.213.213:27015"))
 return PLUGIN_CONTINUE
 {
 else
 {
 set_fail_state ( "Illegal USE")
}

used cvars to get ip and port,
charmax symbol undefined,

DarkGod 08-05-2010 09:40

Re: Plugin Protection
 
If charsmax is undefined, upgrade to at least AMXX 1.8.


All times are GMT -4. The time now is 00:09.

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