Chat bug
#2

Don't return 1 on OnPlayerText. Return 0 to get rid of the normal SA:MP chat.
pawn Код:
public OnPlayerText(playerid, text[])
{
    new pname[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(str, sizeof(str), "%s says: %s", pname, text);
    return 0;
}
You also need to look up a ProxDetector function so it sends the message to only those who are near.
Reply


Messages In This Thread
Chat bug - by calzo2011 - 08.04.2012, 20:58
Re: Chat bug - by ReneG - 08.04.2012, 21:02
Re: Chat bug - by calzo2011 - 08.04.2012, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)