h productions



Join the forum, it's quick and easy

h productions

h productions

Would you like to react to this message? Create an account in a few clicks or log in to continue.
h productions

h productions evrything about setting up a game or server eg.runescape private server and runing it

Log in

I forgot my password

mp3player


Get a playlist! Standalone player Get Ringtones

Who is online?

In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests

None


[ View the whole list ]


Most users ever online was 101 on Wed Jul 03, 2019 3:46 am

online chat

Chat login:
Nickname
Password (optional)

powered by h-prodz.co.cc

Latest topics

» New things for you
adding jail EmptySun Nov 29, 2009 6:56 pm by marden

» DUN DUN DUN!
adding jail EmptySun Nov 22, 2009 10:33 am by awesome pker

» tradescape stay online? or go away
adding jail EmptyTue Aug 25, 2009 1:50 pm by FiZiX the second

» fix read!!!
adding jail EmptyMon Aug 10, 2009 7:25 am by FiZiX the second

» LIGHT FALCONS SERVER HERE
adding jail EmptyFri Jul 10, 2009 7:05 am by light falcon

» New CO Owner
adding jail EmptyFri Jun 26, 2009 9:11 am by awesome pker

» I'm getting bored...
adding jail EmptyFri Jun 26, 2009 7:26 am by Fizix

» what to post here
adding jail EmptyMon Jun 22, 2009 12:26 pm by Fizix

» 2 servers 1 port LOOK!!!
adding jail EmptyMon Jun 22, 2009 12:13 pm by Fizix

Navigation

Affiliates


    adding jail

    Admin
    Admin
    Admin
    Admin


    Posts : 88
    Reputation : 5
    Join date : 2009-04-14

    adding jail Empty adding jail

    Post  Admin Tue Apr 14, 2009 10:20 am

    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

      Current date/time is Tue May 07, 2024 7:07 am