public OnPlayerText(playerid,text[])
{
new string[124],name[24]; // create some variables to be used
GetPlayerName(playerid,name,sizeof(name)); // get the players name
format(string,sizeof(string),"%s (%d): %s",name,playerid,text); // format a string containing the name, id and the text of the message being sent
SendClientMessageToAll(-1,string); // Change -1 to a color, -1 = white
return 0; // return false so the default samp message isn't sent
}