[Ajuda] OnPlayerText
#1

Bom, eu criei o sistema de telefone no meu servidor, mas quando eu falo alguma coisa, mesmo estando no telefone, ele fala no chat tbm, a msm coisa

codigo:

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);
    }

    format(string, sizeof(string), "%s Diz: {FFFFFF}%s", PlayerName(playerid), text);
    ProxDetector(6, playerid, string, 0x8B8B8BFF,0x8B8B8BFF,0x8B8B8BFF,0x8B8B8BFF,0x8B8B8BFF);

    return 0;
}
Qual seria a soluзгo? colocar uma else if verificando se o player estб no telefone ou no chat? Agradeзo quem puder me ajudar..
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)