Extend: add chat print + no closehandle
This commit is contained in:
parent
dd698bcc73
commit
c0e0492a7b
@ -80,13 +80,13 @@ public void OnPluginStart()
|
||||
if(!(g_pGameOver = GameConfGetAddress(hGameConf, "GameOver")))
|
||||
{
|
||||
g_bGameOver = false;
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
LogError("Couldn't get GameOver address from game config! GameOver cancel disabled.");
|
||||
return;
|
||||
}
|
||||
|
||||
g_bGameOver = true;
|
||||
CloseHandle(hGameConf);
|
||||
delete hGameConf;
|
||||
}
|
||||
|
||||
public Action Command_Extend_Rounds(int client, int argc)
|
||||
@ -249,6 +249,7 @@ public Action Command_Extend(int client, int argc)
|
||||
g_cvarMpTimeLimit.IntValue -= iMinutesToDeduct;
|
||||
|
||||
LogAction(client, -1, "\"%L\" deducted \"%d\" minutes from \"mp_timelimit\"", client, iMinutesToDeduct);
|
||||
PrintToChatAll("[SM] %N deducted %d minutes from the timelimit.", client, iMinutesToDeduct);
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
@ -265,6 +266,7 @@ public Action Command_Extend(int client, int argc)
|
||||
CancelGameOver();
|
||||
|
||||
LogAction(client, -1, "\"%L\" added \"%d\" minutes to \"mp_timelimit\"", client, iMinutesToAdd);
|
||||
PrintToChatAll("[SM] %N added %d minutes to the timelimit.", client, iMinutesToAdd);
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user