23.07.2012, 05:21
Problem is the one in my gamemode script will not send the message to my IRC channel
I have this in my gang script for gang chat.
I have this in my gamemode script for IRC so I can monitor gang chat from my IRC
I have this in my gang script for gang chat.
pawn Код:
if(text[0] == '!')
{
if(!GetPlayerGang(playerid))
{
SendError(playerid,"you are not in a gang.");
return 0;
}
new string[200];
format(string,sizeof string,"[GANG CHAT]%s: %s",PlayerNameEx(playerid),text[1]);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerGang(i) == GetPlayerGang(playerid))
{
SendMessage(i,COLOR_GANG,string,150);
}
}
}
return 0;
}
return 1;
}
pawn Код:
if (text[0] == '!')
{
IRC_GroupSayEx(gGroupAdminID,IRC_CHAN2,"12[[GANG CHAT]] %s: %s",PlayerNameEx(playerid),text[1]);
return 0;
}