PDA

View Full Version : I have a script in here that needs some fixin, it is for a jailing and unjailing syst


cell424
04-21-2001, 09:10 PM
Ok now I am making a new jailing and unjailing script for my system NPC for my PW, and I need some help with it..right now I ahve the main format done now I need it to be able to jail other people jsut not your self here is the script I have so far.If you can help me fix this plz then!

// NPC made by Trunks (Owner)
hide;
if (playerenters && strtofloat(#s(gotjailingsystem))<10) {setstring gotjailingsystem,10;toweapons *Jailing System;}
if (weaponfired){}

//Jailing && Unjailing//
if ((strequals(#g,Owner) || strequals(#g,Co-Owner) || strequals(#g,Admin)) && playersays(unjail)) {
setstring unjailmode,unjail;
}
if ((strequals(#g,Owner) || strequals(#g,Co-Owner) || strequals(#g,Admin)) && playersays(jail)) {
setstring jailmode,jail;
}
if (strequals(#s(jailmode),jail) && weaponfired && strequals(#a,#c) && (
strequals(#g,Owner) ||
strequals(#g,Co-Owner) ||
strequals(#g,Admin) ||
strequals(#g,PW Projects Team))
)
setlevel2 gppolice3.graal,24,12;

if (strequals(#s(unjailmode),unjail) && weaponfired && strequals(#a,#c) && (
strequals(#g,Owner) ||
strequals(#g,Co-Owner) ||
strequals(#g,Admin) ||
strequals(#g,PW Projects Team))
)
unset jailed;setlevel onlinestartlocal.graal;