PDA

View Full Version : Help me please


PrinceOfPersia
15/11/2013, 06:31 PM
Guys i want any scripter to help me

When some one talk in the main chat i want it to show the talking player ID

Thanks.

ReD_DeVi
15/11/2013, 06:32 PM
its very easy

Giroud12
15/11/2013, 06:35 PM
Maybe it was shown in the game ???

tyler12
15/11/2013, 06:37 PM
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
}