i want a if command that will check for the player's map and then compare it to another map id
and proceed to do whats inside the { } of that if, if that player is in that map, any ideas?
Printable View
i want a if command that will check for the player's map and then compare it to another map id
and proceed to do whats inside the { } of that if, if that player is in that map, any ideas?
PHP Code:if (c.getPlayer().getMapId() == MapId) {
dofunction
} else {
cm.sendOk("You're not in the correct map.");
cm.dispose();
}
thank you!