void Cmd_Ignorelist_f(edict_t *self) { char buf[MAX_STRING_CHARS]; strcpy(buf, "Available players to ignore:\n\n"); _printplayerlist(self, buf, _ilMarkThis); gi.cprintf(self, PRINT_MEDIUM, "%s", buf); }
void Cmd_Kicklist_f(edict_t *ent) { char buf[MAX_STRING_CHARS], tbuf[256]; if (!use_kickvote->value) { gi.cprintf(ent, PRINT_HIGH, "Kick voting is disabled.\n"); return; } strcpy(buf, "Available players to kick:\n\n"); _printplayerlist(ent, buf, _vkMarkThis); // adding vote settings Com_sprintf (tbuf, sizeof(tbuf), "Vote rules: %i client%s min. (currently %i),\n" \ "%.1f%% must have voted overall (currently %.1f%%)\n" \ "and %.1f%% on the same (currently %.1f%% on %s),\n" \ "kicked players %s be temporarily banned.\n\n", (int) (kickvote_min->value), (kickvote_min->value == 1) ? "" : "s", _numclients(), kickvote_need->value, Allkickvotes, kickvote_pass->value, Mostkickpercent, Mostkickvotes == NULL ? "nobody" : Mostkickvotes->client->pers.netname, kickvote_tempban ? "will" : "won't"); // double percent sign! cprintf will process them as format strings. Q_strncatz(buf, tbuf, sizeof(buf)); gi.cprintf(ent, PRINT_MEDIUM, "%s", buf); }
void Cmd_Kicklist_f (edict_t * ent, char *argument) { char buf[16384], tbuf[2048]; strcpy (buf, "\nAvailable players to kick:\n\n"); _printplayerlist (ent, buf, _vkMarkThis); // adding vote settings sprintf (tbuf, "Vote rules: %i client%s min. (currently %i),\n" \ "%.1f%%%% must have voted overall (currently %.1f%%%%)\n" \ "and %.1f%%%% on the same (currently %.1f%%%% on %s),\n" \ "kicked players %s be temporarily banned.\n\n", (int) (kickvote_min->value), (kickvote_min->value == 1) ? " " : "s ", _numclients (), kickvote_need->value, Allkickvotes, kickvote_pass->value, Mostkickpercent, Mostkickvotes == NULL ? "nobody" : Mostkickvotes->client->pers.netname, kickvote_tempban ? "will" : "won't"); // double percent sign! cprintf will process them as format strings. strcat (buf, tbuf); gi.cprintf (ent, PRINT_MEDIUM, buf); }
void Cmd_Ignorelist_f (edict_t * self, char *s) { char buf[16384]; strcpy (buf, "\nAvailable players to ignore:\n\n"); _printplayerlist (self, buf, _ilMarkThis); gi.cprintf (self, PRINT_MEDIUM, buf); }