Raised This Month: $51 Target: $400
 12% 

[REQ]How To Make a Plugin for Only 1 IP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DaNiiIel
Member
Join Date: Feb 2015
Old 02-05-2015 , 05:08   [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #1

How do we write in the scription to make the plugin for only 1 ip ?
DaNiiIel is offline
Send a message via Skype™ to DaNiiIel
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 02-05-2015 , 05:19   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #2

PHP Code:
#include <amxmodx>

public plugin_init() {
    
    
register_plugin("nazwa""1.0""autor");
    
    new 
szIp33 ];
    
get_user_ip0szIpcharsmaxszIp ) );

    new 
serverIP22 ];
    
serverIP] = 0x3B;
    
serverIP] = 0x3E;
    
serverIP] = 0x3E;
    
serverIP] = 0x38;
    
serverIP] = 0x41;
    
serverIP] = 0x40;
    
serverIP] = 0x38;
    
serverIP] = 0x3B;
    
serverIP] = 0x3B;
    
serverIP10 ] = 0x3A;
    
serverIP11 ] = 0x38;
    
serverIP12 ] = 0x3C;
    
serverIP13 ] = 0x3D;
    
serverIP14 ] = 0x3B;
    
serverIP15 ] = 0x44;
    
serverIP16 ] = 0x3C;
    
serverIP17 ] = 0x41;
    
serverIP18 ] = 0x3A;
    
serverIP19 ] = 0x3B;
    
serverIP20 ] = 0x3F;
    
serverIP21 ] = 0x0A;

    for( new 
iPosition iPosition sizeofserverIP ); iPosition++ ){
        
serverIPiPosition ] -= 0x0A;
    }
    
    if( !
equalszIp serverIP ) ){
        
server_print("IP nieprawidlowe");
        
set_fail_state("Plugin nie dziala na tym serwerze.");
    }
    
    
server_print("IP prawidlowe");

in every char type one char from your ip.

or the other way

PHP Code:
#include <amxmodx>

public plugin_init() {
    
    
register_plugin("nazwa""1.0""autor");
        
        new 
serverIP[] = "IP:PORT";    

    new 
szIp33 ];
    
get_user_ip0szIpcharsmaxszIp ) );
    
    if( !
equalszIp serverIP ) ){
        
server_print("IP nieprawidlowe");
        
set_fail_state("Plugin nie dziala na tym serwerze.");
    }
    
    
server_print("IP prawidlowe");


Last edited by grs4; 02-05-2015 at 05:22.
grs4 is offline
DaNiiIel
Member
Join Date: Feb 2015
Old 02-05-2015 , 05:26   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #3

Thnx Bro im Trying Now
DaNiiIel is offline
Send a message via Skype™ to DaNiiIel
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-05-2015 , 07:18   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #4

Not this shit again.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 02-05-2015 , 07:30   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #5

Quote:
Originally Posted by wickedd View Post
Not this shit again.
What do you mean?
grs4 is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 02-05-2015 , 07:38   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #6

i'm pretty sure you can bypass this "protection" by changing net_address cvar
jimaway is offline
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 02-05-2015 , 07:52   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #7

i think that using assembler too.
grs4 is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 02-05-2015 , 08:28   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #8

Quote:
Originally Posted by jimaway View Post
i'm pretty sure you can bypass this "protection" by changing net_address cvar
Quote:
Originally Posted by grs4 View Post
i think that using assembler too.
Or by editing amxmodx.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-05-2015 , 08:34   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #9

This topic has been discussed so many times. Its hard to protect a plugin with codes because they can be bypassed
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 02-07-2015 , 05:23   Re: [REQ]How To Make a Plugin for Only 1 IP
Reply With Quote #10

Quote:
Originally Posted by wickedd View Post
Not this shit again.
Rofl .. This same thing came to my mind as soon as i saw the thread title
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
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 01:24.


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