Garry's Mod

Garry's Mod

评价数不足
GMod SaySounds
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
404.000 B
2015 年 1 月 10 日 下午 4:50
2022 年 7 月 5 日 下午 11:32
8 项改动说明 ( 查看 )

订阅以下载
GMod SaySounds

在 Dr. Kinky Kinkles 的 1 个合集中
Dr. Kinky Kinkles GMod Server
39 件物品
描述
Overview
GMod SaySounds is a simple addon that allows you to play sound files across an entire server by typing in the chat.

For example, by typing "hello" in chat, every person on the server will hear hello.mp3 play.

Requirements
The sounds you want to play must be in .mp3 format and located at:

...steamapps\common\GarrysMod\garrysmod\sound\saysound\*.mp3

Every person in the server must have the same sounds in the same folder.

Sounds
To make things easy, I have uploaded an example pack of 1500+ sounds which you can download here:

PartyVan Sound Pack

Source
Here is the source code in case you wish to modify it.

local function onSay(sender, text, isTeamChat) BroadcastLua( 'sound.PlayFile("sound/saysound/' .. text .. '.mp3", "", function(station, errCode, errStr) end)' ) end hook.Add( "PlayerSay", "SaySounds", onSay)
4 条留言
Licuatronix 6 月 16 日 上午 8:05 
Fot somre reason this mode doesn't work for me, and i have my sounds in the right folder
Kerk 2023 年 10 月 22 日 下午 7:35 
I just want the normal hl2 characters to talk
Reidor 2023 年 5 月 15 日 上午 11:52 
LOL
ClankerSpanker98 2023 年 1 月 7 日 上午 11:33 
i thought it said GaySounds