mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-26 05:38:04 +03:00
Add client_speak
This commit is contained in:
parent
9fbf91ded0
commit
016b767222
@ -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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user