string GetCallerName(entity caller)
{
if (caller) return playername(caller, false);
- else return admin_name(); // ((autocvar_sv_adminnick != "") ? autocvar_sv_adminnick : autocvar_hostname);
+ else return ((autocvar_sv_adminnick != "") ? autocvar_sv_adminnick : "SERVER ADMIN"); // autocvar_hostname
}
// verify that the client provided is acceptable for kicking
}
else
{
- centerprint(client, strcat("^3", admin_name(), ":\n^7", admin_message));
- sprint(client, strcat("\{1}\{13}^3", admin_name(), "^7: ", admin_message, "\n"));
+ centerprint(client, strcat("^3", GetCallerName(NULL), ":\n^7", admin_message));
+ sprint(client, strcat("\{1}\{13}^3", GetCallerName(NULL), "^7: ", admin_message, "\n"));
}
successful = strcat(successful, (successful ? ", " : ""), playername(client, false));
entity eliminatedPlayers;
void EliminatedPlayers_Init(float(entity) isEliminated_func);
-string admin_name();
-
void write_recordmarker(entity pl, float tstart, float dt);
void play2all(string samp);