IRC Operator check?
#1

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

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
Reply
#3

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?
Reply
#4

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;
}
Reply
#5

And how will a player ingame execute that function ?
Reply
#6

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.
Reply
#7

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

Think some more before you post, etc.
Reply
#9

Enlight me
Reply
#10

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) ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)