User:Phenomenon

From WolfWiki
Jump to navigation Jump to search

personal profile

personal bla bla later ...

lua script - playsoundcmd.lua

Description
This script adds new console commands "playsound" and "playsound_env" to the server. The difference to the already existing [playsound.lua} is this one can play a sound only for a certain player and/or also for players in the proximity of this player.
Requirements
Installation
  • Add the following command to your server.cfg
set lua_modules "playsoundcmd.lua"
  • Restart your server
Usage
playsound [sound] will play sound for all clients
playsound [name/slot#] [sound] will play sound for that client only
playsound_env [name/slot#] [sound] will play sound for that client and surrounding players only