View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 04-12-2012 , 21:32   Re: [ANY] Easy Restart Game -By KryptoNite
Reply With Quote #3

Please to get approved follow these rules:
https://forums.alliedmods.net/showthread.php?t=57142

Version Needed.
Unnecessary command !credits, if a end user really want to know who created the plugin they will use sm plugins.
YOu are putting the files in a .ZIP when all you have to do is upload the .SP and the forum will automatically compile it.

and you will get a error, on line 17, because of indentations.

How it should look:
PHP Code:
#include <sourcemod>
#define PLUGIN_VERSION "1.0.1"
public Plugin:myinfo =
{
    
name "Easy RR",
    
author "KryptoNite [IL]",
    
description "Easy command to restart the game instead of an admin doing: sm_rcon mp_restartgame 2",
    
version PLUGIN_VERSION,
    
url ""
};

public 
OnPluginStart()
{
    
CreateConVar("sm_easy_rr_version"PLUGIN_VERSION"Easy RR"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    
RegAdminCmd ("sm_rr"Command_rrADMFLAG_GENERIC);
}
public 
Action:Command_rr(clientargs)
{
    
ServerCommand ("mp_restartgame 2");


Last edited by DarthNinja; 04-13-2012 at 15:43. Reason: Removed IP address
Mitchell is offline