Playerscount variable

Ok I need some help… I have no clue what I’m doing wrong but for some reason when theres 1 player in the room its saying theres 2 people in the room which is screwing up all my scripts >_<


//NPC made by tricxta
if (playerenters){
  setcharprop #P1,0;
  timereverywhere;
  timeout=0.05;
}

if (start){
  setcharprop #P1,1;
}

if (timeout){
  if (strtofloat(#P1(-1))==1){
    if (playerscount==1){
      setcharprop #P1,0;
      setlevel2 xialza_eventshouse.nw,28,24;
    }
  }
  timeout=0.05;
}

Thats one of the scripts in the room where this is occuring, if anyone could tell me wether its a known bug or not and how to get around it I would be very grateful.

NPCs using showcharacter are considered as “players”.
Part of Stefan’s hackish work around to get ‘showcharacters’ to look like players (pre-Gani) and have the same collisions.

Many thanks :3