Are you still interested in a code like this?I want to add 5 Hitmarkers like this can anyone help me to add this ? View attachment 199
Looked at Loz's script and gave it a goI want to add 5 Hitmarkers like this can anyone help me to add this ? View attachment 199
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;
}
hitmarkersEffect()
{
coords = [];
coords[0]["x"] = 0;
coords[0]["y"] = 0;
coords[1]["x"] = 0;
coords[1]["y"] = -50;
coords[2]["x"] = 0;
coords[2]["y"] = 50;
coords[3]["x"] = 50;
coords[3]["y"] = 0;
coords[4]["x"] = -50;
coords[4]["y"] = 0;
self.hitmarkersEffect = [];
for(i=0;i<5;i++)
{
hitmarker = self.hitmarkersEffect[i];
hitmarker = self drawShader("damage_feedback", 24, 48, coords[i]["x"], coords[i]["y"], "", "", (1,1,1), 1, 0);
hitmarker fadeOverTime(.8);
hitmarker.alpha = 0;
}
wait .8;
foreach(hitmarker in self.hitmarkersEffect)
hitmarker destroy();
}
Thank you!Looked at Loz's script and gave it a go
Code: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; } hitmarkersEffect() { coords = []; coords[0]["x"] = 0; coords[0]["y"] = 0; coords[1]["x"] = 0; coords[1]["y"] = -50; coords[2]["x"] = 0; coords[2]["y"] = 50; coords[3]["x"] = 50; coords[3]["y"] = 0; coords[4]["x"] = -50; coords[4]["y"] = 0; self.hitmarkersEffect = []; for(i=0;i<5;i++) { hitmarker = self.hitmarkersEffect[i]; hitmarker = self drawShader("damage_feedback", 24, 48, coords[i]["x"], coords[i]["y"], "", "", (1,1,1), 1, 0); hitmarker fadeOverTime(.8); hitmarker.alpha = 0; } wait .8; foreach(hitmarker in self.hitmarkersEffect) hitmarker destroy(); }
Problem with that is the source code isn't released yet so if u decompile it ur gonna run into some errorsits in Loz Azza, so just copy it...
I think that function is 100% working tho.. not sure.Problem with that is the source code isn't released yet so if u decompile it ur gonna run into some errors
neither am I nor do I care xD just saying. Either way just use TheHiddenHour's code.. Its l33tI think that function is 100% working tho.. not sure.
Just saying...neither am I nor do I care xD just saying. Either way just use TheHiddenHour's code.. Its l33t
worksworks or not?