RestartManager: small update

This commit is contained in:
dogan 2020-09-15 22:59:26 +02:00
parent 4149771beb
commit 95d3a1a9d5

View File

@ -62,6 +62,15 @@ public void OnConfigsExecuted()
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------
public Action Command_ForceRestart(int client, int args) public Action Command_ForceRestart(int client, int args)
{ {
if(client == 0)
{
char sMap[64];
GetCurrentMap(sMap, sizeof(sMap));
PrepareRestart(sMap, client, true);
return Plugin_Handled;
}
ReplyToCommand(client, "[SM] Confirm the force-restart please!"); ReplyToCommand(client, "[SM] Confirm the force-restart please!");
OpenAdminPanel(client); OpenAdminPanel(client);