



works perfect: kdratio()
{
if(self.deaths<=1)
{
kd=self.kills;
self setclientdvar("kd",kd);
}
else if(self.deaths>1)
{
kd=Int(1000*(self.kills/self.deaths))/1000;
self setclientdvar("kd",kd);
}
}
i rewrited promodsmiley and put in hud.menu:
itemDef
{
name "kdratio"
rect 7 155 0 0
textscale TEXTSIZE_SMALL
textstyle ITEM_TEXTSTYLE_SHADOWED
textfont UI_FONT_NORMAL
forecolor 0 .540 1 1
exp text "K/D Ratio: " + (dvarString( kd ))
visible 1
decoration
}