Raised This Month: $51 Target: $400
 12% 

[Any] Reload Map


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Plugin ID:
1913
Plugin Version:
0.01
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A simple way to reload the current map
    Old 08-25-2010 , 22:14   [Any] Reload Map
    Reply With Quote #1

    A simple way to reload the current map. It's useful for tests generally, for example while configuring the server, installing new extensions/plugins, adding new models/materials/sounds, etc. It adds a new command, sm_reloadmap, that is available for admins with the changemap flag (g).

    Admin Commands:
    • sm_reloadmap - Reloads the current map
    Attached Files
    File Type: sp Get Plugin or Get Source (reloadmap.sp - 2458 views - 480 Bytes)
    alongub is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 08-25-2010 , 22:38   Re: [Any] Reload Map
    Reply With Quote #2

    FYI, for installing plugins/extensions they could use the sm plugins load <filename> and sm exts load filename, respectively.
    I like the plugin version, "0.01". Never seen that before

    Last edited by Afronanny; 08-25-2010 at 22:41.
    Afronanny is offline
    ilga80
    Senior Member
    Join Date: Nov 2012
    Old 03-26-2013 , 13:18   Re: [Any] Reload Map
    Reply With Quote #3

    Where is return Plugin_Handled ?
    ilga80 is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 07-12-2019 , 07:20   Re: [Any] Reload Map
    Reply With Quote #4

    - Converted plugin source to the latest syntax.
    Code:
    #pragma newdecls required
    #include <sourcemod>
    
    public Plugin myinfo = 
    {
    	name = "Reload Map",
    	author = "alongub",
    	description = "A simple way to reload the current map.",
    	version = "0.01"
    };
    
    public void OnPluginStart()
    {
    	RegAdminCmd("sm_reloadmap", Command_ReloadMap, ADMFLAG_CHANGEMAP, "Reloads the current map");
    }
    
    public Action Command_ReloadMap(int client, int args)
    {
    	char map[128]; 
    	GetCurrentMap(map, sizeof(map));
    	ForceChangeLevel(map, "sm_reloadmap Command");
    
    	return Plugin_Handled;
    }

    Last edited by BloodyBlade; 07-12-2019 at 07:23.
    BloodyBlade is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 11:03.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode