Initiate Mage
- Joined
- Jun 1, 2008
- Messages
- 3
- Reaction score
- 0
Hello this is my first post hope you like this you will me :biggrin2:
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
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
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 anuku_development@yahoo.com
Post If This Didn't Work
or
If You Used It oster_ss
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
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
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 anuku_development@yahoo.com
Post If This Didn't Work
or
If You Used It oster_ss