SA-MP Forums Archive
/irc command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /irc command (/showthread.php?tid=208556)



/irc command - ColdXX - 08.01.2011

Ive made an /irc command that should let the players on server send a Personal message to the IRC channel! The only problem is that it doesnt work

pawn Код:
dcmd_irc(playerid,params[])
{
    new msg[128];
    new message[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "s", message)) return SendClientMessage(playerid,red, "{FF0000}[USAGE]{FFFFFF}: {00F6F6}/irc message");
    format(msg, sizeof(msg), "4%s[%d] to IRC: 12%s.",name,playerid, message);
    CallRemoteFunction("igmessage","s",msg);
    SendClientMessage(playerid,COLOR_YELLOW,"You have sent a message to the IRC channel!");
    return 1;
}



Re: /irc command - ColdXX - 09.01.2011

Bump?