• I hate google. Plus A lua problem I cant google myself
    1 replies, posted
Hi, well. I got a friend who has an error where on prophunt when a new round starts, it stops all sounds. This breaks a live radio meaning you have to turn it off and on again. I made a lua code to...well, turn it off and on for everyone: [CODE] for k, ply in pairs( player.GetAll() ) do ply:ConCommand( "hive_tune" ) ply:ConCommand( "hive_tune" ) end [/CODE] Dont judge its crudeness thnx <3 Ok, but I need it to start at a new round. Is there anywhere I can put the lua to do that. Also, extra complication. Its a custom prophunt, the files are open source here: [url]https://hive365.co.uk/downloads/2[/url] Thnx
[lua] hook.Add("PostCleanupMap","RestartMusic",function() for k, ply in pairs( player.GetAll() ) do ply:ConCommand( "hive_tune" ) ply:ConCommand( "hive_tune" ) end end) [/lua] This might work
Sorry, you need to Log In to post a reply to this thread.