I have been looking for a jail code for ever but never could find one so i worked out a working jail command for the bad players trust me 3-5 hours on a server they really like makes them do anything you want fixes the problem better then muting them
Alright well first off
Open you client script for server with notepad or wordpad
then press Ctrl+f and find (command.equalsIgnoreCase
And right under one of them add these codes
Quote:
if (command.startsWith("jail") && command.length() > 5 && playerRights >= 3) {
if(teleblock == true){
sendMessage("A magical force stops you from teleporting."); //made by A.N.U.K.U
}
String name = command.substring(5);
client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
c.teleportToX = 3228;
c.teleportToY = 3407;
c.teleblock = true;
c.sendMessage("You have been thrown in jail for breaking the rules!");
c.sendMessage("A mod or Admin will release you if they feel like it!");
c.teleblock = true;
updateRequired = true;
appearanceUpdateRequired = true;
}
On my server cords for my jail was 3228, 3407 my jail was big could fit at least 20 people but you can change it to the small cages in varrock or under varrock bank what ever you want
Next you need the unjail place this under were you put jail
Quote:
else if (command.startsWith("unjail") && command.length() > 7 && playerRights >= 3) {
String name = command.substring(7);
client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
c.teleportToX = 3093;
c.teleportToY = 3491;
c.teleblock = false;
c.sendMessage("Ahhh!feel the fresh air!Do not break the rules again!.");
updateRequired = true;
appearanceUpdateRequired = true;
}
you may change the cords 3093, 3491 the cord make u go out of jail to the cord placed and unteleblock the player the cords tele them to edgeville bank
Your Welcome If You Needed
If you need anything feel free to email me at h-prodz@live.co.uk
Post If This Didn't Work
or
If You Used It :poster_ss
Alright well first off
Open you client script for server with notepad or wordpad
then press Ctrl+f and find (command.equalsIgnoreCase
And right under one of them add these codes
Quote:
if (command.startsWith("jail") && command.length() > 5 && playerRights >= 3) {
if(teleblock == true){
sendMessage("A magical force stops you from teleporting."); //made by A.N.U.K.U
}
String name = command.substring(5);
client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
c.teleportToX = 3228;
c.teleportToY = 3407;
c.teleblock = true;
c.sendMessage("You have been thrown in jail for breaking the rules!");
c.sendMessage("A mod or Admin will release you if they feel like it!");
c.teleblock = true;
updateRequired = true;
appearanceUpdateRequired = true;
}
On my server cords for my jail was 3228, 3407 my jail was big could fit at least 20 people but you can change it to the small cages in varrock or under varrock bank what ever you want
Next you need the unjail place this under were you put jail
Quote:
else if (command.startsWith("unjail") && command.length() > 7 && playerRights >= 3) {
String name = command.substring(7);
client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
c.teleportToX = 3093;
c.teleportToY = 3491;
c.teleblock = false;
c.sendMessage("Ahhh!feel the fresh air!Do not break the rules again!.");
updateRequired = true;
appearanceUpdateRequired = true;
}
you may change the cords 3093, 3491 the cord make u go out of jail to the cord placed and unteleblock the player the cords tele them to edgeville bank
Your Welcome If You Needed
If you need anything feel free to email me at h-prodz@live.co.uk
Post If This Didn't Work
or
If You Used It :poster_ss
Sun Nov 29, 2009 6:56 pm by marden
» DUN DUN DUN!
Sun Nov 22, 2009 10:33 am by awesome pker
» tradescape stay online? or go away
Tue Aug 25, 2009 1:50 pm by FiZiX the second
» fix read!!!
Mon Aug 10, 2009 7:25 am by FiZiX the second
» LIGHT FALCONS SERVER HERE
Fri Jul 10, 2009 7:05 am by light falcon
» New CO Owner
Fri Jun 26, 2009 9:11 am by awesome pker
» I'm getting bored...
Fri Jun 26, 2009 7:26 am by Fizix
» what to post here
Mon Jun 22, 2009 12:26 pm by Fizix
» 2 servers 1 port LOOK!!!
Mon Jun 22, 2009 12:13 pm by Fizix