Jump to content

horror scap3

Member
  • Content count

    75
  • Joined

  • Last visited

  1. Maybe to u but to others they may not be and not everyone got them thank u very much
  2. Ite ill work on my clients. They work for me and alot of other people but ill see.
  3. [quote name='rushjeff']acctually mate im sorry the other links do work - trying now ; but the last .rar link is broken when you run server fyi - so i retract my prev posts and am checking the server out now will post feedback[/QUOTE] Ok ;)
  4. [quote name='rushjeff']hmm -- you dl ur client and u try to run it and it dont even open.. errors.. starting to wonder if this server is legit or if you just trying to virus ppl.. this is my dummy laptop neways but im going to get on my main and run scans.. - beware of DL[/QUOTE] Um there are no viruses? Thats why I have 3 dl links up in case some dont work.
  5. Hello Runelocus! This is my first snippet so dont flame, hate, etc. Files modified: Commands.java Difficulty: 0.5/10 Ok, what your adding: Sorry about picture ;( [IMG]http://i1201.photobucket.com/albums/bb348/sonscape/th_snippet.jpg[/IMG] Now, I will show you how to add it into you server but, if you just want the code I will put it here to. Lets start. Open up your Commands.java Source/src/Server/Model/Players/Packets/Commands.java Replace your whole jail command with this: REMEMBER TO CHANGE COORDS IN JAIL AND UNJAIL! [CODE]if (playerCommand.startsWith("jail") && c.playerRights >= 1) { try { String playerToBan = playerCommand.substring(5); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.teleportToX = 3102; c2.teleportToY = 9516; c2.sendMessage("You have been jailed by "+c.playerName+""); c.sendMessage("Successfully Jailed "+c2.playerName+"."); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] Jailed: @[email protected] " + Server.playerHandler.players[i].playerName); } } break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } }[/CODE] Now when you do that command ::jail (player name) It will send a message through out the server so everyone online can see. Ill add my others so you can use them to. [CODE]if (playerCommand.startsWith("unjail") && c.playerRights >= 1) { try { String playerToBan = playerCommand.substring(7); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.teleportToX = 3165; c2.teleportToY = 9629; c2.sendMessage("You have been un-jailed by "+c.playerName+""); c.sendMessage("Successfully Un-Jailed "+c2.playerName+"."); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] Un-Jailed: @[email protected] " + Server.playerHandler.players[i].playerName); } } break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } }[/CODE] [CODE]if (playerCommand.startsWith("mute") && c.playerRights >= 1) { try { String playerToBan = playerCommand.substring(5); Connection.addNameToMuteList(playerToBan); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Client c2 = (Client) Server.playerHandler.players[i]; c.sendMessage("You have Muted the user: " + Server.playerHandler.players[i].playerName); c2.sendMessage("You have been muted by: " + c.playerName); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] muted: @[email protected] " + Server.playerHandler.players[i].playerName); } } break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("ipmute") && c.playerRights >= 1) { try { String playerToBan = playerCommand.substring(7); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Connection .addIpToMuteList(Server.playerHandler.players[i].connectedFrom); c.sendMessage("You have IP Muted the user: " + Server.playerHandler.players[i].playerName); Client c2 = (Client) Server.playerHandler.players[i]; c2.sendMessage("You have been muted by: " + c.playerName); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] Ip-muted: @[email protected] " + Server.playerHandler.players[i].playerName); } } break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("unipmute") && c.playerRights >= 1) { try { String playerToBan = playerCommand.substring(9); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Connection .unIPMuteUser(Server.playerHandler.players[i].connectedFrom); c.sendMessage("You have Un Ip-Muted the user: " + Server.playerHandler.players[i].playerName); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] UnIp-muted: @[email protected] " + Server.playerHandler.players[i].playerName); } } break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("unmute") && c.playerRights >= 1) { try { String playerToBan = playerCommand.substring(7); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Connection.unMuteUser(playerToBan); c.sendMessage("You have UnMuted the user: " + Server.playerHandler.players[i].playerName); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] Unmuted: @[email protected] " + Server.playerHandler.players[i].playerName); } } break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("ban") && playerCommand.charAt(3) == ' ' && c.playerRights >= 2) { // use as ::ban name try { String playerToBan = playerCommand.substring(4); Connection.addNameToBanList(playerToBan); Connection.addNameToFile(playerToBan); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Server.playerHandler.players[i].disconnected = true; c.sendMessage(playerToBan + " has been banned."); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] banned: @[email protected] " + Server.playerHandler.players[i].playerName); } } } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("unban") && c.playerRights >= 2) { try { String playerToBan = playerCommand.substring(6); Connection.removeNameFromBanList(playerToBan); c.sendMessage(playerToBan + " has been unbanned."); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] unbanned: @[email protected] " + playerToBan); } } } catch (Exception e) { // c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("ipban") && c.playerRights >= 2) { try { String playerToBan = playerCommand.substring(6); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToBan)) { Connection .addIpToBanList(Server.playerHandler.players[i].connectedFrom); Connection .addIpToFile(Server.playerHandler.players[i].connectedFrom); c.sendMessage("@[email protected][" + Server.playerHandler.players[i].playerName + "] has been IP Banned with the host: " + Server.playerHandler.players[i].connectedFrom); Server.playerHandler.players[i].disconnected = true; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] Ip-banned: @[email protected] " + Server.playerHandler.players[i].playerName); } } } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } } if (playerCommand.startsWith("kick") && c.playerRights >= 1) { try { String playerToKick = playerCommand.substring(5); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (Server.playerHandler.players[i] != null) { if (Server.playerHandler.players[i].playerName .equalsIgnoreCase(playerToKick)) { Server.playerHandler.players[i].disconnected = true; Server.playerHandler.players[i].properLogout = true; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client all = (Client) Server.playerHandler.players[j]; all.sendMessage("[@[email protected]@[email protected]]@[email protected] " + c.playerName + " @[email protected] kicked: @[email protected] " + Server.playerHandler.players[i].playerName); } } break; } } } } catch (Exception e) { c.sendMessage("Player Must Be Offline."); } }[/CODE] [CODE]I also have them for xteleto, xteletome, getpass, givedonor, demote, givemod, giveadmin, giveowner. It's just a safe way to know what all my players are doing incase a scam or hacker is doing something. :) I hoped you liked my first snippet! If you would like more commands like this that go through out the server let me know! [/CODE]
  6. [ATTACH=CONFIG]4094[/ATTACH] [ATTACH=CONFIG]4095[/ATTACH] [ATTACH=CONFIG]4096[/ATTACH]
  7. [ATTACH=CONFIG]4093[/ATTACH] [ATTACH=CONFIG]4092[/ATTACH] [ATTACH=CONFIG]4091[/ATTACH] [ATTACH=CONFIG]4090[/ATTACH]
  8. Close please Gotta work on client
  9. Staff spots are open! Only 10 spots are open, 4 mods 4 admins 2 donors.
  10. Still open come join the fun!
  11. First 3 people get staff! Come on!
  12. Come on yall! Staff is open!
×