Skip to content

Commit

Permalink
1.8 baybe
Browse files Browse the repository at this point in the history
sum ting wong?
  • Loading branch information
qawery-just-sad committed Sep 6, 2020
1 parent b45bc45 commit 3b8f050
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
3 changes: 1 addition & 2 deletions addons/sourcemod/scripting/mapchooser.sp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Plugin myinfo =
name = "SurfTimer MapChooser",
author = "AlliedModders LLC & SurfTimer Contributors",
description = "Automated Map Voting",
version = "1.6",
version = "1.8",
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
};

Expand Down Expand Up @@ -1265,7 +1265,6 @@ public void db_setupDatabase()
SetFailState("[Mapchooser] Invalid database type");
return;
}
return;
}

public void SelectMapList()
Expand Down
3 changes: 2 additions & 1 deletion addons/sourcemod/scripting/nominations.sp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Plugin myinfo =
name = "SurfTimer Nominations",
author = "AlliedModders LLC & SurfTimer Contributors",
description = "Provides Map Nominations",
version = "1.6",
version = "1.8",
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
};

Expand Down Expand Up @@ -539,6 +539,7 @@ public void db_setupDatabase()
if (!StrEqual(szIdent, "mysql", false))
{
SetFailState("[Nominations] Invalid database type");
return;
}
}

Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/rockthevote.sp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Plugin myinfo =
name = "SurfTimer Rock The Vote",
author = "AlliedModders LLC & SurfTimer Contributors",
description = "Provides RTV Map Voting",
version = "1.6",
version = "1.8",
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
};

Expand Down
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/voteextend.sp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Plugin myinfo =
name = "SurfTimer Vote Extend",
author = "SurfTimer Contributors",
description = "Allows players to vote extend the map",
version = "1.6",
version = "1.8",
url = "https://github.com/qawery-just-sad/surftimer-mapchooser"
};

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

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

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

AddMenuItem(voteExtend, "", "Yes");
Expand Down
6 changes: 6 additions & 0 deletions addons/sourcemod/translations/voteextend.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
"#format" "{1:s},{2:s}"
"en" "{1} Vote to Extend started by {2}"
}

"Vote Menu"
{
"#format" "{1:s}"
"en" "Extend map for {1} minutes?"
}

"Vote Success"
{
Expand Down

0 comments on commit 3b8f050

Please sign in to comment.