#include "../client.h" void command_timers(Client *c, const Seperator *sep) { if (!c->GetTarget() || !c->GetTarget()->IsClient()) { c->Message(Chat::White, "Need a player target for timers."); return; } Client *them = c->GetTarget()->CastToClient(); std::vector > res; them->GetPTimers().ToVector(res); c->Message(Chat::White, "Timers for target:"); int r; int l = res.size(); for (r = 0; r < l; r++) { c->Message(Chat::White, "Timer %d: %d seconds remain.", res[r].first, res[r].second->GetRemainingTime()); } }