Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- .................................
- RSIP
- Reliable Security IP System
- .................................
- Description:
- This is a little include that uses GetServerVarAsString( "bind", .. ) to check
- if the server is on the right Host / Computer.
- License:
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
- */
- #if defined _rsip_inluded
- #endinput
- #endif
- #define _rsip_included
- #define HOST_ADDRESS \
- "***.***.*.**"
- #if defined FILTERSCRIPT
- public OnFilterScriptInit( )
- #else
- public OnGameModeInit( )
- #endif
- {
- if( !strcmp( GetServerIP( ), HOST_ADDRESS, true ) )
- {
- print( "..................................................." );
- print( "Your IP Address isn't correct:" );
- print( " - This server has been hacked or stoled." );
- print( " - Please check if the server is on the right Host." );
- print( "...................................................\n" );
- SendRconCommand( "exit" );
- }
- return ( 1 );
- }
- #if defined FILTERSCRIPT
- #if defined _ALS_OnFilterScriptInit
- #undef OnFilterScriptInit
- #else
- #define _ALS_OnFilterScriptInit
- #endif
- #define OnFilterScriptInit zcmd_OnFilterScriptInit
- forward rsip_OnFilterScriptInit();
- #else
- #if defined _ALS_OnGameModeInit
- #undef OnGameModeInit
- #else
- #define _ALS_OnGameModeInit
- #endif
- #define OnGameModeInit zcmd_OnGameModeInit
- forward rsip_OnGameModeInit();
- #endif
- static GetServerIP( )
- {
- static sIp[ 15 ];
- GetServerVarAsString( "bind", sIp, 15 );
- return ( sIp );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement