03/04/2024 14:12
coloquei do jeito que vc falou mas toda vez que digito no chat ainda aparece o chat nativo do samp
public OnPlayerText(playerid, text[])
{
new name[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, name, sizeof(name));
new string[128];
format(string, sizeof(string), "%s[%d]: %s", name, playerid, text);
SendClientMessageToAll(-1, string);
return 0;//retornar a 0 para o chat do samp ser anulado
}
public OnPlayerText(playerid, text[])
{
new name[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, name, sizeof(name));
new string[128];
format(string, sizeof(string), "%s[%d]: %s", name, playerid, text);
SendClientMessageToAll(-1, string);
return 0;//retornar a 0 para o chat do samp ser anulado
}