Perhaps it is not loading the tiledefs right then, you should try debugging it with some echo() in the playerenters
ie:
PHP Code:
function onPlayerEnters(){
echo("welcome to the room");
}
enter the room normally and by logging on and appearing in that room and seeing if it echo's that
btw, echo is your best friend for debugging, use it.
Oddly enough, that worked both serverside and clientside. However, I've had difficulty using playerenters when trying to add weapons to a player entering the level.
Oddly enough, that worked both serverside and clientside. However, I've had difficulty using playerenters when trying to add weapons to a player entering the level.
That is because Era's login routine clears weapons out and readds them as necessary during logon. You are probably adding them before the routine finishes.