#define SQL_HOST "******"
#define SQL_USER "****"
#define SQL_PASS ""
#define SQL_DB "***"
#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")
//------- The IRC Defines and what not --------
#define BOT_1_NICKNAME "Bot" //change me
#define BOT_1_REALNAME "Bot"
#define BOT_1_USERNAME "Bot"
#define BOT_2_NICKNAME "BotA" //change me
#define BOT_2_REALNAME "BotA"
#define BOT_2_USERNAME "BotA"
#define IRC_SERVER "irc.uk.mibbit.ne"
#define IRC_PORT (6667)
#define IRC_CHANNEL "#cdcnr" //change me
// Maximum number of bots in the filterscript jsut leave this as is! unless you
// want to code more bots in. it wont be needed unless you have a verry popular
// serber with 100+ Players, 2 bots should handle just fine :D
#define MAX_BOTS (2)
//meh change if you want
#define PLUGIN_VERSION "1.4.2"
#define ServerName "***************" //change me
#define SVERSION "1.1" //change me
#define SERVER_FORUMS "***************" //change me
#define LICENSE "Public" //THIS IS IMPORTANT! LEAVE AS IS!
#define BANSERV "_DATA_" //this is for anticheat itwill display "_DATA_ Has benned player blahh for blahhh"
#define REGSERV "-OpServ-" // this is for register and login comands
#define ALPHA 0 //change this to 1 if your server is in alpha mode.
He is creating an actual server based on our comments and replies, but whatever dude.
show us OnGameModeInIt. |
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