public OnPlayerConnect( playerid ){ new count = 0; for( new i = 0; < MAX_PLAYERS; i ++ ) { if( IsPlayerNPC( i ) ) { count ++; } } printf( "There are %d connected NPCs!", count ); // Rest return 1;}