
Sorry but you have no chance in making a gamemode if you dont know how to do the very basics, even ions knows how to do this, i dunno about the "gime code" guy tho



/*
drawString(type, text, disableOverflowCount, scale, color, alpha, glowcolor, glowalpha, x, y, xa, ya, sort, client, team)
drawShader(shader, width, height, x, y, xa, ya, color, alpha, sort, client, team)
drawBar(width, height, color, alpha, flashfrac, x, y, xa, ya, sort, client, team, selected)
setString(type, text, disableOverflowCount)
getHUDInfo(arg)
*/
drawString(type, text, disableOverflowCount, scale, color, alpha, glowcolor, glowalpha, x, y, xa, ya, sort, client, team)
{
if(!client || !isDefined(client))
hud = self createFontString("objective", scale);
else
hud = level createServerFontString("objective", scale, team);
hud.sort = sort;
hud setString(type, text, disableOverflowCount);
hud setPoint(xa, ya, x, y);
hud.color = color;
hud.alpha = alpha;
hud.glowcolor = glowcolor;
hud.glowalpha = glowalpha;
hud.isTextElem = true;
hud.archived = false;
return hud;
}
drawShader(shader, width, height, x, y, xa, ya, color, alpha, sort, client, team)
{
if(!client || !isDefined(client))
hud = createIcon(shader, width, height);
else
hud = createServerIcon(shader, width, height, team);
hud.width = width;
hud.height = height;
hud.sort = sort;
hud setPoint(xa, ya, x, y);
hud.color = color;
hud.alpha = alpha;
hud.isTextElem = false;
return hud;
}
drawBar(width, height, color, alpha, flashfrac, x, y, xa, ya, sort, client, team, selected)
{
if(!client || !isDefined(client))
hud = createBar(color, width, height, flashfrac);
else
hud = createServerBar(color, width, height, flashfrac, team, selected);
hud.sort = sort;
hud setPoint(xa, ya, x, y);
hud updateBar((flashfrac));
hud.alpha = alpha;
hud.isTextElem = false;
return hud;
}
setString(type, text, disableOverflowCount)
{
if(!disableOverflowCount)
{
if(!isDefined(level.overflowfix_result))
level.overflowfix_result = 0;
else
level.overflowfix_result += 1;
level notify("overflow_result");
}
self.text = text;
if(type==1)
self setText(text);
else if(type==2)
self setValue(text);
else if(type==3)
self setTimer(text);
else if(type==4)
self setTenthsTimer(text);
}
getHUDInfo(arg)
{
if(arg=="color")
return self.color;
else if(arg=="alpha")
return self.alpha;
else if(arg=="x")
return self.x;
else if(arg=="y")
return self.y;
else if(arg=="text")
return self.text;
else if(arg=="sort")
return self.sort;
else if(arg=="width")
return self.width;
else if(arg=="height")
return self.height;
}
monitorHUDText()
{
level endon("game_ended");
for(;
{
if(desired_hud getHUDInfo("text") != the_text_you_want)
{
//do stuff
}
wait 0.01;
}
}
Sorry but you have no chance in making a gamemode if you dont know how to do the very basics, even ions knows how to do this, i dunno about the "gime code" guy tho
Copyright © 2026, NextGenUpdate.
All Rights Reserved.