I'm trying to make a nick setting NPC.
I'm a developer for Doomsday and I made an NPC the otherday for the Police, however i couldn't test it because I don't have a (Police) tag

. I figured I'd set about making something like the "control nick" NPC on g2k1. I hoped I would be able to set my nick to anything and thus be able to have a (Police) tag for a while, but it doesn't work at all. We have no npcserver and I don't need it to change other people's names etc, only mine.
Here's my script:
NPC Code:
// NPC made by HoudiniMan (Developer)
if (playertouchsme) {
toweapons Changenick;
}
if (playerchats&&startswith(changenick,#c)&&isweapon) {
tokenize #c;
for (i=1;i<tokenscount;i++){
setstring this.newnick,#s(this.newnick) #t(i);
}
setplayerprop #n,#s(this.newnick);
}