forked from UNLOZE/sm-plugins
re-using the function xen made for comperator. differentiating between leader and admin nom a bit more clearly
This commit is contained in:
@@ -982,7 +982,11 @@ bool PopulateNominateListMenu(Menu menu, int client, const char[] filter = "")
|
||||
int nominate_count_for_particular_map = 0;
|
||||
sm.GetValue(map, nominate_count_for_particular_map);
|
||||
//if its console its admin nomination. if its g_iMapleaderWhoNominatedMap it was map nominated by leader, also has to be correct map out of 3.
|
||||
if(!owner || (owner == g_iMapleaderWhoNominatedMap && StrEqual(map, g_cMapLeaderNominatedMap)))
|
||||
if (!owner)
|
||||
{
|
||||
nominate_count_for_particular_map = 1999;
|
||||
}
|
||||
else if(owner == g_iMapleaderWhoNominatedMap && StrEqual(map, g_cMapLeaderNominatedMap))
|
||||
{
|
||||
nominate_count_for_particular_map = 999;
|
||||
}
|
||||
@@ -1213,7 +1217,7 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p
|
||||
//2023 November edit: one map nominated by mapleader will automatically go to the vote.
|
||||
if (param1 == mapLeader && StrEqual(g_cMapLeaderNominatedMap, ""))
|
||||
{
|
||||
CPrintToChatAll("{darkorange}[UNLOZE Nominations] {white}The map leader {lightgreen}%N {white}has nominated the map {red}%s{white}. The map will be in the next mapvote.", param1, map);
|
||||
CPrintToChatAll("{darkorange}[UNLOZE Nominations] {white}The map leader {lightgreen}%N {white}has nominated the map {red}%s{white}. The map will be in the mapvote.", param1, map);
|
||||
CPrintToChatAll("{lightblue}If the map is nextmap and the leader wont play it he will be removed from leader access.");
|
||||
Format(g_cMapLeaderNominatedMap, sizeof(g_cMapLeaderNominatedMap), map);
|
||||
g_iMapleaderWhoNominatedMap = param1;
|
||||
|
||||
Reference in New Issue
Block a user