17.11.2013, 15:52
I tried putting this code at public OnPlayerText callback:
public OnPlayerText(playerid, text[])
{
new string[128];
format(string, sizeof(string), "[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
But when player is chatting, there are double messages like this
PlayerName[0]: hi
PlayerName: hi
One with id and another without id, the one with id is made by me. So i want to disable the one without id, but can't find its location.
public OnPlayerText(playerid, text[])
{
new string[128];
format(string, sizeof(string), "[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
But when player is chatting, there are double messages like this
PlayerName[0]: hi
PlayerName: hi
One with id and another without id, the one with id is made by me. So i want to disable the one without id, but can't find its location.