IRC help
#4

thats an example it should work

pawn Код:
public IRC_OnUserSay(botid, recipient[], user[], host[], message[]) // gets called when a user types any message in irc
{
    if(recipient[0] != '#') return 1; // if the recipient wasn't a private message, it won't send ingame
    if(!IRC_IsVoice(botid, recipient, user)) return 1; // don't send to ingame if the user doesn't have voice!
   
    new msg[128];
    format(msg, sizeof(msg), "*** %s on IRC: %s", user, params);
    SendClientMessageToAll(0x0000FFFF, msg); // Sending the message ingame
    return 1;
}
Reply


Messages In This Thread
IRC help - by Chiao - 08.09.2013, 12:12
Re: IRC help - by Kirollos - 08.09.2013, 12:14
Re: IRC help - by Chiao - 08.09.2013, 12:17
Re: IRC help - by Kirollos - 08.09.2013, 12:24
Re: IRC help - by Chiao - 08.09.2013, 12:36
Re: IRC help - by Kirollos - 08.09.2013, 12:47
Re: IRC help - by Chiao - 08.09.2013, 12:56
Re: IRC help - by Kirollos - 08.09.2013, 13:08
Re: IRC help - by Chiao - 08.09.2013, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)