View Single Post
  #1  
Old 09-27-2001, 08:21 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Exclamation Help with a jailing thing

Ok, I'm editing this from a handcuff thing where you say handcough account name and it freezes the player, I'm trying to make this into a jailing thing but I'm not having any luck, here's what I have so far.
for the jailer:
if (playertouchsme){
toweapons Jailer;
}
if (isweapon) {
if (playerchats) {
if (strequals(#c,jail account)&&this.action=0) {
setplayerprop #c,Enter Account Name;
sleep .5;
this.action=1;
}
if (this.action=1&&playerchats) {
setstring server.jailaccount,#c;
setstring server.unjailaccount,;
sleep .5;
this.action=0;
}
}
}
and in the system:
if (strcontains(#s(server.unjailaccount),#a))
enabledefmovement; setlevel2 main.graal,1,1;
}else{
timeout = .05;
}
if (timeout){
if (strcontains(#s(server.jailaccount),#a))
disabledefmovement;setlevel2 jail.graal,1,1;}else{
timeout = .05;
}
any help would be appreciated
Reply With Quote