Player ID in front of Player Name?
#10

From what you've said, you want to show the Player ID in front of the Name when he uses the chat, like this:

Quote:

(ID:0) MyName: hi all!

If that's what you want, then just use this:

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


Messages In This Thread
Player ID in front of Player Name? - by iPoisonxL - 03.07.2013, 22:42
Re: Player ID in front of Player Name? - by shadowdog - 03.07.2013, 23:24
Re: Player ID in front of Player Name? - by iPoisonxL - 03.07.2013, 23:27
Re: Player ID in front of Player Name? - by BigGroter - 03.07.2013, 23:48
Re: Player ID in front of Player Name? - by iPoisonxL - 04.07.2013, 10:22
Re: Player ID in front of Player Name? - by Vince - 04.07.2013, 10:24
Re: Player ID in front of Player Name? - by iPoisonxL - 04.07.2013, 10:27
Re: Player ID in front of Player Name? - by Vince - 04.07.2013, 10:29
Re: Player ID in front of Player Name? - by RedFusion - 04.07.2013, 10:32
Re: Player ID in front of Player Name? - by TheMaxXx - 04.07.2013, 10:35

Forum Jump:


Users browsing this thread: 1 Guest(s)