My personal criticism:
First off, let's look at what you did well. It's good to see that you used server side to evaluate the whole script rather than wasting a trigger to send information to the server. Secondly, the direction it looks like you
were headed with onPlayerEnters() looks good.
Now, some improvements. What you are making the server do right now is wait for someone to enter a level that this NPC was placed in, find the specified player, then check if that player is in some other level. This is quite ineffective and should be changed. The flow should go a little more like this: A player enters the level, check if their account is the specified account to kick, kick them if they are the specified account.
So, let's make some changes, shall we?
PHP Code:
function onPlayerEnters() {
if (player.account == "accountNameHere") { //Once the player enters the level, are they the account we're looking for?
temp.pl.setlevel2("era_present_00-00.nw",30,39); //If they are that player, we don't even need to check their level.
}
}
On another note, when you want to reference the player's level, reference player.level.name. Player.level itself is an object containing several children variables. This means that when you want the level name, you have to refer player.level.name.
Keep trying and keep up the good work! =)