06.06.2012, 12:09
No, return 0 in OnPlayerText callback means it wont send the original message (the one we see in DM servers, whre everyone can see it)
Try this:
Try this:
pawn Code:
public OnPlayerText(playerid, text[])
{
if(HelperChat[playerid] == 1)
{
format(str,sizeof(str),"[HelperChat] Helper %s[%d]: %s",GetName(playerid),playerid,text);
SendClientMessage(Player,Orange,str);
if(HelperChat[id] == 1)
{
format(str,sizeof(str),"[HelperChat] Player %s[%d]: %s",GetName(playerid),playerid,text);
SendClientMessage(Helper,Orange,str);
}
}
return 0;
}