From 016b767222e4007f36d4f3c69e22731b409dbb5a Mon Sep 17 00:00:00 2001 From: OciXCrom Date: Thu, 25 Mar 2021 23:14:50 +0100 Subject: [PATCH 1/2] Add client_speak --- plugins/include/amxmisc.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index 2510afe9b4..c8b5869047 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -893,3 +893,15 @@ stock get_playersnum_ex(GetPlayersFlags:flags = GetPlayers_None, const team[] = get_players_ex(_, PlayersNum, flags, team); return PlayersNum; } + +/** + * Plays a sound to a client. + * + * @param id Client index or 0 to play to all clients + * + * @return Length of formatted message + */ +stock client_speak(id, const message[]) +{ + return client_cmd(id, "spk ^"%s^"", message) +} \ No newline at end of file From 31841617678b8d028c681b2d172d2c1b4ee0359e Mon Sep 17 00:00:00 2001 From: OciXCrom Date: Thu, 25 Mar 2021 23:16:11 +0100 Subject: [PATCH 2/2] Add newline --- plugins/include/amxmisc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index c8b5869047..056d1af147 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -904,4 +904,4 @@ stock get_playersnum_ex(GetPlayersFlags:flags = GetPlayers_None, const team[] = stock client_speak(id, const message[]) { return client_cmd(id, "spk ^"%s^"", message) -} \ No newline at end of file +}