17.02.2014, 14:01
I am using it as Filterscript so here is the code:
Credits: Flake
PHP код:
mysql_debug(1);
mysql_connect( SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
print("\n_____________________________");
print("| Flakes Admin |");
print("| The script will start loading |");
print("| Loading |");
if( mysql_ping() == 1 ) print("|_MySQL:_Connected!______ __|");
else print("|_MySQL:_Failed_to_connect__|");
gBotID[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
// Set the connect delay for the first bot to 20 seconds
IRC_SetIntData(gBotID[0], E_IRC_CONNECT_DELAY, 20);
// Connect the second bot
gBotID[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_2_NICKNAME, BOT_2_REALNAME, BOT_2_USERNAME);
// Set the connect delay for the second bot to 30 seconds
IRC_SetIntData(gBotID[1], E_IRC_CONNECT_DELAY, 30);
// Create a group (the bots will be added to it upon connect)
// Set the gamemode text
gGroupID = IRC_CreateGroup();
SetTimer("msgTDswitcher", 250000, true);
msgTD = TextDrawCreate(224.000000,437.000000,"CHANE THIS IF YOU WANT"); //:D
TextDrawAlignment(msgTD,0);
TextDrawBackgroundColor(msgTD,0x000000ff);
TextDrawFont(msgTD,1);
TextDrawLetterSize(msgTD,0.299999,1.100000);
TextDrawColor(msgTD,0xffffffff);
TextDrawSetOutline(msgTD,1);
TextDrawSetProportional(msgTD,1);
TextDrawSetShadow(msgTD,1);
new
iTimeHour,
iTimeMinute,
iTimeSecond,
iDateYear,
iDateMonth,
iDateDay;
gettime(iTimeHour, iTimeMinute, iTimeSecond);
getdate(iDateYear, iDateMonth, iDateDay);
print("----------------------------------");
print("Running Flakes Admin Script for Sanandreas Multiplayer v0.3. Est. 1st of June 12");
printf("Version: %d.", SVERSION);
printf("Build: %d.",SVERSION);
printf("License: %s.",LICENSE);
printf("Time: %d:%d.%d Date: %d/%d/%d.",iTimeHour, iTimeMinute, iTimeSecond, iDateDay, iDateMonth, iDateYear);
print("Copyright © Flake");
print("Flakes Admin is a unique server offering many features");
print("and multiplayer aspects to Grand Theft Auto: Sanandreas. Flakes admin script is");
print("the next genereation of SA:MP gaming! Visit www.sa-mp.com for more details.");
print("Note: This script cannot be decompiled.");
print("----------------------------------");
#if ALPHA == 1
format(str, 128, "SERVER IN ALPHA MAY E BUGGY");
#else
#if ALPHA == 0
#else
format(str, 128, "hostname Server Name here"); //CHANGE THIS IF YOU WANT YOUR SERVER NAME TO CHANGE!
#endif
#endif