View Single Post
raducuursu
Junior Member
Join Date: Sep 2012
Old 04-14-2014 , 17:01   Re: license plugin DNS
Reply With Quote #6

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

Last edited by raducuursu; 04-14-2014 at 17:01.
raducuursu is offline