Player Chat
#1

Hello to all
This is when a player speaks I want that there's but how?

Clavier911 (1): Hello worl

Sorry for my english
Reply
#2

You want it global? If you do, I'd suggest adding this under onplayertext.

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[126], name[30];    
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s (%d): %s", name, playerid, text);
    SendClientMessageToAll(-1, string);
    return 0;
}
(+ rep if I helped)
Reply
#3

I think he wants the ID to be shown. Can you explain what you want better?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)