redeyeal Posted January 10 Report Posted January 10 I am trying to figure out how to set up the Greeting Wave sound for New Player on entry to a game sever that I am running! I believe that it is in the Levels.db file? This is want i have defined but it will not work. level = 0 name = Guest flags = time listplayers records help gibme admintest news uptime about gtext = ^?Welcome ^7[n] ^9to the ^?Server! gsound = \nitmod\sound\world\player.wav ********** Quote
b00n Posted January 11 Report Posted January 11 try ********** level = 0 name = Guest flags = time records help gibme admintest spec999 news uptime about stats resetmyxp gtext = Welcome to ^4guest^7: [n] ! gsound = ********** in the levels.db Quote
redeyeal Posted January 13 Author Report Posted January 13 (edited) did not get the results that i am looking for. I get the welcome message but it did not not play the New Player wave. to Welcome the new player. gtext = ^?Welcome ^7[n] ^9to the ^?Server! Edited January 13 by redeyeal Quote
Flo Posted January 13 Report Posted January 13 Hello, I see this gsound parameter as well on our server config (but it's empty), however I don't find this value used anywhere in the connection code, only reading levels and names as far as I see. To play sound, maybe just don't rely on shrubbot like you try, but call it directly yourself. Just add something like that near the welcome message print on the connect.lua part: et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound \"sound/world/player.wav\";") You can also play it only for a given player by specifying slot, e.g for player connecting on slot 5: et.trap_SendConsoleCommand(et.EXEC_APPEND, "playsound 5 \"sound/world/player.wav\";") Care about relative links. Also check server logs for any error reading the file (check path, permissions). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.