Hello!
I have a server etpro. I would like to make add greeting text + sound
Mod etpro 3.2.6 - kmod 1.5
Lua script:
function et_ClientBegin( clientNum )
lvl = et.G_shrubbot_level( clientNum )
if lvl == 5 then
-- announce
et.G_globalSound( "/sound/misc/headadmin.wav" )
et.trap_SendServerCommand(-1,"qsay \"^wHead Admin Join
\"" )
elseif lvl == 4 then
et.G_globalSound( "sound/misc/admin.wav" )
et.trap_SendServerCommand(-1,"qsay \"^wAdmin Join
\"" )
elseif lvl == 3 then
et.G_globalSound( "/sound/misc/member.wav" )
et.trap_SendServerCommand(-1,"qsay \"^wMember Join
\"" )
elseif lvl == 2 then
et.G_globalSound( "/sound/misc/user.wav" )
et.trap_SendServerCommand(-1,"qsay \"^wUser Join
\"" )
elseif lvl == 1 then
et.G_globalSound( "/sound/misc/user.wav" )
et.trap_SendServerCommand(-1,"qsay \"^wUser Join
\"" )
elseif lvl == 0 then
et.G_globalSound( "/sound/misc/newplayer.wav" )
et.trap_SendServerCommand(-1,"qsay \"^wNew Player
\"" )
--else
--et.G_globalSound( "/sound/newplayer.wav" )
return 1
end
end
Can anyone help me to redo to run the server etpro?