08.09.2013, 12:24
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;
}