67 if (s ==
"")
return strcat(
"No records are available for the map: ", map,
"\n");
68 else return strcat(
"Records for ", map,
":\n", s);
73 int i, j, k, uidcnt = 0, thiscnt;
74 string s, temp_s, rr, myuid, thisuid;
114 else temp_s =
strcat(temp_s,
"0");
158 for (i = 0; i <= uidcnt; ++i)
185 s =
"^3-----------------------\n\n";
188 s =
strcat(s,
" ^7Total ^3|");
192 s =
strcat(s,
" ^7Speed awards ^3| ^7Name");
193 s =
strcat(s,
"\n^3----+--------");
202 s =
strcat(s,
"+--------------+--------------------\n");
229 if (s ==
"")
return "No ladder on this server!\n";
236 return "^7Map list is empty";
242 string col = (i % 2) ?
"^2" :
"^3";
248 return sprintf(
"^7Maps in list (%d): %s\n", mapcount, maplist);
254 string lsmaps =
"", col;
255 bool newmaps =
false;
271 if (i % 2) col =
"^4*";
else col =
"^5*";
275 if (i % 2) col =
"^2";
else col =
"^3";
283 lsmaps = sprintf(
"%s ^7(%d not listed)", lsmaps, added -
LSMAPS_MAX);
286 return sprintf(
"^7Maps available (%d)%s: %s\n", added, (newmaps ?
" (New maps have asterisks marked in blue)" :
""), lsmaps);
291 string monsterlist =
"";
295 string col = ((i % 2) ?
"^2" :
"^3");
296 monsterlist = sprintf(
"%s%s%s ", monsterlist, col, it.netname);
299 return sprintf(
"^7Monsters available: %s\n", monsterlist);
319 if (thisname ==
name)
331 if (thisname ==
name)
333 string s = func(
this,
strcat(store.(field)));
334 if (s != store.(field))
347 if (thisname ==
name)
360 if (thisname ==
name)
385 LOG_INFO(
"Warning: requesting cvar values is deprecated. Client should send them automatically using REPLICATE.\n");
#define MUTATOR_CALLHOOK(id,...)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define TIME_ENCODED_TOSTRING(n, compact)
ERASEABLE string count_ordinal(int interval)
void GetCvars_handleFloatOnce(entity this, entity store, string thisname, float f,.float field, string name)
string getrecords(int page)
void GetCvars_handleString(entity this, entity store, string thisname, float f,.string field, string name)
void GetCvars_handleFloat(entity this, entity store, string thisname, float f,.float field, string name)
void GetCvars(entity this, entity store, int f)
void GetCvars_handleString_Fixup(entity this, entity store, string thisname, float f,.string field, string name, string(entity, string) func)
const int LADDER_FIRSTPOINT
float top_scores[LADDER_SIZE]
string top_uids[LADDER_SIZE]
#define FOREACH_WORD(words, cond, body)
#define FOREACH(list, cond, body)
ACCUMULATE void ReplicateVars_ApplyChange(entity this, entity store, string thisname, int i)
ERASEABLE string db_get(int db, string key)
ERASEABLE void db_put(int db, string key, string value)
float MapInfo_CheckMap(string s)
bool MapInfo_Get_ByID(int i)
int MapInfo_ForbiddenFlags()
void MapInfo_ClearTemps()
string MapInfo_Map_bspname
const int MON_FLAG_HIDDEN
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
void Notification_GetCvars(entity this, entity store)
void ReplicateVars(bool would_destroy)
#define autocvar_g_maplist
float race_readTime(string map, float pos)
string race_readName(string map, float pos)
string uid2name(string myuid)
string race_readUID(string map, float pos)
ERASEABLE string cons(string a, string b)