Raised This Month: $ Target: $400
 0% 

Plugin Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-04-2010 , 09:55   Plugin Protection
Reply With Quote #1

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
main plugin name "tralala.amxx"
i need code that i will add in that 2 plugins
sorry for bad english, i am from serbia
OvidiuS is offline
Send a message via Skype™ to OvidiuS
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-04-2010 , 12:13   Re: Plugin Protection
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=627
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-04-2010 , 12:31   Re: Plugin Protection
Reply With Quote #3

thank you, but one more question?
if main plugin is not found?
will the 2 other plugins work??
OvidiuS is offline
Send a message via Skype™ to OvidiuS
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-04-2010 , 12:38   Re: Plugin Protection
Reply With Quote #4

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 08-04-2010 , 12:51   Re: Plugin Protection
Reply With Quote #5

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.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-04-2010 , 12:58   Re: Plugin Protection
Reply With Quote #6

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

Last edited by OvidiuS; 08-04-2010 at 13:03.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-04-2010 , 13:03   Re: Plugin Protection
Reply With Quote #7

set_fail_state
pause
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-04-2010 , 13:05   Re: Plugin Protection
Reply With Quote #8

thank you very much...i'll try now
OvidiuS is offline
Send a message via Skype™ to OvidiuS
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-05-2010 , 09:39   Re: Plugin Protection
Reply With Quote #9

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,
OvidiuS is offline
Send a message via Skype™ to OvidiuS
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-05-2010 , 09:40   Re: Plugin Protection
Reply With Quote #10

If charsmax is undefined, upgrade to at least AMXX 1.8.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
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 00:09.


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