small problem
#1

Hello, im making order in my irc admin commands and i have a problem with this:

pawn Код:
IRCCMD:acmds(botid, channel[], user[], host[], params[])
{
    if (IRC_IsHalfop(botid, channel, user))
    {
    IRC_Notice(gGroupID,user,"IRC ADMIN COMMANDS");
    IRC_Notice(gGroupID,user,"Admin commands: !kick - !ban - !rcon - !announce - !freeze - !unfreeze - !explode - !mute - !unmute - !ip - !a - !money - !sall - !score - !banip - !unbanip - !hparm - !hostname - !mapname - !clearchat - !drop - !last - !serverstats - !gmx - !getweps - !stats - !warn - !ping - !setvip - !setlevel");
    }
   
    if (IRC_IsOp(botid, channel, user))
    {
    IRC_Notice(gGroupID,user,"IRC ADMIN COMMANDS");
    IRC_Notice(gGroupID,user,"Admin commands: !kick - !ban - !rcon - !announce - !freeze - !unfreeze - !explode");
    }
   
    if (IRC_IsVoice(botid, channel, user))
    {
    IRC_Notice(gGroupID,user,"For players command, type !cmds");
    }
    return 1;
}
Problem:

For normal irc user it doesnt work that command, for who have halfop, op, voice, sop etc it sends all the 3 messages.

How to fix it?
Reply


Messages In This Thread
small problem - by Face9000 - 31.10.2012, 16:51
Re: small problem - by Face9000 - 31.10.2012, 20:49
Re: small problem - by Stu1 - 31.10.2012, 22:28
Re: small problem - by ReneG - 31.10.2012, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)