Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SoundManager = {
- soundId = 0;
- volume = 0;
- }
- function SoundManager:new(soundId, volume)
- mt = {
- soundId = soundId,
- volume = volume,
- }
- return setmetatable(mt, { __index = self })
- end
- function SoundManager:convertToString()
- local str = self.soundId..";"..self.volume
- return str
- end
- function SoundManager:sendSound(cid)
- player = Player(cid)
- player:sendExtendedOpcode(TFS_ENUM.OPCODE.SOUNG_MANAGE, self:convertToString())
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement