/ignore (playerid)
#9

Quote:
Originally Posted by alexus
Посмотреть сообщение
Код:
dcmd_pm(playerid, params[])
{
        new pID, text[128], string[128];
        if(sscanf(params, "us", pID, text)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /pm (nick/id) (message) - Enter a valid Nick / ID");
        if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "Player is not connected.");
        if(pID == playerid) return SendClientMessage(playerid, COLOR_RED, "You cannot PM yourself.");
        format(string, sizeof(string), "%s (%d) is not accepting private messages at the moment.", PlayerName(pID), pID);
        if(pInfo[pID][NoPM] == 1) return SendClientMessage(playerid, COLOR_RED, string);
	// here
	if(ignore[pID][playerid] == true) return SendClientMessage(playerid, COLOR_RED, "That player rejects your /pm");

        format(string, sizeof(string), "PM to %s: %s", PlayerName(pID), text);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        format(string, sizeof(string), "PM from %s: %s", PlayerName(playerid), text);
        SendClientMessage(pID, COLOR_YELLOW, string);
        pInfo[pID][Last] = playerid;
        return 1;
}
You have to set your /ignore [id] command. Have you already done it?

Код:
dcmd_ignore(playerid, params[])
{
        #pragma unused params
        if(pInfo[playerid][NoPM] == 0)
        {
            pInfo[playerid][NoPM] = 1;
            SendClientMessage(playerid, COLOR_YELLOW, "You are no longer accepting private messages.");
        }
        else
        {
            pInfo[playerid][NoPM] = 0;
            SendClientMessage(playerid, COLOR_YELLOW, "You are now accepting private messages.");
        }
}
This is my ignore command but I want /ignore (playerid)
Reply


Messages In This Thread
/ignore (playerid) - by Sensation - 15.03.2015, 17:39
Respuesta: /ignore (playerid) - by alexus - 15.03.2015, 18:00
Re: /ignore (playerid) - by Abagail - 15.03.2015, 18:08
Respuesta: /ignore (playerid) - by alexus - 15.03.2015, 18:22
Re: /ignore (playerid) - by Luis- - 15.03.2015, 18:35
Re: /ignore (playerid) - by Abagail - 15.03.2015, 18:36
Re: Respuesta: /ignore (playerid) - by Sensation - 15.03.2015, 18:43
Respuesta: /ignore (playerid) - by alexus - 15.03.2015, 19:00
Re: Respuesta: /ignore (playerid) - by Sensation - 15.03.2015, 20:26
Respuesta: /ignore (playerid) - by alexus - 16.03.2015, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)