Skip to content

Commit 3b8f050

Browse files
1.8 baybe
sum ting wong?
1 parent b45bc45 commit 3b8f050

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

addons/sourcemod/scripting/mapchooser.sp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Plugin myinfo =
4646
name = "SurfTimer MapChooser",
4747
author = "AlliedModders LLC & SurfTimer Contributors",
4848
description = "Automated Map Voting",
49-
version = "1.6",
49+
version = "1.8",
5050
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
5151
};
5252

@@ -1265,7 +1265,6 @@ public void db_setupDatabase()
12651265
SetFailState("[Mapchooser] Invalid database type");
12661266
return;
12671267
}
1268-
return;
12691268
}
12701269

12711270
public void SelectMapList()

addons/sourcemod/scripting/nominations.sp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Plugin myinfo =
4343
name = "SurfTimer Nominations",
4444
author = "AlliedModders LLC & SurfTimer Contributors",
4545
description = "Provides Map Nominations",
46-
version = "1.6",
46+
version = "1.8",
4747
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
4848
};
4949

@@ -539,6 +539,7 @@ public void db_setupDatabase()
539539
if (!StrEqual(szIdent, "mysql", false))
540540
{
541541
SetFailState("[Nominations] Invalid database type");
542+
return;
542543
}
543544
}
544545

addons/sourcemod/scripting/rockthevote.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public Plugin myinfo =
4545
name = "SurfTimer Rock The Vote",
4646
author = "AlliedModders LLC & SurfTimer Contributors",
4747
description = "Provides RTV Map Voting",
48-
version = "1.6",
48+
version = "1.8",
4949
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
5050
};
5151

addons/sourcemod/scripting/voteextend.sp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public Plugin myinfo =
3434
name = "SurfTimer Vote Extend",
3535
author = "SurfTimer Contributors",
3636
description = "Allows players to vote extend the map",
37-
version = "1.6",
37+
version = "1.8",
3838
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
3939
};
4040

@@ -146,7 +146,7 @@ public void StartVoteExtend(int client)
146146
{
147147
char szPlayerName[MAX_NAME_LENGTH];
148148
GetClientName(client, szPlayerName, MAX_NAME_LENGTH);
149-
CPrintToChatAll("Vote to Extend started by %s", g_szChatPrefix, szPlayerName);
149+
CPrintToChatAll("%t", "Vote Start", g_szChatPrefix, szPlayerName);
150150

151151
g_szUsedVoteExtend[g_VoteExtends] = g_szSteamID[client]; // Add the user's steam ID to the list
152152
g_VoteExtends++; // Increment the total number of vote extends so far
@@ -158,7 +158,7 @@ public void StartVoteExtend(int client)
158158
char buffer[8];
159159
IntToString(RoundToFloor(GetConVarFloat(g_hVoteExtendTime)), buffer, sizeof(buffer));
160160

161-
Format(szMenuTitle, sizeof(szMenuTitle), "Extend map for %s minutes?", buffer);
161+
Format(szMenuTitle, sizeof(szMenuTitle), "%t", "Vote Menu", buffer);
162162
SetMenuTitle(voteExtend, szMenuTitle);
163163

164164
AddMenuItem(voteExtend, "", "Yes");

addons/sourcemod/translations/voteextend.phrases.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
"#format" "{1:s},{2:s}"
3636
"en" "{1} Vote to Extend started by {2}"
3737
}
38+
39+
"Vote Menu"
40+
{
41+
"#format" "{1:s}"
42+
"en" "Extend map for {1} minutes?"
43+
}
3844

3945
"Vote Success"
4046
{

0 commit comments

Comments
 (0)