31.10.2012, 16:51
Hello, im making order in my irc admin commands and i have a problem with this:
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?
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;
}
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?