From 016b767222e4007f36d4f3c69e22731b409dbb5a Mon Sep 17 00:00:00 2001 From: OciXCrom Date: Thu, 25 Mar 2021 23:14:50 +0100 Subject: [PATCH] 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 2510afe9..c8b58690 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