Last active
May 17, 2020 04:09
-
-
Save shanapu/b5c39fb0b7b288cb85b3bb87a4a415de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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