View Single Post
  #3  
Old 12-24-2012, 07:44 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
I have this on a NPC that is created.

PHP Code:
function onCreated() {
 
showcharacter();
 
setcharani("hiteffect""");
 
this.attr[20] = "hiteffect.png";
 
this.dir 2;
 
setTimer(0.25);
 }
 
function 
onTimeOut()
{
destroy();
}

//#CLIENTSIDE
function onCreated() {
 
showText(200this.xthis.y"showg""b""" @(player.clientr.hitpoints));
   
with (findImg(200)) {
    
font "showg";
    
style "b";
    
layer 23;
    
zoom 2;}
    
sleep(2);
    
showText(10000"showg""b""");
    } 
It works, but I guess in clientside it doesn't know where it's own x and y value is... :/
Reply With Quote