//Install
//#define DONT_ALLOW_LOCALHOST //additional option
//#define CHECK_MAX_PLAYERS //additional option
//#define CHECK_RCON_PASSWORD //additional option
//#define CHECK_SERVER_LANGUAGE //additional option
#define FILE_SERVERIP "127.0.0.1"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //<--- YYYYMMDD 01.02.2016 (DD.MM.YYYY)
//FILE_LICENSEID - This is the expiry date of the script, if passed it will not be able to run gamemode
#define FILE_MAX_PLAYERS (500) //max players in server.cfg
#define FILE_RCONPASS "123" //rcon password
#define FILE_LANGUAGE "English" //server language
//Web ACK System
//#define ENABLE_WEB_ACK //additional option (definitions below apply to this option)
//#define SCRIPT_ACK_KEY "{BOBO_HAHA,ACCESSCONTROL,TRUE}"
//#define SCRIPT_ACK_URL "example.com/secure_adm/index.php"
//#define SCRIPT_ANTI_FLOOD (123) //change this number
//#define SCRIPT_ACK_TIME (10000) //10 second
#include <ScriptSecure>
public OnGameModeInit(){ //OR OnFilterScriptInit
AntiDeAMX();
ScriptSecureADM();
return 1;
}
//Install
//#define CHECK_MAX_PLAYERS //additional option
//#define CHECK_RCON_PASSWORD //additional option
//#define CHECK_SERVER_LANGUAGE //additional option
//Web ACK System
//#define ENABLE_WEB_ACK //additional option (definitions below apply to this option)
//#define SCRIPT_ACK_KEY "{BOBO_HAHA,ACCESSCONTROL,TRUE}"
//#define SCRIPT_ACK_URL "example.com/secure_adm/index.php"
//#define SCRIPT_ANTI_FLOOD (123) //change this number
//#define SCRIPT_ACK_TIME (10000) //10 second
Add server information to ADMServerList
public OnGameModeInit(){ //OR OnFilterScriptInit
AntiDeAMX();
ScriptSecureADM();
return 1;
}
//Install
//1. Open UltimateScriptSecure and find "User Configuration"
//2. Edit you server information.
public OnGameModeInit(){ //OR OnFilterScriptInit
if(!USS_Init()) return 0;
return 1;
}
$ANTI_FLOOD = '123'; //the same as SCRIPT_ANTI_FLOOD
$ACK_TRUE = '{BOBO_HAHA,ACCESSCONTROL,TRUE}'; //the same as SCRIPT_ACK_KEY
$ACK_FALSE = 'Fuck you thief :P'; //anything
//add IP:PORT your server, example:
127.0.0.1:7777
127.0.0.1:7778
[ADM] Info: Local server detect.
[ADM] Error: This script is stolen.
[ADM] Error: Script license has expired.
[ADM] Error: Invalid server config, check your max players.
[ADM] Error: Invalid server config, check your rcon password.
[ADM] Error: Invalid server config, check your language.
[ADM] Error: The script did not get permission to activation.
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
#define FILE_SERVERIP "127.0.0.1"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //<--- YYYYMMDD 01.02.2016 (DD.MM.YYYY)
#define FILE_MAX_PLAYERS (500) //max players in server.cfg
#define FILE_RCONPASS "123" //rcon password
#define FILE_LANGUAGE "Polish" //server language
#define FILE_SERVERIP "127.0.0.1"
#include <ScriptSecure>
pawn Код:
pawn Код:
pawn Код:
|
#if !defined FILE_SERVERIP
#error Please #define FILE_SERVERIP "127.0.0.1"
#endif
#if !defined FILE_SERVERIP
#define FILE_SERVERIP "127.0.0.1"
#endif
#define DONT_ALLOW_LOCALHOST //additional option
#define CHECK_MAX_PLAYERS //additional option
#define CHECK_RCON_PASSWORD //additional option
#define CHECK_SERVER_LANGUAGE //additional option
Could you add multiple IP's Port and stuff? I'd need it for example with my HomeServer IP, Main Server IP and TestServer IP.
Anyways, nice Include. |
#define FILE_SERVERIP "127.0.0.1"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //<--- YYYYMMDD 01.02.2016 (DD.MM.YYYY)
#define FILE_MAX_PLAYERS (500) //max players in server.cfg
#define FILE_RCONPASS "123" //rcon password
#define FILE_LANGUAGE "English" //server language
#define FILE_SERVERIP "91.196.50.114"
#define FILE_SERVERPORT (7777)
#define FILE_LICENSEID (20160201) //<--- YYYYMMDD 01.02.2016 (DD.MM.YYYY)
#define FILE_MAX_PLAYERS (500) //max players in server.cfg
#define FILE_RCONPASS "123" //rcon password
#define FILE_LANGUAGE "English" //server language
USS_OnScriptError(errorid);