04.07.2013, 10:35
From what you've said, you want to show the Player ID in front of the Name when he uses the chat, like this:
If that's what you want, then just use this:
Quote:
(ID:0) MyName: hi all! |
pawn Код:
public OnPlayerText(playerid, text[])
{
new ReturnS[148], HisNameIs[MAX_PLAYER_NAME];
GetPlayerName(playerid, HisNameIs, MAX_PLAYER_NAME);
format(ReturnS, 148, "(ID:%d) %s: %s", playerid, HisNameIs, text);
SendClientMessageToAll(-1, ReturnS);
return 0;
}
// Not Tested, but it should work...