19.06.2011, 12:07
@ ^'s code
*fixed, it had an odd string length.
pawn Код:
public OnPlayerText( playerid, text[] )
{
new string[ 128 ];
format( string ,sizeof( string ),"%s ( %d ) : %s",GetPlayerNameEx( playerid ) ,playerid ,text );
SendClientMessageToAll( -1 , string ); // GetPlayerColor ??
return 0;
}
stock GetPlayerNameEx( playerid )
{
new pName[ 25 ];
GetPlayerName( playerid, pName, 25 );
return pName;
}