[Ajuda] OnPlayerText
#5

Quote:
Originally Posted by MatheusDalZot
Посмотреть сообщение
tenta assim
pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[144];

    if(Telefonando[playerid] == 3 || Telefonando[playerid] == 4)
    {
        format(str, sizeof str, "[Celular] %s: %s", PlayerName(playerid), text);
        SendClientMessage(Jogador[playerid], 0xF2AAFAFF, str);
        format(str, sizeof str, "[Celular] %s: %s", PlayerName(playerid), text);
        SendClientMessage(playerid, 0xF2AAFAFF, str);
        return 0;
    }
    format(string, sizeof(string), "%s Diz: {FFFFFF}%s", PlayerName(playerid), text);
    ProxDetector(6, playerid, string, 0x8B8B8BFF,0x8B8B8BFF,0x8B8B8BFF,0x8B8B8BFF,0x8B8B8BFF);
    return 1;
}
O seu return 1 no fim da callback, vai fazer com que a fala original seja permitida tambйm... Logo terгo duas falas na tela, a personalizada criada por ele, e a padrгo do sa-mp.


Para chegar ao resultado esperado, basta colocar um return 0 dentro do IF, como explicado acima.
Reply


Messages In This Thread
OnPlayerText - by Justing3 - 08.01.2015, 19:14
Re: OnPlayerText - by mau.tito - 08.01.2015, 19:17
Re: OnPlayerText - by WLSF - 08.01.2015, 19:49
Re: OnPlayerText - by MatheusDalZot - 08.01.2015, 19:53
Re: OnPlayerText - by WLSF - 08.01.2015, 19:56
Re: OnPlayerText - by Justing3 - 08.01.2015, 21:28
Re: OnPlayerText - by MatheusDalZot - 08.01.2015, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)