Raised This Month: $ Target: $400
 0% 

[HELP] protected plugin for LAN


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 11-23-2015 , 21:39   [HELP] protected plugin for LAN
Reply With Quote #1

hi guys, here i have codes to protect plugin to work on IP ADDRESS

PHP Code:
// Address Protection
#define ADDRESS_PROTECTION "11.11.11.11:22222" 

// DNS Protection
#define DNS_PROTECTION "" 
PHP Code:

// Client joins the game
public client_putinserver(id)
{

// Address protection
static address[32], name[32]
get_cvar_string("net_address"addresscharsmax(address))    
get_cvar_string("hostname"namecharsmax(name))
if (!
equal(ADDRESS_PROTECTIONaddress) || !contain(nameDNS_PROTECTION)) set_fail_state("This addons protected"
i want a
utomatic detection about LAN IP not public IP
and protect this plugin with LAN IP
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
 



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 18:07.


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