[AJUDA]Chat б distancia!
#1

Pessoal to com um problema com chat б distancia no OnGameModeInit
eu botei:
Код:
LimitPlayerMarkerRadius(5.0);
LimitGlobalChatRadius(10.0);
mais ainda ta global o chat ai ne OnPlayerText la tinha o SendPlayerMessageToAll entao eu tirei mais quando eu falava com o T nao mostrava nada entгo oque eu faco para tirar chat global e usar o T e falar e mostrar no chat lб?
e uso tbm o

Код:
public drawkapat()
{
TextDrawHideForAll(Textdraw0);
return 1;
}
Porfavor ajuda

Edit:
No OnPlayerText fico assim:

Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    return 0; // ignore the default text and send the custom one
}
ai quando aperto T e falo algo nao mostra no chat e se eu botar o SendPlayerMessageToAll vai ficar global e nao quero global ajuda please
Reply
#2

Bote
pawn Код:
LimitGlobalChatRadius(10);
Dentro do OnPlayerText
ficando
pawn Код:
public OnPlayerText(playerid, text[])
{
   LimitGlobalChatRadius(10);
   return 1;
}
Reply
#3

ta muito obrigado vo ver se funciona
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)