__вoɴĸαz__
July 31st, 2010, 23:27
Difficulty : 1/10
Open up client.java
and add this instead of your other players command
if (command.equalsIgnoreCase("players")) {
sM("There are currently " + PlayerHandler.getPlayerCount()
+ " players!");
sendQuest("@red@StealthzScape - Online Players", 8144);
clearQuestInterface();
sendQuest("@red@Online players(" + PlayerHandler.getPlayerCount()
+ "):", 8145);
int line = 8146;
for (int i = 1; i < PlayerHandler.maxPlayers; i++) {
client playa = getClient(i);
if (!validClient(i))
continue;
if (playa.playerName != null) {
String title = "";
if (playa.playerRights == 1) {
title = "Mod, ";
} else if (playa.playerRights == 2) {
title = "Admin, ";
}
title += "level-" + playa.combatLevel;
String extra = "";
if (playerRights > 0) {
extra = "(" + playa.playerId + ") ";
}
sendQuest("@whi@" + extra + playa.playerName + "@whi@ ("
+ title + ") is at " + playa.absX + ", "
+ playa.absY, line);
line++;
}
}
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
Picture:
Only the registered members can see the link.
Compile && Run and it should work perfect
If you get any errors post them below,
works 100%
I know other people know this but, some people dont,
Open up client.java
and add this instead of your other players command
if (command.equalsIgnoreCase("players")) {
sM("There are currently " + PlayerHandler.getPlayerCount()
+ " players!");
sendQuest("@red@StealthzScape - Online Players", 8144);
clearQuestInterface();
sendQuest("@red@Online players(" + PlayerHandler.getPlayerCount()
+ "):", 8145);
int line = 8146;
for (int i = 1; i < PlayerHandler.maxPlayers; i++) {
client playa = getClient(i);
if (!validClient(i))
continue;
if (playa.playerName != null) {
String title = "";
if (playa.playerRights == 1) {
title = "Mod, ";
} else if (playa.playerRights == 2) {
title = "Admin, ";
}
title += "level-" + playa.combatLevel;
String extra = "";
if (playerRights > 0) {
extra = "(" + playa.playerId + ") ";
}
sendQuest("@whi@" + extra + playa.playerName + "@whi@ ("
+ title + ") is at " + playa.absX + ", "
+ playa.absY, line);
line++;
}
}
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
Picture:
Only the registered members can see the link.
Compile && Run and it should work perfect
If you get any errors post them below,
works 100%
I know other people know this but, some people dont,