54 for (i = 1; i <= RANKINGS_CNT; ++i)
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)
171 for (k = LADDER_SIZE - 1; k >= j; --k)
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";
230 else return strcat(
"Top ",
ftos(LADDER_SIZE),
" ladder rankings:\n", s);
235 string maplist =
"", col;
239 for (i = 0; i < argc; ++i)
243 if (i % 2) col =
"^2";
else col =
"^3";
244 maplist = sprintf(
"%s%s%s ", maplist, col,
argv(i));
249 return sprintf(
"^7Maps in list: %s\n", maplist);
255 string lsmaps =
"", col;
256 bool newmaps =
false;
272 if (i % 2) col =
"^4*";
else col =
"^5*";
276 if (i % 2) col =
"^2";
else col =
"^3";
284 lsmaps = sprintf(
"%s^7(%d not listed)", lsmaps, added -
LSMAPS_MAX);
287 return sprintf(
"^7Maps available (%d)%s: %s\n", added, (newmaps ?
" (New maps have asterisks marked in blue)" :
""), lsmaps);
292 string monsterlist =
"";
296 string col = ((i % 2) ?
"^2" :
"^3");
297 monsterlist = sprintf(
"%s%s%s ", monsterlist, col, it.netname);
300 return sprintf(
"^7Monsters available: %s\n", monsterlist);
320 if (thisname == name)
332 if (thisname == name)
334 string s = func(
this, strcat1(store.(field)));
335 if (s != store.(field))
348 if (thisname == name)
361 if (thisname == name)
386 LOG_INFO(
"Warning: requesting cvar values is deprecated. Client should send them automatically using REPLICATE.\n");
389 s = strcat1(
argv(f));
395 Notification_GetCvars(
this, store);
397 ReplicateVars(
this, store, s, f);
399 ReplicateVars_ApplyChange(
this, store, s, f);
ERASEABLE void db_put(int db, string key, string value)
const int MON_FLAG_HIDDEN
string uid2name(string myuid)
string race_readUID(string map, float pos)
bool MapInfo_Get_ByID(int i)
int MapInfo_ForbiddenFlags()
#define TIME_ENCODED_TOSTRING(n)
ERASEABLE string count_ordinal(int interval)
#define autocvar_g_maplist
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
void GetCvars(entity this, entity store, int f)
float race_readTime(string map, float pos)
string getrecords(int page)
ERASEABLE string db_get(int db, string key)
void GetCvars_handleString_Fixup(entity this, entity store, string thisname, float f,.string field, string name, string(entity, string) func)
float MapInfo_CheckMap(string s)
void MapInfo_ClearTemps()
string race_readName(string map, float pos)
void GetCvars_handleFloat(entity this, entity store, string thisname, float f,.float field, string name)
void GetCvars_handleFloatOnce(entity this, entity store, string thisname, float f,.float field, string name)
string MapInfo_Map_bspname
const int LADDER_FIRSTPOINT
void GetCvars_handleString(entity this, entity store, string thisname, float f,.string field, string name)
#define MUTATOR_CALLHOOK(id,...)
string top_uids[LADDER_SIZE]
float top_scores[LADDER_SIZE]
#define FOREACH(list, cond, body)