Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: Nihongo^ on Dec 22, 2018, 01:56 PM

Title: userlevels on irc
Post by: Nihongo^ on Dec 22, 2018, 01:56 PM
Hi i am using echo.multi.userlevels (http://files.thijn.ovh/download/1d0258f8235437b01af1f188f78882e7/echo.multi.userlevels.nut) 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);
 }
Title: Re: userlevels on irc
Post by: DizzasTeR on Dec 23, 2018, 06:36 AM
local level = FindLevel( nick, true );
Title: Re: userlevels on irc
Post by: Nihongo^ on Dec 23, 2018, 07:52 AM
Got it thanks doom Solved