showing the id of the player in chat?
#2

Takes just a few lines in OnPlayerText:

pawn Код:
new name[24], txt[256];
GetPlayerName(playerid, name);
format(txt, 256, "%s (%d): %s", name, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), txt);

return 0;   //this is important, or the message will be sent twice
Reply


Messages In This Thread
showing the id of the player in chat? - by Face9000 - 20.11.2010, 14:35
Re: showing the id of the player in chat? - by Mauzen - 20.11.2010, 14:48
AW: showing the id of the player in chat? - by Cank - 20.11.2010, 15:00
Re: showing the id of the player in chat? - by Face9000 - 20.11.2010, 15:29
Re: showing the id of the player in chat? - by rs.pect - 20.11.2010, 16:50
Re : Re: showing the id of the player in chat? - by Amine_Mejrhirrou - 07.09.2011, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)