Text in RP mode
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    format(string, sizeof(string), "%s says: %s", GetName(playerid, true), text);
    ProxDetector(20.0, playerid, string, 0xE6E6E6E6, 0xC8C8C8C8, 0xAAAAAAAA, 0x8C8C8C8C, 0x6E6E6E6E);
    new dd3, mm3, yy3, h3, m3, s3, chatlog[128];
    getdate(dd3, mm3, yy3);
    gettime(h3, m3, s3);
    format(chatlog, sizeof(chatlog), "[%d/%d/%d] [%d:%d:%d] %s says: %s", dd3, mm3, yy3, h3, m3, s3, GetName(playerid, false), text);
    ChatLog(chatlog);
    return 1;
}
When you type something I want it to be visible for players that only next to you (like in RP) and it doesn't work, it does the proxdetector writing but it writes in the global chat as well. help please.
Reply
#2

return 0; instead of return 1;
callback::OnPlayerText
Quote:

Returning 0 in this callback will stop the text from being sent

Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)