[Ajuda] Chat
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    new str[128];
    format(str, sizeof(str), "%s fala: %s", ReturnUser(Name), text[0]);
    for (new d = 0; r < MAX_PLAYERS; d++)
    {
        if(IsPlayerConnected(d))
        {
            if(IsPlayerInRangeOfPoint(d, 10.0, x, y, z))
            {
                SendClientMessage(d, -1, str);
            }
        }
        return 0;
    }
    return 1;
}
O chat sу apareзe pro ID 0.

E quando eu tiro o return 0;, apareзe pra todos(normal), porйm a frase repete.

Alguem ajuda.
Reply


Messages In This Thread
Chat - by xPaulistaa - 03.11.2012, 03:33
Re: Chat - by Bruno Bastos - 03.11.2012, 03:38
Re: Chat - by tonisantolia - 03.11.2012, 03:39
Re: Chat - by xPaulistaa - 03.11.2012, 03:39
Re: Chat - by Nill.Oliveira - 03.11.2012, 03:43
Re: Chat - by zSuYaNw - 03.11.2012, 03:45
Re: Chat - by HDTV - 03.11.2012, 04:49
Re: Chat - by Rodney Francalim - 03.11.2012, 10:51

Forum Jump:


Users browsing this thread: 5 Guest(s)