Help SendMessage TO X
#5

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:
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;
}
Reply


Messages In This Thread
Help SendMessage TO X - by lonako45 - 05.06.2012, 14:44
Re: Help SendMessage TO X - by lonako45 - 06.06.2012, 05:47
Re: Help SendMessage TO X - by Firo - 06.06.2012, 06:48
Re: Help SendMessage TO X - by lonako45 - 06.06.2012, 11:17
Re: Help SendMessage TO X - by Sandiel - 06.06.2012, 12:09
Re: Help SendMessage TO X - by lonako45 - 07.06.2012, 10:52
Re: Help SendMessage TO X - by MadeMan - 07.06.2012, 11:01
Re: Help SendMessage TO X - by lonako45 - 07.06.2012, 11:23
Re: Help SendMessage TO X - by lonako45 - 08.06.2012, 12:27
Re: Help SendMessage TO X - by lonako45 - 13.06.2012, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)