Thread: Jailer?
View Single Post
  #4  
Old 12-28-2001, 04:15 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: Jailer?

Quote:
Originally posted by lordhelmut
I set the level jail.nw to the jail level on ServerOptions.txt and reloaded options but it didnt work. Now I cannot warp to it. So im going to take that off of serveroptions.txt and make this.

I wanna make a NPC that lets me say something like Jail "account" for "amount of time" or even something where I can just jail an account. And then it sets a flag for them like jailed so if they try and warp out it detects it and warps back. What I need is just a NPC that lets me say Jail "account" and it puts them in jail.nw

If anyone knows please tell me =(
You could use tokenize to set the server.string and have the server's system look for that string and if the string equals the players account, it warps them to jail and when they enter the level, it gives them a weapon that warps them to that level every .5 seconds
I think this should work:

// NPC made by Jagen
if (created&&strequals(#g,Admin)||created
&&strequals(#a,lordhelmut)&&!isweapon)
{toweapons *Jailer;this.mode=0}
if (weaponfired&&this.mode==0)
{setplayerprop #c,Who's the criminal?;
this.mode=1;}
if (playerchats&&this.mode==1)
{tokenize #c;setstring
server.jail,#t(0);
this.mode=0;
setplayerprop #c,Done the criminal's jailed;
} You fire the weapon then say the persons account
and for the system just has something that looks for the server.jail and if it equals the player's account, it sets the level to jail1.nw
I think it would be something like this:
if (timeout)
{
if (strequals(#s(server.jail),#a))
setlevel jail1.nw;
}timeout=1}
Reply With Quote