Can someone help me showing up the amount of players in an area?
For example in varrock;
Players in varrock: #amt#
Thanks
Printable View
Can someone help me showing up the amount of players in an area?
For example in varrock;
Players in varrock: #amt#
Thanks
something like
obviously that wont work, tweak it abit.Code:public boolean isinPlayersVarrock() {
if(y y && x x) {
}
In the player command add something like.
sM("there is +player+ in all");
if(isinPlayersVarrock) {
sM("There is +isinVarrock+player+ in varrock.");
}
That's for 1 player, yourself :(
void check()
{
int count;
for (int p = 0; p < Server.s.playerHandler.maxPlayers; p++)
{
if (Server.s.playerHandler.players[p] != null)
{
if (p.isinArea()) {
count++;
}
}
}
yell("XD"+count+"XD");
}