[Pedido] OnPlayerText
#1

Ola pessoal eu estou com erro no OnPlayerText tipo assim quando algum digita mostra 2 ves o que ela digitou e do vip mostra o chat normal tipo ID NIKI e o que ele escreveu e quando eu dou vip ID NIKI e o que escreveru e VIP NIKI o que escreveu mostra 2 chat quero resolver isso e resolvei pedir ajuda pra voces

Quote:
pawn Код:
{
    // Block the player's text if he has been muted
    if (APlayerData[playerid][Muted] == true)
    {
        // Let the player know he's still muted
        SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк ainda estб mudo.");

        // Don't allow his text to be sent to the chatbox


   
   return SendClientMessage(playerid,COLOR_RED ,"COMANDO NГO INVALIDO PORFAVOR DIGITE /COMANDOS");
}

{
new string[128], nomej[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomej, sizeof(nomej));
format(string, sizeof(string),"> %d < %s: %s", playerid, nomej, text);
SendClientMessageToAll(-1, string);
}


{
    if ( IsPlayerVIP(playerid))
    {
        new Name[24];
        GetPlayerName(playerid, Name, 24);
        #if CHAT_MODEL == 1
        {
            new dStr[128];
            format ( dStr, 128, "[%d]%s[V.I.P]: {FFFFFF}%s", playerid, Name, text);
            SendClientMessageToAll(GetPlayerColor(playerid), dStr);
            return 0;
        }
        #endif
        #if CHAT_MODEL == 2
        {
            new dStr[128];
            format ( dStr, 128, "%s[%d][V.I.P]: {FFFFFF}%s", Name, playerid, text);
            SendClientMessageToAll(GetPlayerColor(playerid), dStr);
            return 0;
        }
        #endif
        #if CHAT_MODEL == 3
        {
            new dStr[128];
            format ( dStr, 128, "{F9BD0B}VIP {FFFFFF}%s diz: {FFFFFF}%s", Name, text);
            SendClientMessageToAll(GetPlayerColor(playerid), dStr);
            return 0;
        }
        #endif
    }
    return 1;
}


    return 1;
}
Reply


Messages In This Thread
OnPlayerText - by jinxdiamond - 04.06.2014, 21:44
Re: OnPlayerText - by n0minal - 05.06.2014, 02:43
Re: OnPlayerText - by jinxdiamond - 05.06.2014, 03:47
Re: OnPlayerText - by n0minal - 05.06.2014, 03:52

Forum Jump:


Users browsing this thread: 1 Guest(s)