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_rr, ADMFLAG_GENERIC);
}
public Action:Command_rr(client, args)
{
ServerCommand ("mp_restartgame 2");
}