Beispiel #1
0
 public static function Init()
 {
     echo ">>>> Setting SAMP globals, PHP settings and timers ...\n";
     SetGameModeText('ItalyMafia RPG v3.0');
     AllowInteriorWeapons(1);
     DisableInteriorEnterExits();
     EnableStuntBonusForAll(false);
     AllowAdminTeleport(true);
     AddTimer(array('Core', 'SaveData'), 10000, 1);
     ini_set('max_execution_time', 300);
     echo ">>>> Starting logs ...\n";
     Log::Init();
     echo ">>>> Starting the keybinds manager ...\n";
     Keybinds::Init();
     echo ">>>> Starting the menus manager ...\n";
     Menu::Init();
     echo ">>>> Starting the skins manager ...\n";
     Skins::Init();
     echo ">>>> Starting the animations manager ...\n";
     Animations::Init();
     echo ">>>> Starting locations ...\n";
     Locations::Init();
     echo ">>>> Starting DB engine ...\n";
     DB::Init();
     echo ">>>> Starting houses ...\n";
     Houses::Init();
     echo ">>>> Starting factions ...\n";
     Factions::Init();
     echo ">>>> Starting players manager ...\n";
     Players::Init();
     echo ">>>> Starting vehicles manager ...\n";
     Vehicles::Init();
     echo ">>>> Starting accounts manager ...\n";
     Accounts::Init();
     echo ">>>> Starting messages manager ...\n";
     Messages::Init();
     echo ">>>> Creating the clock ...\n";
     Core::StartClock();
     echo ">>>> Starting gyms ...\n";
     Gym::Init();
     echo ">>>> Starting admins ...\n";
     Admin::Init();
 }