Skip to content

Instantly share code, notes, and snippets.

@shanapu
Last active May 17, 2020 04:09
Show Gist options
  • Save shanapu/b5c39fb0b7b288cb85b3bb87a4a415de to your computer and use it in GitHub Desktop.
Save shanapu/b5c39fb0b7b288cb85b3bb87a4a415de to your computer and use it in GitHub Desktop.
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1
#pragma newdecls required
public void OnPluginStart()
{
RegAdminCmd("sm_endround", Command_EndRound, ADMFLAG_ROOT);
}
public Action Command_EndRound(int client, int args)
{
int ent = CreateEntityByName("game_end");
AcceptEntityInput(ent, "EndGame");
return Plugin_Handled;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment