AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   license plugin DNS (https://forums.alliedmods.net/showthread.php?t=238661)

raducuursu 04-14-2014 16:45

license plugin DNS
 
can someone help me to licensed plugins dns

I do not want IP LICENSE

need all code license DNS hostname

Thanks

YamiKaitou 04-14-2014 16:49

Re: license plugin DNS
 
The same arguments and conversations that have been had for IP can also be made for DNS

fysiks 04-14-2014 16:50

Re: license plugin DNS
 
None of what you said makes any sense. You'll have to try again.

All plugins created for AMX Mod X are required to use the same GPL license.

raducuursu 04-14-2014 16:53

Re: license plugin DNS
 
I need plugin domain license
need code

fysiks 04-14-2014 16:56

Re: license plugin DNS
 
Quote:

Originally Posted by raducuursu (Post 2124594)
I need plugin domain license
need code

What do you mean? You'll need to describe it differently.

A couple common points:
  • All plugins must follow the GPL license of AMX Mod X.
  • It is not possible to reliably restrict a plugin to a particular server.

raducuursu 04-14-2014 17:01

Re: license plugin DNS
 
Is posbile
Example:
#include < amxmodx >

#define DNS_LICENTIAT "DNS.NAME.COM"

public plugin_init( )
{
register_plugin( "name plugin", "1.0", "XXX" );

new szHostName[ 64 ];
get_cvar_string( "hostname", szHostName, sizeof( szHostName ) -1 );

if ( contain( szHostName, DNS_LICENTIAT ) == -1 )
set_fail_state( "Licenta este invalida!" );
}

need good code

fysiks 04-14-2014 17:02

Re: license plugin DNS
 
"hostname" is the name of your server, it has nothing to do with DNS.

Again, I'll reiterate: It is not possible to reliably prevent a plugin from running on other server. The best method to do this is to not give out your plugin.

raducuursu 04-14-2014 17:04

Re: license plugin DNS
 
I want to make plugins for the community

With hostname license

fysiks 04-14-2014 17:10

Re: license plugin DNS
 
Quote:

Originally Posted by raducuursu (Post 2124604)
I want to make plugins for the community

With hostname license

If you want to use the server hostname, you can do that. However, it won't prevent anyone else from using it because they will be able to change it in the source code and then run your plugin (or remove the supposed protection from the plugin entirely).

There is no need to continue this discussion.

raducuursu 04-14-2014 17:12

Re: license plugin DNS
 
think it is good code?


All times are GMT -4. The time now is 17:18.

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