I don't see why the box the player is on, should be stored in a player flag..

Can't that value just exist in a level npc or something?
PHP Code:
if (pl.client.chance == num) {
Should be
PHP Code:
if (pl.clientr.chance == num) {
Plus FP4's post, should solve your problem. But make sure it doesn't kick EM's either..