07.07.2010, 19:18
Quote:
|
How do i add a command that players can use in game like /irc blablablah.?
That will be broadcasted to in game admins and to the irc client.(outside game) Its the only thing i miss in this FS. Besides that its great ![]() |
{
new tmp[256];
new msg[256];
new msg2[256];
tmp = strrest(cmdtext,idx);
if (!strlen(tmp)) return SendClientMessage(playerid,red,"Usage: /irc [Message].");
format(msg,sizeof(msg),"7,1[GAME]: %s (%i): %s", PlayerName(playerid),playerid,tmp);
format(msg2,sizeof(msg2),"[TO IRC]: %s: %s",PlayerName(playerid),tmp);
IRC_GroupSay(IRC_Group, EchoChan, msg);
return SendClientMessage(playerid,orange,msg2);
}
i think that will do it



