void sv_notice_join()
{
// to-do: make sv_join_notices support per-entry times
- if(!autocvar_sv_join_notices || autocvar_sv_join_notices == "")
+ if(autocvar_sv_join_notices == "")
return;
entity n = spawn();
void cl_notice_read()
{
entity _notice;
- float _done;
- float _modal;
+ //float _done;
+ //float _modal;
_notice = spawn();
_notice.classname = "sv_notice";
_notice.netname = strzone(ReadString());
{
entity _notes;
string _notice;
- float c, m = FALSE;
+ float m = FALSE;
_notes = findchain(classname, "sv_notice");
if(!_notes)
#define M1 30
#define M2 10
- vector v1, v2, v3;
+ vector v1, v2 = '0 0 0', v3;
v1 = '1 1 0' * M1;
v2_x = vid_conwidth - (2 * M1);
v2_y = vid_conheight - (2 * M1);
#define OUT(s,z) drawcolorcodedstring(v3, s, '1 1 0' * z, 1, DRAWFLAG_NORMAL); v3_y += z + 4
- OUT("^1Server notices:", 32);
+ OUT(_("^1Server notices:"), 32);
//drawcolorcodedstring(v1 + '5 5 0', "^1Server notices:", '32 32 0', 1, DRAWFLAG_NORMAL);
while(_notes)
{
- _notice = sprintf("^7%s (^3%d sec left)", _notes.netname , rint(_notes.alpha - time));
+ _notice = sprintf(_("^7%s (^3%d sec left)"), _notes.netname , rint(_notes.alpha - time));
OUT(_notice, 16);
if(_notes.skin)