SA-MP Forums Archive
Text id player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Text id player (/showthread.php?tid=485815)



Text id player - XxXBr0nXxX - 05.01.2014

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


Re: Text id player - Patrick - 05.01.2014

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.
}



Re: Text id player - XxXBr0nXxX - 05.01.2014

thanks you