• Lua code ConCommand play sound help!
    1 replies, posted
well I'm trying to do this... concommand.Add( "play90s", function( ply, cmd, args, str ) print( ply:Nick(), cmd ) PrintTable( args ) then sound.PlayFile( "addons\taunts\90s.wav", "", function( station ) if ( IsValid( station ) ) then station:Play() end end ) but it seams not to work... I want to make play90s play a taunt from my taunt folder by me typing play90s in console.. [highlight](User was banned for this post ("Wrong section" - Novangel))[/highlight]
Hi! Welcome to facepunch. The programming section is specifically for non-gmod programming. You're looking for the [url=https://facepunch.com/forumdisplay.php?f=65]developer discussion subforum [/url] Also, if you want to post code, you should use [noparse][code][/code][/noparse] tags, like this: [Code] var x = 2; [/code] Please make sure to read the sticky at the top of every forum before you post! And search to make sure your question hasn't already been asked! Good luck and God speed, friend
Sorry, you need to Log In to post a reply to this thread.