Simpler version:
PHP Code:
headshot(meters)
{
self notify("headshot");
self endon("headshot");
self endon("disconnect");
if(isdefined(self.headshothud))
self.headshothud destroy();
self.headshothud = newclienthudelem(self);
//set other stuff like .x etc here
self.headshothud.label = &"yourshitgoeshere";
self.headshothud setvalue(meters);
self.headshothud.alpha = 1;
wait 3;
self.headshothud.fadeovertime(3);
self.headshothud.alpha = 0;
wait 3;
self.headshothud destroy();
}