i had forgot that nominations need to respect cooldown too when low pop
This commit is contained in:
parent
c1371b3241
commit
c012ab6581
@ -426,7 +426,7 @@ public Action Command_Addmap(int client, int args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int Cooldown = GetMapCooldownTime(mapname);
|
int Cooldown = GetMapCooldownTime(mapname);
|
||||||
if(RestrictionsActive && Cooldown > GetTime())
|
if(Cooldown > GetTime())
|
||||||
{
|
{
|
||||||
int Seconds = Cooldown - GetTime();
|
int Seconds = Cooldown - GetTime();
|
||||||
CPrintToChat(client, "[NE] %t", "Map Cooldown Time Error", Seconds / 3600, (Seconds % 3600) / 60);
|
CPrintToChat(client, "[NE] %t", "Map Cooldown Time Error", Seconds / 3600, (Seconds % 3600) / 60);
|
||||||
@ -702,7 +702,7 @@ public Action Command_Nominate(int client, int args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int Cooldown = GetMapCooldownTime(mapname);
|
int Cooldown = GetMapCooldownTime(mapname);
|
||||||
if(RestrictionsActive && Cooldown > GetTime())
|
if(Cooldown > GetTime())
|
||||||
{
|
{
|
||||||
int Seconds = Cooldown - GetTime();
|
int Seconds = Cooldown - GetTime();
|
||||||
CPrintToChat(client, "[NE] %t", "Map Cooldown Time Error", Seconds / 3600, (Seconds % 3600) / 60);
|
CPrintToChat(client, "[NE] %t", "Map Cooldown Time Error", Seconds / 3600, (Seconds % 3600) / 60);
|
||||||
@ -1323,7 +1323,7 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p
|
|||||||
}
|
}
|
||||||
|
|
||||||
int Cooldown = GetMapCooldownTime(map);
|
int Cooldown = GetMapCooldownTime(map);
|
||||||
if(RestrictionsActive && Cooldown > GetTime())
|
if(Cooldown > GetTime())
|
||||||
{
|
{
|
||||||
int Seconds = Cooldown - GetTime();
|
int Seconds = Cooldown - GetTime();
|
||||||
char time[16];
|
char time[16];
|
||||||
|
Loading…
Reference in New Issue
Block a user