01.09.2010, 00:44
No meu servidor, de uma hora pra outra ta aparecendo no chat tudo que as pessoas falam, e o certo seria sу aparecer pra quem estб perto.
Alguйm sabe como solucionar?
Alguйm sabe como solucionar?
return 0.
|
Jб tentou ver se o return do OnPlayertext estб assim:
pawn Код:
Caso esteja, pode ser problema no cуdigo, poste-o. |
public OnPlayerText(playerid, text[])
{
new giver[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new tmp[256];
new string[256];
new giveplayerid;
SetPlayerChatBubble(playerid, text, COLOR_LIGHTBLUE, 100.0, 10000);
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(antidivulguer); i++)
{
if(strfind(text, antidivulguer[i], true) != -1)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "O player %s[ID %d] estб tentando divulgar.", giveplayer,playerid,text);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
return 1;
}