Jump to content

Recommended Posts

Posted

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
**********
 

 

Posted

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

Posted (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 by redeyeal
Posted

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).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...