Add client_speak

This commit is contained in:
OciXCrom 2021-03-25 23:14:50 +01:00
parent 9fbf91ded0
commit 016b767222

View File

@ -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)
}