Can some one help me make this hp script be the only thing that shows when u log on and get hit.
NPC Code:
if (actionserverside){
this.player = testplayer(strtofloat(#p(0)),strtofloat(#p(1)));
setstring this.account,#a(#v(this.player));
this.return = 1;
}
//#CLIENTSIDE
if (created||timeout) {
this.test = testplayer(mousex,mousey);
timeout=0.5;
}
if (this.hp != -2 && this.hp != -1){
triggeraction 0,0,serverside,-hp,#v(mousex),#v(mousey);
showtext 1,playerx,playery-1,Arial,b,Hp: 12#s(this.account);
changeimgzoom 1,0.7;
}
if (this.return == 2){
message #s(this.account);
this.return = 0;
}