+ sprint(caller, " See ^5wpeditor_menu^7 for a selectable list of various commands and useful settings to edit waypoints.\n");
+ return;
+ }
+ }
+}
+
+void ClientCommand_ignore(entity caller, int request, int argc, string command)
+{
+ switch (request)
+ {
+ case CMD_REQUEST_COMMAND:
+ {
+ if (argc >= 2)
+ {
+ bool advanced = (caller.crypto_idfp && caller.crypto_idfp != "");
+
+ if(!argv(1) || argv(1) == "")
+ {
+ sprint(caller, "This command requires an argument. Use a player's name or their ID from the ^2status^7 command.\n");
+ return;
+ }
+
+ entity ignore_to = GetIndexedEntity(argc, 1);
+ float ignore_accepted = VerifyClientEntity(ignore_to, true, false);
+
+ if (ignore_accepted > 0 && IS_REAL_CLIENT(ignore_to)) // the target is a real client
+ {
+ if (ignore_to != caller) // and we're allowed to ignore them heh
+ {
+ if(ignore_playerinlist(ignore_to, caller))
+ {
+ sprint(caller, ignore_to.netname, " ^7is already ignored!\n");
+ return;
+ }
+
+ // advanced ignore mode, works if both the player and the sender have a stats UID
+ if(advanced && ignore_to.crypto_idfp && ignore_to.crypto_idfp != "")
+ {
+ for(int j = 0; j < IGNORE_MAXPLAYERS; ++j)
+ {
+ string pos = db_get(ServerProgsDB, strcat("/ignore/", caller.crypto_idfp, "/", ftos(j)));
+ if(pos == "")
+ {
+ db_put(ServerProgsDB, strcat("/ignore/", caller.crypto_idfp, "/", ftos(j)), ignore_to.crypto_idfp);
+ sprint(caller, "You will no longer receive messages from ", ignore_to.netname, "^7, use ^2unignore^7 to hear them again.\n");
+ return;
+ }
+ }
+
+ sprint(caller, "You may only ignore up to ", ftos(IGNORE_MAXPLAYERS), " players, remove one before trying again.\n");
+ return;
+ }
+
+ if(caller.ignore_list)
+ strunzone(caller.ignore_list);
+ caller.ignore_list = strzone(cons(caller.ignore_list, ftos(etof(ignore_to))));
+
+ sprint(caller, "You no longer receive messages from ", ignore_to.netname, "^7, use ^2unignore^7 to hear them again.\n");
+ }
+ else { sprint(caller, "You can't ^2ignore^7 yourself.\n"); }
+ }
+ else { print_to(caller, strcat("ignore: ", GetClientErrorString(ignore_accepted, argv(1)), ".\nUnable to ignore this player, check their ID.")); }
+
+ return;
+ }
+ }
+
+ default:
+ sprint(caller, sprintf("Incorrect parameters for ^2%s^7\n", argv(0)));
+ case CMD_REQUEST_USAGE:
+ {
+ sprint(caller, "\nUsage:^3 cmd ignore <client>\n");
+ sprint(caller, " Where <client> is the entity number or name of the player to ignore keeping out of personal chat log.\n");