RestartManager: small update
This commit is contained in:
parent
4149771beb
commit
95d3a1a9d5
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user