Text id player
#1

Hi..
I would like to know how you put the id close the chat when one writes
es: br0nx (0): text
Reply
#2

Here you go!

pawn Код:
public OnPlayerText(playerid, text[])
{
    new _string[ 145 ], GetName[ MAX_PLAYER_NAME ];
    GetPlayerName( playerid, GetName, MAX_PLAYER_NAME );
    format( _string, sizeof( _string ), "%s(%i): %s", GetName, playerid, text );
    return false; //false to avoid sending double text messages.
}
Reply
#3

thanks you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)