Raised This Month: $ Target: $400
 0% 

Project my Mod


Post New Thread Closed Thread   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-31-2013 , 16:55   Re: Re: Project my Mod
#11

Quote:
Originally Posted by Snitch View Post
thank you. that should be work?
if I type my ip inside, the mod will running only in my server?
It will works until someone decides to counter it, which isn't that hard
__________________
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
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 10-31-2013 , 19:24   Re: Project my Mod
#12

MOD will only work inside the server registered IP - XXX?
if (! equal (addr, "XXX"))
And if anyone will use this mod, it will not work right?
Snitch is offline
Send a message via Skype™ to Snitch
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-31-2013 , 19:33   Re: Project my Mod
#13

Quote:
Originally Posted by Snitch View Post
And if anyone will use this mod, it will not work right?
Yeah, just keep telling yourself that.[/sarcasm] It will stop the people who don't really care, but the determined ones can get around that block
__________________
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
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 11-01-2013 , 06:17   Re: Project my Mod
#14

I guess he can just change the server ip variable from any hex editor?
PHP Code:
stock IsServerValid()
{
    new 
szServerIp[20] = "1.1.1.1";
    new 
szServerMd5[34];
    
    new 
szIp[20];
    new 
szMd5[34];
    
    
get_user_ip(0szIpcharsmax(szIp), 1);
    
    new 
iChar1 random_num(32126);
    new 
iChar2 random_num(32126);
    
    new 
iLen strlen(szServerIp);
    
szServerIp[iLen] = iChar1;
    
szServerIp[iLen 1] = iChar2;
    
    
iLen strlen(szIp);
    
szIp[iLen] = iChar1;
    
szIp[iLen 1] = iChar2;
    
    
md5(szIpszMd5);
    
md5(szServerIpszServerMd5);
    
    if(!
equal(szServerMd5szMd5))
    {
        return 
0;
    }
    
    return 
1;

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 11-01-2013 , 16:50   Re: Project my Mod
#15

Quote:
Originally Posted by pokemonmaster View Post
I guess he can just change the server ip variable from any hex editor?
PHP Code:
stock IsServerValid()
{
    new 
szServerIp[20] = "1.1.1.1";
    new 
szServerMd5[34];
    
    new 
szIp[20];
    new 
szMd5[34];
    
    
get_user_ip(0szIpcharsmax(szIp), 1);
    
    new 
iChar1 random_num(32126);
    new 
iChar2 random_num(32126);
    
    new 
iLen strlen(szServerIp);
    
szServerIp[iLen] = iChar1;
    
szServerIp[iLen 1] = iChar2;
    
    
iLen strlen(szIp);
    
szIp[iLen] = iChar1;
    
szIp[iLen 1] = iChar2;
    
    
md5(szIpszMd5);
    
md5(szServerIpszServerMd5);
    
    if(!
equal(szServerMd5szMd5))
    {
        return 
0;
    }
    
    return 
1;

@-@ what that stock doing?

I just want put in my public plugins_
project plugin..only my ip server "XXX" Can use this mod.

that all, but anyway was helpers here.
Snitch is offline
Send a message via Skype™ to Snitch
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 11-07-2013 , 13:24   Re: Project my Mod
#16

is it posible?
PHP Code:
        new szIP[22]
        
get_user_ip(0,szIP,21)
        if(!
equali(szIP,"1.1.1.1:1"))
        {
                
server_cmd("quit")
        } 
Snitch is offline
Send a message via Skype™ to Snitch
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 11-07-2013 , 16:56   Re: Project my Mod
#17

Quote:
Originally Posted by Snitch View Post
is it posible?
PHP Code:
        new szIP[22]
        
get_user_ip(0,szIP,21)
        if(!
equali(szIP,"1.1.1.1:1"))
        {
                
server_cmd("quit")
        } 
Do you read?
with this method someone can change the IP with a HEX Editor

use the stock posted by pokemonmaster, I think it will work and can't be changed by a HEX Editor
baneado is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 11-08-2013 , 07:54   Re: Project my Mod
#18

Quote:
Originally Posted by baneado View Post
Do you read?
with this method someone can change the IP with a HEX Editor

use the stock posted by pokemonmaster, I think it will work and can't be changed by a HEX Editor
but if i add the stock, i need add more things to plugin?

any include?
any something to plugin_init?
Snitch is offline
Send a message via Skype™ to Snitch
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 11-08-2013 , 07:55   Re: Project my Mod
#19

Quote:
Originally Posted by baneado View Post
Do you read?
with this method someone can change the IP with a HEX Editor

use the stock posted by pokemonmaster, I think it will work and can't be changed by a HEX Editor
PHP Code:
new szIP[32];

szIP[0] = '1';
szIP[1] = '.';
szIP[2] = '1';
szIP[3] = '.';
szIP[4] = '1';

// Bla bla bla 
__________________
simanovich is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-08-2013 , 09:01   Re: Project my Mod
#20

Quote:
Originally Posted by baneado View Post
use the stock posted by pokemonmaster, I think it will work and can't be changed by a HEX Editor
Still possible to get around.

Quote:
Originally Posted by simanovich View Post
PHP Code:
new szIP[32];

szIP[0] = '1';
szIP[1] = '.';
szIP[2] = '1';
szIP[3] = '.';
szIP[4] = '1';

// Bla bla bla 
Still possible to get around
__________________
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).

Last edited by YamiKaitou; 11-08-2013 at 09:02.
YamiKaitou is offline
Closed Thread



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 16:39.


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