14.09.2011, 13:09
Hi all, I just installed incognitos irc on my server, bots are connected, but if somebody connects on channel there is no message at join or for example cmd "say" wont work. Did I forget something??!
IRCCMDay(botid, channel[], user[], host[], params[]) { // Check if the user has at least voice in the channel if (IRC_IsVoice(botid, channel, user)) { // Check if the user entered any text if (!isnull(params)) { new msg[128]; // Echo the formatted message format(msg, sizeof(msg), "02*** %s on IRC: %s", user, params); IRC_GroupSay(gGroupID, channel, msg); format(msg, sizeof(msg), "*** %s on IRC: %s", user, params); SendClientMessageToAll(0x0000FFFF, msg); } } return 1; } |
new joinMsg[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(joinMsg, sizeof(joinMsg), "02[%d] 03*** %s has joined the server!", playerid, name);
IRC_GroupSay(gGroupID, IRC_CHANNEL, joinMsg);
Try this as join message under OnPlayerConnect:
pawn Код:
|
This works and I already have that, problem is, the server dont send that msg to ingame players
|
IRCCMD:say(botid, channel[], user[], host[], params[])
{
if (IRC_IsVoice(botid, channel, user))
{
if (!isnull(params))
{
new msg[128];
format(msg, sizeof(msg), "02*** %s on IRC: %s", user, params);
IRC_GroupSay(gGroupID, channel, msg);
format(msg, sizeof(msg), "*** %s on IRC: %s", user, params);
SendClientMessageToAll(0x0000FFFF, msg);
}
}
return 1;
}
If that works - then the plugin is installed correct. Hmm try this exactly, since it's works on my server:
pawn Код:
|