public OS_FFA() { ServerTittle(GSCFunctions.GetDvar("mapname"), "Old School FFA"); if (GSCFunctions.GetDvar("g_gametype") != "dm") { GSCFunctions.SetDvar("g_gametype", "dm"); Utilities.ExecuteCommand("map_restart"); return; } GSCFunctions.MakeDvarServerInfo("didyouknow", "^2Old School FFA script by LastDemon99"); GSCFunctions.MakeDvarServerInfo("g_motd", "^2Old School FFA script by LastDemon99"); GSCFunctions.MakeDvarServerInfo("motd", "^2Old School FFA script by LastDemon99"); LoadTargetZones(); SpawnItems(); PreCachePerksHud(); PlayerConnected += new Action <Entity>((player) => { ServerWelcomeTittle(player, "Old School FFA", new float[] { 0, 0, 1 }); player.SetClientDvar("ui_mapname", "Old School FFA"); player.SetClientDvar("ui_gametype", "Old School FFA"); UsablesHud(player); UseItem(player); OnSpawnPlayer(player); }); }
public void SetServerDvars() { GSCFunctions.MakeDvarServerInfo("didyouknow", (Parameter)"This server is protected by United iSnipe ^3Community."); GSCFunctions.MakeDvarServerInfo("g_motd", (Parameter)"This server is protected by United iSnipe ^3Community."); GSCFunctions.MakeDvarServerInfo("motd", (Parameter)"This server is protected by United iSnipe ^3Community."); GSCFunctions.SetDvar("sv_network_fps", 200); GSCFunctions.SetDvar("sv_hugeSnapshotSize", 10000); GSCFunctions.SetDvar("sv_hugeSnapshotDelay", 100); GSCFunctions.SetDvar("sv_pingDegradation", 0); GSCFunctions.SetDvar("sv_pingDegradationLimit", 9999); GSCFunctions.SetDvar("sv_acceptableRateThrottle", 9999); GSCFunctions.SetDvar("sv_newRateThrottling", 2); GSCFunctions.SetDvar("sv_minPingClamp", 50); GSCFunctions.SetDvar("sv_cumulThinkTime", 1000); GSCFunctions.SetDvar("sys_lockThreads", "all"); }