my friend made this. and he dont know where to put this
at on the script . the script deletes the normal gui right?
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.gx = 0;
this.gy = 0;
onTimeout();
}
function onTimeout() {
this.stats = {client.hp.substring(-1,2),"/",clientr.hpmax,player.rupees,clientr.wantedlvl};
this.posx = {31,44,48,22,27};
this.posy = {10,10,10,41,76};
showimg(201,"dg_gui_health.png",this.gx,this.gy);
changeimgpart(201,0,0,145,100);
changeimgvis(201,5);
showimg(202,"dg_gui_health.png",screenwidth-85,screenheight-52);
changeimgpart(202,210,135,85,52);
changeimgvis(202,4);
showimg(203,player.weapon.image,screenwidth-40,screenheight-40);
changeimgvis(203,5);
for(i=0;i<this.stats.size();i++){
showtext(1000+i,this.posx[i],this.posy[i],"Arial","",this.stats[i]);
changeimgvis(1000+i,5);
changeimgzoom(1000+i,.6);
changeimgcolors(1000,0,1,0,1);
changeimgcolors(1001,0,1,0,1);
changeimgcolors(1002,0,1,0,1);
changeimgcolors(1003,.4,.7,.4,1);
changeimgcolors(1004,.6,.2,.2,1);
}
if (client.hp/clientr.hpmax <= .33) changeimgcolors(1000,1,0,0,1);
else if (client.hp/clientr.hpmax <= .50) changeimgcolors(1000,0.9,0.9,0,1);
else if (client.hp/clientr.hpmax >= .66) changeimgcolors(1000,0,1,0,1);
setTimer(0.05);
}