17.01.2016, 22:07
PHP код:
public OnGameModeInit()
{
new t=GetTickCount();
SetTimer("CheckGameMode",10,false);
AntiDeAMX();
if(MAX_PLAYERS!=GetMaxPlayers())
{
print("[Scripterror] MAX_PLAYERS stimmt nicht mit der in der server.cfg definierten");
print("[Scripterror] Anzahl an maximalen Spielern ueberein!");
print("[Scripterror] Serverstart wird abgebrochen!");
SendRconCommand("exit");
return 0;
}
new string[512],string_en[512];
#if defined HOSTER
format(MainHostName, sizeof MainHostName,"%s | %s",MainHostName,HOSTER);
SendRconCommand("mapname "#HOSTER);
#endif
format(string,sizeof(string),"hostname %s",MainHostName);
SendRconCommand(string);//Hostname
#if defined WEBSITE
SendRconCommand("weburl "#WEBSITE);
#endif
SetGameModeText("DM+Gangs+Minigames+Stunt [GERMAN]");
SendRconCommand("loadfs yom_buttons");
MapAndreas_Init(MAP_ANDREAS_MODE_MINIMAL);
if (!DOF_FileExists(COOKIES_PRICE_FILE))
{
DOF_CreateFile(COOKIES_PRICE_FILE);
for (new i = 0; i < MAX_COOKIES_PRICES; i++)
DOF_SetInt(COOKIES_PRICE_FILE, CookiePrices[i][cprName], CookiePrices[i][cprPrice]);
}