Commit 26647a20 authored by Neoony's avatar Neoony
Browse files

v0.1 WIP1.1

Downgraded SM version for compile on git
+ Clean up
parent 7121258a
Pipeline #3184 passed with stages
in 1 minute and 56 seconds
......@@ -20,7 +20,7 @@
#include <sdkhooks>
//#include <emputils>
#define PluginVer "v0.1 WIP1"
#define PluginVer "v0.1 WIP1.1"
public Plugin myinfo =
{
......@@ -45,7 +45,6 @@ public Plugin myinfo =
VoteInfo[3];
//ConVars
//l_lobbyenabled, l_connecttimer
ConVar l_minplayers, l_votetimer, l_threshold, l_restrictvote;
int PlayersNumber;
......@@ -93,7 +92,6 @@ public void OnPluginStart()
l_minplayers = CreateConVar("l_minplayers", "8", "How many players required to start a vote about joining another server. (Players who selected a team)");
l_votetimer = CreateConVar("l_votetimer", "15", "How long to keep the vote for (Seconds)");
l_threshold = CreateConVar("l_threshold", "50", "Percantage needed for successful vote (Percentage, max 100)");
//l_connecttimer = CreateConVar("l_connecttimer", "30", "How long to display the connect dialog for (Seconds)");
l_restrictvote = CreateConVar("l_restrictvote", "30", "For how long to restrict the vote starting, after a vote happened (Seconds)");
if (LibraryExists("updater"))
......@@ -385,11 +383,6 @@ public void InfoOfServer(Handle hDriver, Handle hResult, const char[] sError, in
}
}
//public NameOfServer2(Handle hDriver, Handle hResult, const char[] sError, float iData)
//{
//
//}
public Action PlayerCountChk(Handle timer)
{
PlayersNumber = GetTeamClientCount(2) + GetTeamClientCount(3);
......@@ -520,37 +513,6 @@ public Action VoteSuccessful(int param1)
public Action StartConnectDialog(int param1)
{
ServerCommand("lobby_redirect %s", addrx[param1]);
//PrintToChatAll("lobby_redirect %s", addrx[param1]);
/*
char serverip[256];
switch (param1)
{
case 0:
GetConVarString(l_server1, serverip, 256);
case 1:
GetConVarString(l_server2, serverip, 256);
case 2:
GetConVarString(l_server3, serverip, 256);
case 3:
GetConVarString(l_server4, serverip, 256);
case 4:
GetConVarString(l_server5, serverip, 256);
}
*/
/*
for (int client = 1; client <= MaxClients; client++)
{
PrintToChatAll("%i", client);
if (IsClientInGame(client))
{
DisplayAskConnectBox(client, GetConVarFloat(l_connecttimer), addrx[param1]);
ServerCommand("lobby_askconnect_accept");
}
}
*/
}
public Action RestrictVt(Handle timer)
......
......@@ -8,8 +8,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set -euo pipefail
cd "$DIR/.."
wget https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6353-linux.tar.gz
tar -xzvf sourcemod-1.10.0-git6353-linux.tar.gz
wget https://sm.alliedmods.net/smdrop/1.9/sourcemod-1.9.0-git6260-linux.tar.gz
tar -xzvf sourcemod-1.9.0-git6260-linux.tar.gz
cd "$DIR/.."
wget https://git.empiresmod.com/sourcemod/Updater/uploads/483e74c0bb2bbaa805d656d1b0a6b43d/Updater_1.2.3.tar.gz
......
......@@ -4,11 +4,12 @@
{
"Version"
{
"Latest" "v0.1 WIP1"
"Latest" "v0.1 WIP1.1"
}
"Notes" "First release"
"Notes" "WIP1: Updated database name"
"Notes" "WIP1.1: Downgraded SM version for compile on git."
}
"Files"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment