[Help] Chat name no [ID]
#3

I believe you want something like this:-

pawn Код:
public OnPlayerText(playerid, text[])
{
    new szChatString[ 150 ];
    format( szChatString, sizeof( szChatString ), "(%d) %s: %s", playerid, PlayerName( playerid ), text );
    SendClientMessageToAll( GetPlayerColor( playerid ), szChatString );
    return 0;
}

stock PlayerName( playerid )
{
     new pName[ MAX_PLAYER_NAME ];
     GetPlayerName( playerid, pName, sizeof( pName ) );
     return pName;
}
Hope this helps?

Regards,
FalconX
Reply


Messages In This Thread
[Help] Chat name no [ID] - by kbalor - 26.06.2012, 19:30
Re: [Help] Chat name no [ID] - by newbienoob - 26.06.2012, 19:35
Re: [Help] Chat name no [ID] - by FalconX - 26.06.2012, 19:40
Re: [Help] Chat name no [ID] - by kbalor - 26.06.2012, 19:44
Re: [Help] Chat name no [ID] - by ViniBorn - 26.06.2012, 19:45
Re: [Help] Chat name no [ID] - by kbalor - 26.06.2012, 19:48
Re: [Help] Chat name no [ID] - by ViniBorn - 26.06.2012, 19:51
Re: [Help] Chat name no [ID] - by [A]ndrei - 26.06.2012, 20:02

Forum Jump:


Users browsing this thread: 2 Guest(s)