Results 1 to 4 of 4

Thread: Greeting.lua Etpro

  1. #1
    Junior Member
    Join Date
    Jan 2017
    Posts
    2

    Greeting.lua Etpro

    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:

    Code:
    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\n\"" ) 
    
    elseif lvl == 4 then
    
    et.G_globalSound( "sound/misc/admin.wav" )
    et.trap_SendServerCommand(-1,"qsay \"^wAdmin Join\n\"" ) 
    
    elseif lvl == 3 then
    
    et.G_globalSound( "/sound/misc/member.wav" )
    et.trap_SendServerCommand(-1,"qsay \"^wMember Join\n\"" ) 
    
    elseif lvl == 2 then
    
    et.G_globalSound( "/sound/misc/user.wav" )
    et.trap_SendServerCommand(-1,"qsay \"^wUser Join\n\"" ) 
    
    elseif lvl == 1 then
    
    et.G_globalSound( "/sound/misc/user.wav" )
    et.trap_SendServerCommand(-1,"qsay \"^wUser Join\n\"" ) 
    
    elseif lvl == 0 then
    
    et.G_globalSound( "/sound/misc/newplayer.wav" )
    et.trap_SendServerCommand(-1,"qsay \"^wNew Player\n\"" ) 
    
    --else
    --et.G_globalSound( "/sound/newplayer.wav" )
    return 1
    
    end
    
    end
    Can anyone help me to redo to run the server etpro?
    Last edited by paul997; 29th Jan 2017 at 09:56.

  2. #2
    Answering machine stealth6's Avatar
    Join Date
    Aug 2007
    Location
    Uhm... Chair?
    Posts
    3,911
    Most Recent Awards:

    Re: Greeting.lua Etpro

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

  3. #3
    Junior Member
    Join Date
    Jan 2017
    Posts
    2

    Re: Greeting.lua Etpro

    What is the path to shrubbot etpro?

    My shrubbot.cfg:
    Code:
    5 - GUID - aslan
    4 - GUID - Mystic
    4 - GUID - Mr.Dark
    3 - GUID - DeltaForce

  4. #4

    Re: Greeting.lua Etpro

    Quote Originally Posted by paul997 View Post
    What is the path to shrubbot etpro?

    My shrubbot.cfg:
    Code:
    5 - GUID - aslan
    4 - GUID - Mystic
    4 - GUID - Mr.Dark
    3 - GUID - DeltaForce
    There is no shrubbot support in ETpro

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •