Skip to content

Commit

Permalink
feat: map start & end events
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Jul 24, 2019
1 parent d708df6 commit bc291dd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions client/Source-Chat-Relay.sp
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,24 @@ public void HandlePackets(const char[] sBuffer, int iSize)
base.Close();
}

public void OnMapStart()
{
char sMap[64];

GetCurrentMap(sMap, sizeof sMap);

EventMessage("Map Start", sMap).Dispatch();
}

public void OnMapEnd()
{
char sMap[64];

GetCurrentMap(sMap, sizeof sMap);

EventMessage("Map Ended", sMap).Dispatch();
}

public void OnClientSayCommand_Post(int client, const char[] command, const char[] sArgs)
{
if (!Client_IsValid(client))
Expand Down

0 comments on commit bc291dd

Please sign in to comment.