pawn Код:
public OnPlayerText(playerid, text[])
{
new sendername[MAX_PLAYER_NAME];
new string[256];
format(string, sizeof(string), "%s says: %s", sendername, text);
ProxDetector(20.0, playerid, string,WHITE,WHITE,WHITE,WHITE,WHITE);
return 1;
}
This code works but when I tryed it it sent two message. Here is an example:
Код:
says: Test
Jacob_Snake: Test
I need someone to fix this code so that only the code I provided is the only one that will be sent when the player types and enters something. I want local chat and local chat only but it doesn't work because it uses both chats and my name doesn't appear in my code which it should TO SUM IT ALL UP. Thank you.