userlevels on irc

Started by Nihongo^, Dec 22, 2018, 01:56 PM

Previous topic - Next topic

Nihongo^

Hi i am using echo.multi.userlevels and trying to add acmds level function but unable to add it due to lack of knowledge my question is how do i use "FindLevel" function on irc in order to get acmds
like ~ = level 5
      @= level 4
      %= level2

kindly download the file by clicking on it hope you get it

function StaffCommands( nick, cmd, text )
{

if ( ( cmd == "acmds" ) || ( cmd == "admincmds" ) )
    {
    if ( level < 3 ) Staff( "You have to be a admin to use this command." );
         else
    {
    if ( level == 3 ) Staff(  "!getip, !ac !ogetip !ann, !mute, !unmute, !kick, !slap." );
            if ( level == 4 ) Staff( "banlist ac ogetip !oipnick !getip, !ann, !mute, !unmute, !kick, !freeze, !unfreeze, !ban, !unban, !drown, ." );
            if ( level == 5 ) Staff( "blah blah" );
            if ( level == 6 ) Staff(  blah);
 }

DizzasTeR

local level = FindLevel( nick, true );

Nihongo^

Got it thanks doom Solved