07.02.2009, 18:52
Quote:
Originally Posted by sk1llz
Quote:
Код:
public OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "[%d] %s",playerid,text); SendPlayerMessageToAll(playerid,string); return 0; } |
Код:
public OnPlayerText(playerid, text[]) { new string[128], pName[24]; GetPlayerName(playerid, pName, 24); //gets player name format(string, sizeof(string), "%s [ID: %d]",pName, playerid); //formats name ("Leopard [ID: 0]") SetPlayerName(playerid, string); SendPlayerMessageToAll(playerid,text); SetPlayerName(playerid, pName); //sets player name back to original return 0; }
Mine will probably do what you want.