Quote:
Originally posted by TB3
Maybe just an idea?
quick scripting so you might need to spruce up have it as a -weapon in inventory
Have
server.blockedcharacters= ! @ & ^ % $ * " ' goku *curse language* sell buy vegita ect....
The naming system I made is similiar. I just pulled this off the top of my head though
NPC Code:
if (actionserverside) {
tokenize #s(server.blockedcharacters);
for (i=0;i<tokenscount;i++) {
if(strcontains(#n,#t(i))) {
setplayerprop #n,#a -Invalid Name-;
}
}
}
//#CLIENTSIDE
if (playerchats) {
if(strcontains(#c,setnick)) {
//#EDIT Put a Triggeraction for serverside here for the weapon
}
}
Something like that
|
It'd be better to use a serverr.string and do all of that locally instead...otherwise the nick would most likely set before that's even ran through (atleast on servers with lots of scripts and decent amounts of people). Either that or just hold all the characters in a this.string in this NPC and just edit it with NC anytime you want to make a change...not much more difficult than making changes to the server strings and it's less laggy.