26.06.2015, 16:29
When I type, strangely nothing appears. What's the problem?
public OnPlayerText(playerid, text[]) {
public OnPlayerText(playerid, text[]) { new pText[144]; format(pText, sizeof (pText), "(%d) %s", playerid, text); SendPlayerMessageToAll(playerid, pText); return 0; // ignore the default text and send the custom one }
It should be like this if u dont have proxdetector for rp chat!
Код:
public OnPlayerText(playerid, text[]) { new pText[144]; format(pText, sizeof (pText), "(%d) %s", playerid, text); SendPlayerMessageToAll(playerid, pText); return 0; // ignore the default text and send the custom one } |
// This callback uses the chat-box
public OnPlayerText(playerid, text[])
{
new GlobalChat[128], NomoDoFilho[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(GlobalChat, sizeof (GlobalChat), "%s {00FFFF}(ID:%d):{FFFFFF} %s", NomoDoFilho, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid),GlobalChat);
return 0;
}