Greeting.lua Etpro


(paul997) #1

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?


(stealth6) #2

I think getting the adminlevel through “et.G_shrubbot_level( clientNum )” is only possible in some mods like NQ & Nitmod.


(paul997) #3

What is the path to shrubbot etpro?

My shrubbot.cfg:


5 - GUID - aslan
4 - GUID - Mystic
4 - GUID - Mr.Dark
3 - GUID - DeltaForce


(kyle26189) #4

[QUOTE=paul997;561367]What is the path to shrubbot etpro?

My shrubbot.cfg:


5 - GUID - aslan
4 - GUID - Mystic
4 - GUID - Mr.Dark
3 - GUID - DeltaForce

[/QUOTE]

There is no shrubbot support in ETpro