NPC Code:
if (created) setgif system.gif;
if (playerchats) {
if (strequals(#g,GP)) {
setstring this.lastuse,#a;
tokenize #c;
if (strequals(#t(0),jailaccount)) {
setstring this.jail,#t(1);
with(getplayer(#s(this.jail))) {
this.test = 1;
}
if (this.test == 1) {
this.test = 0;
with (getplayer(#s(this.jail))) {
warpto #F,playerx,playery;
setlevel2 jail.graal,30.5,30;
with(getplayer(#s(this.lastuse))) {
warpto #F,playerx,playery;
message Jailed #s(this.jail)!
sleep 3;
message ;
}
}
} else if (this.test == 0) {
message That Accout is invalid;
sleep 3;
message ;
}
}
}
}
Id do it nmore liek that.... No real confusing strings or anything... And it will tell you if you typed an account thats not on the server... No server junks... Only works with NPC server (or course) But it works. juslt like change jail.graal to your jail level and make it an officail jail level via serveroptions.
=)