That script is fine for me... What isn't working?
NPC Code:
if (created || playerenters) {
setshape 1,32,32;
setstring this.test,hahaha.;
triggeraction x,y,test,#v(id),#s(this.test);
}
//#CLIENTSIDE
if (created) setshape 1,32,32;
if (actiontest) {
if (strtofloat(#p(0)) == id) // So that it is received only by this NPC.
message received - #p(1);
}