SA-MP Forums Archive
IRC Operator check? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IRC Operator check? (/showthread.php?tid=99811)



IRC Operator check? - ДitisOnHuora - 30.09.2009

Im using IRC Plugin, and i was wondering, is there anything that checks if(IrcOperatorIsOnline) ?


Re: IRC Operator check? - dice7 - 30.09.2009

You could use this plugin
http://forum.sa-mp.com/index.php?topic=123777.0

And with IRC_OnUserJoinChannel(botid, channel[], user[], host[]) and set a 5 second timer and then check if he's an op. If yes, then make something like OnlineOps++; and if its positive, one or more ops are online. The timer is required because the callback is probably called at the point of a user connect, when the user has no mode yet.

Also, there is no possible way to loop through users


Re: IRC Operator check? - ДitisOnHuora - 30.09.2009

Im using Jacobs plugin, i wont change the plugin to toher one, cause of my huge IRC system lol. Isnt there one to Jacobs plugin?


Re: IRC Operator check? - ded - 30.09.2009

pawn Код:
ircIsOp(conn, channel[], user[])
{
    new ircLevel[4];
    ircGetUserLevel(conn, channel, user, ircLevel);
    if(!strcmp(ircLevel, "~", true, 1) || !strcmp(ircLevel, "&", true, 1) || !strcmp(ircLevel, "@", true, 1)) return 1;
    return 0;
}



Re: IRC Operator check? - dice7 - 30.09.2009

And how will a player ingame execute that function ?


Re: IRC Operator check? - ded - 30.09.2009

Who's saying he wants someone to execute it from ingame?!

Edit: Also it's quite easy to execute stuff on IRC from In-Game if you have an inbuilt IRC handler .. which I do.


Re: IRC Operator check? - dice7 - 30.09.2009

What's the point of executing it via irc, if you can see user modes -.-'


Re: IRC Operator check? - ded - 30.09.2009

Think some more before you post, etc.


Re: IRC Operator check? - dice7 - 30.09.2009

Enlight me


Re: IRC Operator check? - ДitisOnHuora - 30.09.2009

Quote:
Originally Posted by » Pawnst★r «
pawn Код:
ircIsOp(conn, channel[], user[])
{
    new ircLevel[4];
    ircGetUserLevel(conn, channel, user, ircLevel);
    if(!strcmp(ircLevel, "~", true, 1) || !strcmp(ircLevel, "&", true, 1) || !strcmp(ircLevel, "@", true, 1)) return 1;
    return 0;
}
My point is that IG you make /irc [text] and it checks is on that channel any operator, if not, then Sendclientmessage return true;

How do i do that? if(ircIsOp) ?