im making a script so when you type one the screen it shows what your typing...except im having a lil problem...i dno how to make the letters actually type XD...i have an idea of it done..look at the script
NPC Code:
//#CLIENTSIDE
if (created){
disablepause;
disableselectweapons;
sy = 60/100 * screenheight;
timeout = .05;
}
if (timeout){
sx = 50/100 * screenwidth+this.keyspressed;
message #v(this.keyspressed);
timeout = .05;
}
if (keypressed){
this.keyspressed++;
addstring this.lastletter,#p(1);
if (!strequals(#p(1),)){
showimg 1,@Arial@b@#s(this.lastletter),sx,sy;
changeimgvis 1,4;
changeimgzoom 1,.60;
}else{this.keyspressed--;}
}