09.07.2010, 16:50
Hey guys!
I want that, when the players write something in just normal chat, it should say: "Name" says: (text).
Normal it just says: "Name": (text)
Okay, so here's what I got:
I put this on OnPlayerText:
When I made this, I wanted it to do what I said, but it doesn't? How can I make it say what I want?
Thanks.
/JaloNik.
I want that, when the players write something in just normal chat, it should say: "Name" says: (text).
Normal it just says: "Name": (text)
Okay, so here's what I got:
I put this on OnPlayerText:
pawn Код:
{
new sendername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s says: %s", sendername, text);
ProxDetector(50.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
return 0;
}
Thanks.
/JaloNik.